1. gzip -d httpd-2_0_XX.tar.gz 2. tar xvf httpd-2_0_XX.tar 3. gunzip php-XX.tar.gz 4. tar -xvf php-XX.tar 5. cd httpd-2_0_XX 6. ./configure --enable-so 7. make 8. make install 9. cd ../php-XX 10. ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql [Check the common problems in the botton of this page] 11. make 12. make install 13. Setup your php.ini: cp php.ini-dist /usr/local/lib/php.ini 14. Edit your httpd.conf to load the PHP module: LoadModule php5_module modules/libphp5.so 15. AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps 16. Start Apache/PHP: /usr/local/apache2/bin/apachectl start Common Problem with MySQL configuration: The error occurs on: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql The common description is: configure: error: Cannot find MySQL header files under yes. Note that the MySQL client library is not bundled anymore! SOLUTION: On Debian, just install MySQL client libraries (apt-get install libmysqlclient10-dev). On Fedora/RedHat install simmilar packages (yum install php-mysql). After this, DO NOT FORGET TO POINT to the location where the MySQL client libraries were installed to, like --with-mysql=/usr/include/mysql/ |