CENTOS6 Source installs the latest nginx php mysql (iptables selinux prior shutdown )
1, Php5.6 installation Remi Source
http://rpms.famillecollet.com/
Yuminstall http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
This action also installs the Epel source automatically ( this source can be installed mysql5.5php5.4 php5.6 php5.5)
then Modify vi remi.repo in /etc/yum.repos.d
[REMI-PHP56]
Enabled=1
[Remi]
Enabled=1
2,nginx1.6 installation Nginx 1.6 Official source
Address Http://nginx.org/en/linux_packages.html#mainline
Yum Install
http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
2, Mysql5.6 install MySQL
Address http://dev.mysql.com/downloads/repo/yum/
Yum Install http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
last yum installphp-fpm nginx MySQL mysql-server–y
Chkconfig Php-fpmon
Chkconfig Nginxon
#Chkocnfig mysqld on
Service Nginxstart
Service PHP-FPM Start
Service mysqld Start
enable in /etc/nginx/conf.d/default.conf
Location/{
Index index.php index.html index.htm;
Location ~ \.php$ {
root/usr/share/nginx/html;
Fastcgi_pass 127.0.0.1:9000;
Fastcgi_index index.php;
Fastcgi_param script_filename $document _root$fastcgi_script_name;
Include Fastcgi_params;
}
Fastcgi_param script_filename $document _root$fastcgi_script_nam
E
in root/usr/share/nginx/html new index.php <?php phpinfo ();? >
This article is from the "Lost Lamb" blog, please be sure to keep this source http://2346860.blog.51cto.com/2336860/1627652
CENTOS6 Source installs the latest nginx php MySQL (iptables selinux prior shutdown)