#make
#make install
#ln -s /opt/httpd-2.2.11 /opt/httpd
#cp -p pathLib/libphp5.so /opt/httpd/modules
#vi /opt/httpd/conf/httpd.conf
# Make sure there's only **1** line for each of these 2 directives:
# Use for PHP 4.x:
#LoadModule php4_module modules/libphp4.so
#AddHandler php-script php
# Use for PHP 5.x:
LoadModule php5_module modules/libphp5.so
AddHandler php5-script php
# Add index.php to your DirectoryIndex line:
DirectoryIndex index.html index.php
AddType text/html php
# PHP Syntax Coloring
# (optional but useful for reading PHP source for debugging):
AddType application/x-httpd-php-source phps
#/opt/httpd/bin/httpd -f /opt/httpd/conf/httpd.conf -k restart
沒有留言:
張貼留言