Install lamp and lnmp in yum in centos, and centoslnmp

Source: Internet
Author: User
Tags metalink

Install lamp and lnmp in yum in centos, and centoslnmp

In centos, lamp and lnmp can be easily installed in yum. You can see how easy it is. Mom no longer worries about lamp installation.

The installation method, which is very hard to organize, will be updated continuously. Any problems that cannot be installed will be fixed in the comments as soon as possible. Jointly maintain an available yum update.

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: the update process will take about 54 Packages slowly, because remi has no source in China and is updated from abroad. When Will remi be available in China?


If an error occurs:
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

vi /etc/yum.repos.d/epel.repo


Modification 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.........

Modify the ports of nginx and apache to prevent conflicts.
service nginx restartservice httpd restartservice php-fpm restartservice mysqld restart


Summary:
1. What is the role of epel and remi?
Epel and remi are different from rpm packages. Repository is different for Base expansion. Why not use Base directly? In fact, this is acceptable, but php is 5.3 after installation. We cannot use the php5.4 feature. Remi contains the latest php extensions and dependencies. However, remi must depend on the Repository of epel, so both must be installed.
2. What is the role of yum -- enablerepo = remi?
By default, remi. rpm is not enabled after installation. Therefore, you must use yum -- enablerepo = remi to make it take effect. It can be directly modified.

vi /etc/yum.repos.d/remi.repo

Modification 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 occasionally to facilitate system installation. Remember to pay attention...



Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.