PHP5 Installation: Installing as an Apache module

王朝php·作者佚名  2006-01-10
窄屏简体版  字體: |||超大  

http://sg.php.net/manual/en/install.windows.apache2.php

Installing 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 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:

<html>

<body>

<?php phpinfo(); ?>

</body>

</html>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航