Restart Apache Server without affecting existing connections

May 9, 2008 · Filed Under Apache · Comment 

Sometimes you want to restart your Apache server after changing some configuration in httpd.conf, but you have few hundred clients currently downloading files from your server and you don’t want to disconnect the. You can use the syntax below:

Code:

$ service restart graceful
or
$ /etc/init.d/httpd graceful

This will gracefully restart your Apache with new configuration without affecting your client’s connections.

Virtual Hosting, Multiple Website in Apache2

May 7, 2008 · Filed Under Apache · Comment 

To get multiple website to work under one apache server is not as hard as you though, first of all make sure all the domain is pointed correctly to the server that you going to configure, and then follow the step below:

1. in the shell, search for httpd.conf, you can use both of the way below for searching file.

$locate httpd.conf

or

$find / -name httpd.conf

Read more

LAMP (Linux, Apache2, MySQL5, PHP5) Installation Guide

May 6, 2008 · Filed Under Apache, Linux, MySQL, PHP · 6 Comments 

STEP 1: DOWNLOAD SOURCES THAT GOING TO BE USE IN THE INSTALLATION

  1. cd /usr/local/src
  2. wget http://www.php.net/distributions/php-5.2.5.tar.gz
  3. wget http://apache.oregonstate.edu/httpd/httpd-2.2.8.tar.gz
  4. wget http://mysql.oss.eznetsols.org/Downloads/MySQL-5.0/mysql-5.0.51a.tar.gz
  5. wget http://apache.leakage.org/apr/apr-1.2.12.tar.gz
  6. wget http://apache.leakage.org/apr/apr-util-1.2.12.tar.gz
  7. wget http://xmlsoft.org/sources/libxml2-2.6.32.tar.gz
  8. wget http://curl.haxx.se/download/curl-7.18.1.tar.gz
  9. wget http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz
  10. wget http://quirkysoft.googlecode.com/files/jpegsrc.v6b.tar.gz
  11. wget http://www.zlib.net/zlib-1.2.3.tar.gz
  12. wget http://prdownloads.sourceforge.net/libpng/libpng-1.2.28.tar.gz?download

STEP 2: INSTALL NECCESSARY TOOLS/LIBRARY

Read more