若是是Centos OS 64 位,首先更新php
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmmysql
yum clean dbcachenginx
give SELinux permissions to that directory:
chcon -R -h -t httpd_sys_content_t /data/
sql
而後: curl
yum install nginxurl
yum install mysql mysql-server mysql-devel mysql-clientserver
yum -y install php php-gd php-mbstring php-mysql php-pdo php-pdo_mysql php-mcrypt php-xml php-ldap php-pear php-xmlrpc libdbi-dbd-mysql php-pdo_mysql php-pdo php-tidy php-cli php-devel php-soap php-imap php-curl php-soapxml