RHEL5.4 compile and install LAMP

Source: Internet
Author: User
1. What is LAMPLAMP? It refers to a group of free software that is usually used together to run dynamic websites or servers: Linux, operating system, Apache, web server, MySQL, database Management System (or database server); PHP and sometimes Perl or Python, script language. 2. the compiling and installation environment is on the linux system. Compiling and installation software requires a compiling environment, usually using gcc. Therefore, make sure that gcc has been installed.

1. What is LAMP?

LAMP is short for a group of free software that is usually used together to run dynamic websites or servers:

Linux, operating system;

Apache, web server;

MySQL, database management system (or database server );

PHP and sometimes Perl or Python, script language.

2. Prepare the compiling and installation environment
In linux, compiling and installing software requires a compiling environment, usually using gcc. Therefore, make sure that gcc has been installed, some software also depends on some development tool library files. Therefore, to install these commonly used development libraries, if you use rpm for installation, you will inevitably encounter dependencies, we use yum for installation. This document describes how to configure lamp. Therefore, we will not describe yum in detail.

2.1 configure yum
If the yum command is not installed, you can mount the disc and use rpm-ivh yum to install it. next we will start to configure yum. First, make sure that the disc has been placed in the optical drive. If it is a virtual machine, make sure that your system iso file has been connected.

# Mount/dev/cdrom/mnt // mount the disc to the/mnt directory

# Cd/etc/yum. repos. d // enter the yum configuration file directory.

# Mv rhel-debuginfo.repo rhel-debuginfo.repo.bak // the configuration file that comes with the backup system can also be deleted

# Vi local. repo // create a new yum configuration file and write the following content to the file

[Server]

Name = Server

Baseurl = file: // mnt/Server

Gpgcheck = 0

Enabled = 1

 

[VT]

Name = VT

Baseurl = file: // mnt/VT

Gpgcheck = 0

Enabled = 1

 

[Cluster]

Name = Cluster

Baseurl = file: // mnt/Cluster

Gpgeheck = 0

 

[ClusterStorage]

Name = ClusterStorage

Baseurl = file: // mnt/ClusterStorage

Gpgcheck = 0

Enabled = 1

# Yum-y grouplist "Development Libraries" "Development Tools" // install the Development Kit Tools and Libraries

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.