繁体中文
设为首页
加入收藏
当前位置:程序开发首页 >> 其他开发语言 >> PHP5 Installation: Installing as an Apache module

PHP5 Installation: Installing as an Apache module

2005-11-06 00:35:57  作者:gipy2a1  来源:互联网  浏览次数:1  文字大小:【】【】【
简介:http://sg.php.net/manual/en/install.windows.apache2.phpInstalling as an Apache module1. You need to insert these two lines to your Apache httpd.conf configuration file to set up the PHP module for...

http://sg.php.net/manual/en/install.windows.apache2.phpInstalling as an Apache module

1. You need to insert these two lines to your Apache httpd.conf configuration file to set up the PHP module for Apache 2.0:

# For PHP 4 do something like this:

LoadModule php4_module "c:/php/php4apache2.dll"

# Don't forget to copy the php4apache2.dll file from the sapi directory!

AddType application/x-httpd-php .php

# For PHP 5 do something like this:

LoadModule php5_module "c:/php/php5apache2.dll"

AddType application/x-httpd-php .php

# configure the path to php.ini

PHPIniDir "C:/php"

2. Testing script:

责任编辑:admin
相关文章