1) Download Current Apache from http://httpd.apache.org/download.cgi for example: httpd-2.2.8.tar.bz2 save it to disk. 2) Go to your install folder such as $HOME/apache_2.0 and uncompress the bz2 file tar jxvpf httpd-2.2.8.tar.bz2 3) Go to the source directory and do config then make: 3a) cd httpd-2.2.8 3b) ./configure --prefix=/path-to-your-home-dir/apache_2.0/apache \ --enable-cache \ --enable-disk-cache \ --enable-mem-cache \ --enable-proxy \ --enable-proxy-http \ --enable-proxy-ftp \ --enable-proxy-connect \ --enable-so \ --enable-cgi \ --enable-info \ --enable-rewrite \ --enable-speling \ --enable-usertrack \ --enable-ssl \ --enable-deflate \ --enable-mime-magic 3c) make 3d) make install with the install results in the folder $HOME/apache_2.0/apache: Installing configuration files mkdir /path-to-your-home-dir/apache_2.0/apache/conf mkdir /path-to-your-home-dir/apache_2.0/apache/conf/extra mkdir /path-to-your-home-dir/apache_2.0/apache/conf/original mkdir /path-to-your-home-dir/apache_2.0/apache/conf/original/extra Installing HTML documents mkdir /path-to-your-home-dir/apache_2.0/apache/htdocs Installing error documents mkdir /path-to-your-home-dir/apache_2.0/apache/error Installing icons mkdir /path-to-your-home-dir/apache_2.0/apache/icons mkdir /path-to-your-home-dir/apache_2.0/apache/logs Installing CGIs mkdir /path-to-your-home-dir/apache_2.0/apache/cgi-bin Installing header files Installing build system files Installing man pages and online manual mkdir /path-to-your-home-dir/apache_2.0/apache/man mkdir /path-to-your-home-dir/apache_2.0/apache/man/man1 mkdir /path-to-your-home-dir/apache_2.0/apache/man/man8 mkdir /path-to-your-home-dir/apache_2.0/apache/manual The actual apache commands are in /path-to-your-home-dir/apache_2.0/apache/bin 4) Download PHP source (for example php-5.2.5.tar.bz2) from http://us.php.net/get/php-5.2.5.tar.bz2/from/a/mirror unpack into /path-to-your-home-dir/apache_2.0/php-5.2.5 for example. tar jxvpf php-5.2.5.tar.bz2 5) cd php-5.2.5 and do config (note the optoons are given with two minus signs -- in front): ./configure \ --with-apxs2=/path-to-your-home-dir/apache_2.0/apache/bin/apxs \ --prefix=/path-to-your-home-dir/apache_2.0/php \ --enable-shared=all \ --with-gd \ --with-config-file-path=/usr/local/apache/php \ --enable-force-cgi-redirect \ --disable-cgi \ --with-zlib \ --with-gettext \ --with-gdbm >& /tmp/conf.output Note: the >& sends output under csh. If you use sh or bash use 2> instead. And the >& /tmp/conf.output is not needed if you are not interested in sending the output to a file. Note: if something fails before libphp5.so is successful produced in the following steps, you can start over from this step by issuing a command: make distclean and then redo from step 5. 6) Check the conf.output to see if you get these lines: checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no 7) Now issue the command make and after it is done you should check .libs/ folder ls .libs libphp5.la@ libphp5.lai libphp5.so* 8) Then issue the command make install And the install directory is /path-to-your-home-dir/apache_2.0/php (as specified by the --prefix option) Make sure you see the this line among the output: chmod 755 /path-to-your-home-dir/apache_2.0/apache/modules/libphp5.so 9) See http://dan.drydog.com/apache2php.html for the remainder of steps to get httpd (your web server with php) up and running.