Re: [請益] php安裝問題...:~

看板PHP作者 (戀念不已...)時間19年前 (2006/04/04 16:08), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串2/2 (看更多)
類似問題最近剛看到的... 請原諒我用轉貼的 原文出自 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

04/04 16:26, , 1F
謝謝你QQ
04/04 16:26, 1F

04/05 16:55, , 2F
謝謝你QQ
04/05 16:55, 2F
文章代碼(AID): #14CYcAn5 (PHP)
文章代碼(AID): #14CYcAn5 (PHP)