作者johnney (恋念不已...)
看板PHP
标题Re: [请益] php安装问题...:~
时间Tue Apr 4 16:10:57 2006
类似问题最近刚看到的...
请原谅我用转贴的
原文出自 bbs.wretch.cc PHP 版 作者 ileadu
03-Feb-2006 12:47
In trying to set up Apache 2.0/PHP5 on my WinXP Pro machine, I configured PHP
using the php.ini-recommended file (aside: enabling mysql and mcrypt).
Adding the PHP5 module to Apache 2.0's httpd.conf caused the server to hang
when I tried to request any page, even non-PHP.
My solution: use backslashes in paths instead of forward-slashes.
# Load PHP 5
LoadModule php5_module "D:\web\php5\php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "D:\web\php5\"
After changing that one thing, my phpinfo() test page loaded perfectly!
---------------------------
另外一篇回应文章 作者 kong
---------------------------
喔这一篇我有看到..不过我用了没有用....
之後Google到一篇
http://www.21php.com/tutorial/tutorial.php?tid=64
里面说是Apache没有找到php4ts.dll文件的缘故
把php4ts.dll复制到system32或是[PHP root]/bin就可以了 (Win32适用)
我用了的确是可用,不过我不想这样呀(对不起我很龟毛^^|||b)
希望只更改Apache的httpd.conf就可以以module方式用PHP
後来我试了一下,反而把php4ts.dll放进sapi资料夹,就也可以动了
症结点似乎是在php4ts.dll和php4apache2.dll必须在同一个目录下
或是php4ts.dll必须在环境变数的资料夹下
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.119.190.160
1F:推 cherubchang:谢谢你QQ 04/04 16:26
2F:推 ileadu:谢谢你QQ 04/05 16:55