yum 安装 PHP,apache,nginx,mysql
如果是Centos OS 64 位,首先更新
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum clean dbcache
give SELinux permissions to that directory:
chcon -R -h -t httpd_sys_content_t /data/
然后:
yum install nginx
yum install mysql mysql-server mysql-devel mysql-client
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-soap