Some like it binary some like compiling, I am amongst the compiling ones..
here are some easy steps that I usually follow to compile Apache, PHP to my machine.
- Apache
- ./configure --prefix=/usr/local/apache2.2.6 --enable-so --enable-proxy --enable-rewrite --enable-expires --enable-headers --enable-deflate --enable-ssl
- sudo make
- sudo make install
- cd /usr/local
- ln -s apache2.2.6 apache
- cd
- PHP
- ./configure --prefix=/usr/local/php5.2.5 --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --with-pdo-mysql --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib
- sudo make
- sudo make install
- cd /usr/local
- ln -s php5.2.5 php
- Configure Apache httpd.conf for PHP module
- LoadModule php5_module modules/libphp5.so
- AddType application/x-httpd-php .php .phtml
No comments:
Post a Comment