请教:关于PHP4.0在WIN98+PWS4.0上的安装问题.高分相送.对你可能是个小case,呵呵。拜托!

dgj 2001-07-30 01:19:20
加精
我安装了PWS4.0在C:\Inetpub\,
将php.ini copy到了windows目录下,
将MSVCRT.DLL和PHP4TS.DLL copy到了c:\windows\system\下,
将PHP目录copy到了C:\Program Files\下,
在注册表[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map]
中加入了 串值".php" = "C:\Program Files\PHP\sapi\php4isapi.dll",
为home(C:\Inetpub\wwwroot)虚拟目录增加了执行权限。


重启windows后,在C:\Inetpub\wwwroot\下写了tt.php("hello,world")文件,
在浏览器中键入,发生500号错误,内部服务器错误


谢谢了!
...全文
89 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
godbirdhu 2001-11-30
  • 打赏
  • 举报
回复
我的却出现了
"HTTP 错误 403
403.1 禁止:禁止执行访问

如果从并不允许执行程序的目录中执行 CGI、ISAPI 或其他执行程序就可能引起此错误。

如果问题依然存在,请与 Web 服务器的管理员联系。

"
的错误,怎么搞的呢?
willstar 2001-08-24
  • 打赏
  • 举报
回复
其实在win2000+iis更简单!!
BALLOONMAN 2001-08-01
  • 打赏
  • 举报
回复
在php.ini中的extension_dir你设置了没有?那是你的php安装目录
另外MSVCRT.DLL和PHP4TS.DLL 再copy到c:\windows下试试!
kahntang 2001-07-31
  • 打赏
  • 举报
回复
在注册表[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map]
中加入串值".php" = "C:\Program Files\PHP\php.exe %s%s",
再在:HKEY_CLASSES_ROOT中
设置扩展明:New->key为.php
缺省值为phpfile
再创建一个名为phpfile的建,值为php script
在phpfile里再创建一个名为shell的建值为open
在open里再创建一个名为command的建值为C:\Program Files\PHP\php.exe -q%1
luncif 2001-07-31
  • 打赏
  • 举报
回复
You have installed PHP, but when try to access a php script file via your
browser, you get a server 500 error:

Something went wrong when the server tried to run PHP. To get to see a
sensible error message, from the command line, change to the directory
containing php.exe and run "php.exe -i"
If php has any problems running, then a suitable error message will be displayed
which will give you a clue as to what needs to be done next.
If you get a screen full of html codes (the output of the phpinfo() function) then
php is working ok, and your problem may be related to your server configuration
which you should double check.

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧