有關 CentOS 6, PHP, MySQL 的問題 - Linux

By Kristin
at 2011-08-19T10:55
at 2011-08-19T10:55
Table of Contents
目前我在CentOS 6.0上面架網頁伺服器
httpd可以順利執行網頁中的php內容
我也可以用php test.php連到db做query,再傳回db version
不過,httpd沒辦法用php來連到db,總是在connect的地方失敗
有考慮過權限問題,不過檔案用644,資料夾用755,擁有者用root,應該是正確的吧
這會是哪裡有問題呢?
謝謝
--
Idle lawyers tend to become politicians,
so there is a certain social value in keeping lawyers busy.
from "Operating System Principles, 7th ed"
--
httpd可以順利執行網頁中的php內容
我也可以用php test.php連到db做query,再傳回db version
不過,httpd沒辦法用php來連到db,總是在connect的地方失敗
有考慮過權限問題,不過檔案用644,資料夾用755,擁有者用root,應該是正確的吧
這會是哪裡有問題呢?
謝謝
--
Idle lawyers tend to become politicians,
so there is a certain social value in keeping lawyers busy.
from "Operating System Principles, 7th ed"
--
Tags:
Linux
All Comments

By William
at 2011-08-20T17:41
at 2011-08-20T17:41
Related Posts
make時出現 Error, Forbidden warning

By Isabella
at 2011-08-18T16:00
at 2011-08-18T16:00
支持多分頁的ssh軟體?

By Thomas
at 2011-08-18T15:25
at 2011-08-18T15:25
Sendmail x Twbbs.org

By Daniel
at 2011-08-18T14:52
at 2011-08-18T14:52
在linux上UDP封包詭異的問題

By Lucy
at 2011-08-18T13:04
at 2011-08-18T13:04
sendmail 區域網路 無法內部寄信

By Annie
at 2011-08-18T10:02
at 2011-08-18T10:02