Friday, June 09, 2006

Apache 2.0.x with PHP 4.4.x

*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

0 Comments:

Post a Comment

<< Home