Compiling and installing Apache webserver from source on redhat linux
Just a quick post about something i had to to do today. It’s all in the Apache docs, but bits of it was hard to find. I was working on a redhat 4 64-bit
-
Grab the source from http://httpd.apache.org/download.cgi
-
I picked the Unix Source: httpd-2.2.17.tar.gz
-
-
Unpack with tar xzf httpd-2.2.17.tar.gz
-
Cd httpd-2.2.17
-
./configure --prefix /path/to/apache --enable-mods-shared=all --enable-proxy --enable-ssl
-
If you leave out "--prefix ..." then the installation directory is set to /usr/local/apache2
-
-
make
-
Does all the compiling
-
-
make install
-
Installs into the directory that you wrote in --prefix
-
-
Edit the /conf/httpd.conf if you want to set a another port or change some other setting
Controlling the Apache server:
- /bin/apachectl -k start
- /bin/apachectl -k stop
- /bin/apachectl -k restart
- /bin/apachectl -k graceful-stop
Advertisement