加上一下这些就好了:(去掉你加的那几句)
scriptalias /php/ "c:/php/"
addtype application/x-httpd-php .php
addtype application/x-httpd-php .php4
addtype application/x-httpd-php .phtml
action application/x-httpd-php "/php/php.exe"
scriptalias /php/ "c:/php/"
addtype application/x-httpd-php .php
addtype application/x-httpd-php .php4
addtype application/x-httpd-php .phtml
action application/x-httpd-php "/php/php.exe"
解决方案 »
- mysql问题...
- gd生成图片问题
- file_put_contents() failed to open stream: Permission denied
- 帮忙看看,刚学PHP,问题多多!
- dedecms列表模板页调用所有推荐产品问题
- 如何在服务器端监视邮箱?
- 一个急待解决的问题??11
- 各位php高手,我准备用Linux和PHP建一个网站,请问PHP自己是否有MS的COM或JavaBeans之类的建立逻辑层技术?如果没有,可否有免费的第三方?
- mysql回行查询和建立复合索引的衡量?
- 请教一个mysql程序设计的问题
- 请问错在那里?header("location:gongqiu-add.php?username=$date['name']");
- 我想交一些温州地我的网友
改为:
LoadModule php4_module d:/MYPHP/php4/sapi/php4apache.dll
不用加引号""
出错信息是什么?
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
action application/x-httpd-php "/php/php.exe"
了
第二种情况:改为如下试试:
ScriptAlias /php/ "d:/myphp/php4/"
Action application/x-httpd-php "/php/php.exe"
AddType application/x-httpd-php .php .php3 .php4
以上每种方法我都试过了,可还是出错,启动Apache时出错信息为:
-----------------------------
Syntax error on line 399 of d:/myphp/apache/conf/httpd.conf:
ScriptAlias not allowed here
Note the errors or messages above, and press the <ESC> key to exit.
error on line 399.
error on line 399: ScriptAlias not allowed here
把:
ScriptAlias /php4/ "d:/MYPHP/php4/"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
AddType application/x-httpd-php4 .php4
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php4 "/php4/php.exe"
写在httpd.conf文件末尾看看?