Compiling Apache, mysql and PHP

Compiling Apache for fully dynamic web server
1. Download Apache sourcecode from
2. Extract it and enter into the extracted directory
3. ./configure –prefix=/usr/local/apache2 –enable-mods-shared=all

make ; make install
4. Dowload PHP from Then extract it and enter the extracted directory
5. ./configure –with-apxs2=/usr/local/apache2/bin/apxs
–with-mysql –prefix=/usr/local/apache2/php
–enable-force-cgi-redirect –with-zlib –with-gettext
–with-gdbm –enable-mbstring=all

make ; make install
6. cp -p .php.ini-recomanded /usr/local/apache2/php/php.ini
7. Go to /usr/local/apache2/bin
8. start apache with following cmd
./apachectl start

Neelesh Gurjar has written 122 articles

Leave a Reply