各位前輩..
我依照教學文件的方式下載了PHP+SQL+編輯程式
安裝好"阿帕企"後 準備來點選PHPBB目錄下的INSTALL子目錄中的INSTALL.PHP
結果並未出現安裝畫面
反而跳出 WINDOWS中的開啟檔案
然後我選擇用IE瀏覽器打開 就出現一堆文字
照片如下
不知道是否是哪邊出了問題
因為太基礎+低級的問題
真是不好意思喔
http://tw.pg.photos.yahoo.com/ph/093503 ... pg&.src=ph
[基礎安裝問題]開啟不了install.PHP
版主: 版主管理群
版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
Re: [基礎安裝問題]開啟不了install.PHP
你的 Apache 是單獨裝的?那 PHP 裝了沒?AddType 加了沒?加上去以後 Apache restart 了沒?請看 PHP Manual 的說明
我猜你一定是 AddType 沒有加...
我猜你一定是 AddType 沒有加...
-
0935030462
- 星球普通子民

- 文章: 6
- 註冊時間: 2006-04-27 02:29
前輩..chiouss 寫:怎麼沒有?0935030462 寫:請問要如何AddType呢
您留下的網頁連結 並未清楚方式
不知可否詳述
開啟網頁以後按 Ctrl+F 輸入 AddType 然後按 enter 你就會看到了 Orz
看你要參考 Example 6-5 還是 6-6 都可以
我有看到這個
----------------------------------------------------------------------------------
Installing as a CGI binary
You need to insert these three lines to your Apache httpd.conf configuration file to set up the CGI binary: Example 6-5. PHP and Apache 2.0 as CGI
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
# For PHP 4
Action application/x-httpd-php "/php/php.exe"
# For PHP 5
Action application/x-httpd-php "/php/php-cgi.exe"
------------------------------------------------------------------------------------
我的意思是說 該如何加入呢
我找不到httpd.conf這個檔案
另外該怎麼加入呢 一般的文字編輯器應該可以吧
謝謝您喔 我真的是百思不得其解
我嘗試的把上面三行文字加入Apache資料夾中的CONF中的httpd這個檔案當中
不過修改好存好檔案 接著重新啟動apache 仍然無法開啟.php的檔案類型
請用 Windows 的檔案搜尋功能尋找,你 Apache 裝在哪裡應該就在哪裡。0935030462 寫: 我的意思是說 該如何加入呢
我找不到httpd.conf這個檔案
可以,不要用 Word 之類的就好。真的不知道要用什麼的話,用記事本 (Notepad.exe)0935030462 寫:另外該怎麼加入呢 一般的文字編輯器應該可以吧
路徑對不對?不要人家寫 C:/php/php.exe 你也乖乖寫 C:/php/php.exe 阿 o_O0935030462 寫:我嘗試的把上面三行文字加入Apache資料夾中的CONF中的httpd這個檔案當中
不過修改好存好檔案 接著重新啟動apache 仍然無法開啟.php的檔案類型
還有,把 Apache 的 error.log 挖出來看看上面寫什麼。
-
0935030462
- 星球普通子民

- 文章: 6
- 註冊時間: 2006-04-27 02:29
路徑對不對?不要人家寫 C:/php/php.exe 你也乖乖寫 C:/php/php.exe 阿 o_O
還有,把 Apache 的 error.log 挖出來看看上面寫什麼。
error.log 的內容是這樣
-----------------------------------------------
[Thu Apr 27 12:20:31 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Thu Apr 27 12:20:31 2006] [notice] Server built: Oct 9 2005 19:16:56
[Thu Apr 27 12:20:34 2006] [notice] Parent: Created child process 3096
[Thu Apr 27 12:20:36 2006] [notice] Child 3096: Child process is running
[Thu Apr 27 12:20:36 2006] [notice] Child 3096: Acquired the start mutex.
[Thu Apr 27 12:20:36 2006] [notice] Child 3096: Starting 250 worker threads.
[Thu Apr 27 12:45:39 2006] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Apr 27 12:45:40 2006] [notice] Child 3096: Exit event signaled. Child process is ending.
[Thu Apr 27 12:45:41 2006] [notice] Child 3096: Released the start mutex
[Thu Apr 27 12:45:42 2006] [notice] Child 3096: Waiting for 250 worker threads to exit.
[Thu Apr 27 12:45:42 2006] [notice] Child 3096: All worker threads have exited.
[Thu Apr 27 12:45:42 2006] [notice] Child 3096: Child process is exiting
[Thu Apr 27 12:45:42 2006] [notice] Parent: Child process exited successfully.
-------------------------------------------------------------------------------
我的PHP路徑是 c:\php
apache路徑是C:\Program Files\Apache Group\Apache2\
我是按照您提供的網址內的方式新增了下面這一條
Action application/x-httpd-php "c:/php/php-cgi.exe"
到 C:\Program Files\Apache Group\Apache2\conf 中的 httpd 這個檔案
我把他加在最後一行
儲存
結果 好像還是無法開啟
還有,把 Apache 的 error.log 挖出來看看上面寫什麼。
error.log 的內容是這樣
-----------------------------------------------
[Thu Apr 27 12:20:31 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
[Thu Apr 27 12:20:31 2006] [notice] Server built: Oct 9 2005 19:16:56
[Thu Apr 27 12:20:34 2006] [notice] Parent: Created child process 3096
[Thu Apr 27 12:20:36 2006] [notice] Child 3096: Child process is running
[Thu Apr 27 12:20:36 2006] [notice] Child 3096: Acquired the start mutex.
[Thu Apr 27 12:20:36 2006] [notice] Child 3096: Starting 250 worker threads.
[Thu Apr 27 12:45:39 2006] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Apr 27 12:45:40 2006] [notice] Child 3096: Exit event signaled. Child process is ending.
[Thu Apr 27 12:45:41 2006] [notice] Child 3096: Released the start mutex
[Thu Apr 27 12:45:42 2006] [notice] Child 3096: Waiting for 250 worker threads to exit.
[Thu Apr 27 12:45:42 2006] [notice] Child 3096: All worker threads have exited.
[Thu Apr 27 12:45:42 2006] [notice] Child 3096: Child process is exiting
[Thu Apr 27 12:45:42 2006] [notice] Parent: Child process exited successfully.
-------------------------------------------------------------------------------
我的PHP路徑是 c:\php
apache路徑是C:\Program Files\Apache Group\Apache2\
我是按照您提供的網址內的方式新增了下面這一條
Action application/x-httpd-php "c:/php/php-cgi.exe"
到 C:\Program Files\Apache Group\Apache2\conf 中的 httpd 這個檔案
我把他加在最後一行
儲存
結果 好像還是無法開啟
ScriptAlias 和 AddType 也要加!0935030462 寫:我的PHP路徑是 c:\php
apache路徑是C:\Program Files\Apache Group\Apache2\
我是按照您提供的網址內的方式新增了下面這一條
Action application/x-httpd-php "c:/php/php-cgi.exe"
到 C:\Program Files\Apache Group\Apache2\conf 中的 httpd 這個檔案
我把他加在最後一行
儲存
結果 好像還是無法開啟
該加在哪邊請搜尋一下 httpd.conf 裡面同樣的關鍵字 (ex.AddType),有時候不是加在哪邊都可以的。然後,改完 httpd.conf 記得要讓 Apache restart。
-
0935030462
- 星球普通子民

- 文章: 6
- 註冊時間: 2006-04-27 02:29
