1 要寫的文件,必須有寫的權限 chomd a+rwx * -R php
2 php要有安裝sql庫 mysql
快速在CentOS下搭建LAMP(Apache、MySQL、PHP)環境 linux
from http://www.iteye.com/topic/1122585 sql
yum install php-mysql server
錯誤: ip
--> Finished Dependency Resolution
mysql-5.0.95-5.el5_9.x86_64 from updates has depsolving problems
--> mysql conflicts with MySQL-server-community
Error: mysql conflicts with MySQL-server-community
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest get
========= it
看出mysql衝突. io
mysql -V: module
mysql Ver 14.14 Distrib 5.1.54, for unknown-linux-gnu (x86_64) using readline 5.1
mysql安裝的是5.1.54
==================
php的庫路徑//usr/lib64/php/modules/
php的php.ini /etc/php.ini