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

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"

--

All Comments

William avatarWilliam2011-08-20