Last active
December 10, 2015 20:08
-
-
Save dimisdas/4486414 to your computer and use it in GitHub Desktop.
Install lighttpd on CentOS 6.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
sudo yum update -y | |
yum groupinstall Editors "Development Tools" "Development Libraries" -y | |
yum install pcre-devel pcre zlib zlib-devel bzip2 bzip2-devel curl -y | |
mkdir ~/tmp | |
cd ~/tmp/ | |
wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.32.tar.gz -O lighttpd.tar.gz | |
tar xzvf lighttpd.tar.gz | |
cd lighttpd-1.4.32/ | |
./configure | |
make | |
make install | |
which lighttpd | |
mkdir -p /etc/lighttpd | |
cd /etc/lighttpd | |
wget https://gist.github.com/raw/4486391/575d5362ce5f66a4ec10905c76a60b4ca3bf2462/lighttpd.conf -O lighttpd.conf | |
iptables -I INPUT -p tcp --dport 80 -j ACCEPT | |
service iptables save | |
touch /etc/init.d/lighttpd | |
chmod a+rx /etc/init.d/lighttpd | |
chkconfig --add lighttpd | |
chkconfig lighttpd on | |
groupadd -g 208 lighttpd | |
useradd -u 208 -g lighttpd -d /var/www lighttpd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment