CentOS-5 yum install nginx php53 mysql55 lnmp environment for lnmp use, has provided the lnmp installation package, but if you want to quickly configure the environment, it is recommended that yum install. 1. Import external software library centos-5 32-bit: rpm-Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/epel-release-5-4.noarch.rpmrpm-Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-10.ius.el5.noarch.rpmrpm-Uvh http://nginx.org/packages/centos/5/noarch/RPMS/nginx-release-centos-5-0.el5.ngx.noarch.rpmcentos-5 64-bit: rpm-Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ep El-release-5-4.noarch.rpmrpm-Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpmrpm-Uvh license list = http://dmirr.iuscommunity.org/mirrorlist? Ius-el5 & arch = $ basearch
Delete the following line: # baseurl = http://dl.iuscommunity.org/pub/ius/stable/redhat/5/#basearch
2, yum install lnmpyum install mysql55-server mysql55 php53u-fpm nginx
3. Change lnmpvi/etc/nginx/conf. d/default. conf to location ~ \. Php $ {root html; fastcgi_pass 127.0.0.1: 9000; fastcgi_index index. php; SCRIPT_FILENAME/usr/share/nginx/html $ parameters; include fastcgi_params;} 4. start lnmpchkconfig php-fpm onchkconfig nginx onchkconfig mysqld onservice php-fpm startservice nginx startservice mysqld start
This article is from CentOS Linux tutorial network.