Created
November 15, 2016 23:27
-
-
Save cygmris/fb77a1d782ad73e4f01226858afbebf3 to your computer and use it in GitHub Desktop.
script used to compile Apache1.x perfectly
This file contains 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
#!/bin/bash | |
sed -i 's/getline/apache_getline/' src/support/htdigest.c | |
sed -i 's/getline/apache_getline/' src/support/htpasswd.c | |
sed -i 's/getline/apache_getline/' src/support/logresolve.c | |
sed -i 's/getline/apache_getline/' src/main/http_protocol.c | |
echo "Related files has been rewriten successfully, ready to be complied" | |
./configure --prefix=/usr/local/httpd --enable-module=so --enable-module=most --enable-shared=max --enable-module=rewrite --disable-module=auth_dbm | |
#./configure --prefix=/usr/local/httpd --enable-module=so --enable-module=rewrite --disable-module=auth_dbm | |
make | |
make install | |
chkconfig --del iptables | |
service iptables stop | |
chkconfig --level 35 httpd on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment