安装apache
yum -y install httpd
service httpd start
添加yum源
rpm -ivh http://mirrors.ustc.edu.cn/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum -y install yum-priorities
安装php
yum --enablerepo=remi install php
安装mysql
yum --enablerepo=remi install mysql
yum --enablerepo=remi install mysql-server
yum --enablerepo=remi install mysql-devel
安装php扩展
yum --enablerepo=remi install php-mysql php-xml php-mbstring php-gd php-mcrypt
配置apache添加php
vi /etc/httpd/conf/httpd.conf
添加
ServerName localhost:80
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载