Apeche配置信息:
DocumentRoot "E:/www_local"
<Directory "E:/www_local">
DirectoryIndex index.html index.php index.htm
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php .txtphp除了配置功能模块之外,其他的没动。配置这些比直接安装wamp包要难多了,希望大家帮帮忙。
DocumentRoot "E:/www_local"
<Directory "E:/www_local">
DirectoryIndex index.html index.php index.htm
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php .txtphp除了配置功能模块之外,其他的没动。配置这些比直接安装wamp包要难多了,希望大家帮帮忙。
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php# configure the path to php.ini
PHPIniDir "C:/php
LoadModule php5_module "E:/Program Files/php-5.2.13-Win32/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "E:/Program Files/php-5.2.13-Win32/php.ini"这个是我的,你对照参考一下,我一般就把这个加下面,配置一下,然后改一下php.ini就可以用了。
AddType application/x-httpd-php .php
这两条指令都有了;
PHPIniDir "E:/Program Files/php-5.2.13-Win32/php.ini"这是要指向php.ini吗,
我写的是 PHPIniDir "D:/PHP5"测试phpinfo();还是无法运行
<?
phpinfo();
?>
<?php
phpinfo();
?>你是用那种,如果用第一种换第二种试下,如果第二种可以就是你的短标记没打开