Under CentOS install lamp and lnmp easy to fix, how easy you see it, mom no longer worried not to install lamp.
Very hard to clean up the installation method, will continue to update. Any inability to install in the comments posted problems, will be resolved as soon as possible. Co-maintain one available yum update available.
Software list: php5.4 apache2.2 mysql5.5 nginx1.8 centos6.x
RPM-UVH HTTP://NGINX.ORG/PACKAGES/CENTOS/6/NOARCH/RPMS/NGINX-RELEASE-CENTOS-6-0.EL6.NGX.NOARCH.RPMRPM-UVH http:/ /DL.FEDORAPROJECT.ORG/PUB/EPEL/6/X86_64/EPEL-RELEASE-6-8.NOARCH.RPMRPM-UVH http://rpms.famillecollet.com/ Enterprise/remi-release-6.rpmyum--enablerepo=remi install-y mysql-server mysql php php-devel php-xml php-fpm php-mysql Php-mbstring php-mcrypt php-gd httpd nginx wget svn vim yum expect
Note: Here will update will be slower about 54 packages, because Remi Domestic no source, updated from abroad. Remi when will there be a source in China?
If you encounter an error:
Error:cannot retrieve Metalink for Repository:epel. Verify its path and try again
Vi/etc/yum.repos.d/epel.repo
Modify point:
[Epel]name=extra Packages for Enterprise Linux 6-$basearchbaseurl =http://download.fedoraproject.org/pub/epel/6/$ Basearch#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch= $basearchfailovermethod = Priorityenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6 .....
Note Modify the Nginx port with Apache to prevent collisions.
Service Nginx restartservice httpd restartservice php-fpm restartservice mysqld Restart
Summarize:
1. What is the role of Epel and Remi?
Epel and Remi are different repository of RPM packages, which are different extensions to base. Why not use base directly? It's actually possible, but after this installation, PHP is 5.3 and we can't use the php5.4 feature. The Remi contains the latest PHP extensions and dependencies. But Remi must rely on Epel this repository so both must be installed.
2. What is the role of Yum--enablerepo=remi?
The default remi.rpm is not turned on after the installation is complete. So to use the Yum--enablerepo=remi must be used to make it effective. Can actually be completely directly modified
Vi/etc/yum.repos.d/remi.repo
Modify point:
[Remi]name=les RPM de Remi pour Enterprise Linux 6-$basearch #baseurl=http://rpms.famillecollet.com/enterprise/6/remi/ $basearch/mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirrorenabled=1gpgcheck=1gpgkey=file:/// Etc/pki/rpm-gpg/rpm-gpg-key-remi .....
This page will be updated on a regular basis to facilitate installation of the system. Remember to pay attention to ...
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Yum installs lamp and LNMP under CentOS easy to handle