makeitfaster

performance, scalability and optimizing processes

Compiling and installing Apache webserver from source on redhat linux

leave a comment »

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

Written by Sebastian Vilstrup

March 25, 2011 at 10:38

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.