Skip to content

Instantly share code, notes, and snippets.

@cygmris
Created November 15, 2016 23:27
Show Gist options
  • Save cygmris/fb77a1d782ad73e4f01226858afbebf3 to your computer and use it in GitHub Desktop.
Save cygmris/fb77a1d782ad73e4f01226858afbebf3 to your computer and use it in GitHub Desktop.
script used to compile Apache1.x perfectly
#!/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