Apache2 PHP 4.4.x

December 14th, 2006

*PHP ./configure --prefix=/usr/local/php/ --with-gd --with-mysql=/usr --with-openssl --with-zlib --with-jpeg-dir --with-inifile --with-png-dir --disable-cgi --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql-sock --with-iconv=/usr/local make make install cp -p .libs/libphp4.so /usr/local/apache/modules *Apache2 httpd.conf include /usr/local/apache2/conf/modules/*.conf php.conf # PHP Configuration for Apache # # Load the apache module # LoadModule php4_module modules/libphp4.so # # Cause the PHP interpreter handle files with a .php extension. # Files *.php SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 9524288 /Files AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps # # Add index.php to the list of files that will be served as directory # indexes. # DirectoryIndex index.php

Leave a Reply