加上一下这些就好了:(去掉你加的那几句)
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"
解决方案 »
- 6表联合查询,有一个表数据有1万多,访问速度10多秒
- 求助 php mysql 优化
- volist如何输出成两列的格式?
- 请教这种字符串如何转换?
- asp中的CStr()在PHP中有对应的函数吗?
- Fatal error: Call to undefined function posix_uname什么原因啊
- 【大型门户】上海站寻php开发人员2~3名
- PhpMyAdmain 问题
- IIS作为PHP的代理服务器,这时候PHP站点的根目录怎么到?因为这时的根目录是IIS的一个虚拟路径
- 大四去面试,一个好的php作品应该包括哪些才有可能被招聘
- 请问错在那里?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文件末尾看看?