https://market.aliyun.com/products/53398003/cmjj013028.html?spm=5176.74546.503759.8.0lLQRf
Lamp环境搭建
http://jingyan.baidu.com/article/3d69c5518e82e3f0cf02d7ea.html
yum -y install httpd mysql mysql-server php php-mysql postgresql postgresql-server php-postgresql php-pgsql php-devel
启动apache 命令如下:(切记用root用户启动服务)
启动:/etc/rc.d/init.d/httpd start
检测启动结果:ps aux | grep httpd
启动mysql 命令如下:
启动: /etc/rc.d/init.d/mysqld start
检查启动结果: netstat -tulnp | grep :3306
修改root密码: mysqladmin -u root password ‘你想设置的密码’
允许数据库远程登录
http://jingyan.baidu.com/article/b907e627b0e3b846e7891cc9.html
update user set host=‘%’ where host=‘localhost’
flush privileges;
php版本升级
http://blog.csdn.net/yfgcq/article/details/50151435
1.首页安装Webtatic EL6 YUM源
rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm
2.停止web服务器
service nginx stop
或者
service httpd stop
3.删除当前的 php 安装 php5.4
yum remove php*
yum install php54w
4.重启web服务器
service php-fpm restart
service nginx start
或者
service httpd restart
5.查看php版本
php -v1.首页安装Webtatic EL6 YUM源
lamp配置文件
/etc/php.ini
/etc/httpd/conf/httpd.conf
Mysql SQL配置
/etc/my.cnf
character_set_server=utf8
init_connect='SET NAMES utf8'
php扩展如何安装
yum list php* 显示所有可以安装的yum
yum instart ***** 你要安装的扩展
http://blog.csdn.net/buyueliuying/article/details/52535724
yum list installed | grep php 检测当前php所安装的包
php56w-mysql.x86_64
php56w-gd.x86_64
安装好后重启apache服务器
php.x86_64 5.3.3-48.el6_8 @updates
php-cli.x86_64 5.3.3-48.el6_8 @updates
php-common.x86_64 5.3.3-48.el6_8 @updates
php-devel.x86_64 5.3.3-48.el6_8 @updates
php-mysql.x86_64 5.3.3-48.el6_8 @updates
php-pdo.x86_64 5.3.3-48.el6_8 @updates
php-pgsql.x86_64 5.3.3-48.el6_8 @updates