Lamp php7.0环境配置
- 更新yum安装包
CentOS 7.x
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
CentOS 6.x
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
CentOS 5.x
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
- 通过云进行php和其他组件的安装
- install php70w.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64
yum install php70w-fpm
yum install php70w-devel php70w-pear php70w-httpd-devel
安装php扩展
yum -y install gd php70w-gd gd-devel php70w-xml php70w-common php70w-mbstring php70w-ldap php70w-pear php70w-xmlrpc php70w-imap
安装mysql
yum -y install mysql-server mysql mysql-devel
更改mysql远程访问
mysql -uroot -proot123
GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'root123' WITH GRANT OPTION;
更改apache配置
vi /etc/httpd/conf/httpd.conf
假如这句话没有就加上
LoadModule rewrite_module modules/mod_rewrite.so
AllowOverride None 改成 All
已有 2 条评论
添加新评论
- 上一篇: Memcache PHP7.0安装
- 下一篇: 常用日期处理函数,时间戳处理函数等
把mysql密码写在命令行不是个好习惯。
处理过后的密码,安心~