2009年4月15日 星期三

Running two httpd in Linux

#./configure --prefix=/opt/httpd-2.2.11 --enable-modules=all --enable-mods-shared=all --enable-proxy --enable-ssl --enable-so --with-mpm=prefork
#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

沒有留言:

wibiya widget