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