CENTOS6 Source installs the latest nginx php MySQL (iptables selinux prior shutdown)

Source: Internet
Author: User
Tags fpm php mysql iptables

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.