The LAMP platform is a Linux operating system, Apache website service, Mysql database, and PHP script. There are two ways to install the LAMP platform: advantages and disadvantages of RPM installation and source code package installation: RPM installation is simple and convenient, but does not support custom function modules. Poor flexibility: the installation process is cumbersome. You can customize the installation path and functional modules. The tool is flexible and widely used in CentOS6.5. install and configure LAM.
Build the LAMP Platform
LAMP platform refers to the Linux operating system, Apache website service, Mysql database, and PHP script support.
There are two ways to install the LAMP platform: RPM installation and source code package installation.
Advantages and disadvantages of the two installation methods:
RPM: the installation process is simple and convenient, but does not support user-defined function modules, resulting in poor flexibility.
Source code package compilation method: the installation process is cumbersome and supports user-defined installation paths and functional modules. It is flexible and widely used.
CentOS 6.5 installation configuration LAMP http://www.linuxidc.com/Linux/2014-07/104373.htm
Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04Http://www.linuxidc.com/Linux/2013-06/86250.htm
Compile and install LAMP (Apache 2.2.44 + MySQL 5.6.10 + PHP 5.4.12) http://www.linuxidc.com/Linux/2013-03/80333p3.htm in CentOS 5.9
Source code construction of Web Server Architecture in RedHat 5.4 LAMP environment and application PHPWind http://www.linuxidc.com/Linux/2012-10/72484p2.htm
LAMP source environment to build WEB Server Linux + Apache + MySQL + PHP http://www.linuxidc.com/Linux/2013-05/84882.htm
Ubuntu-based LAMP reinforced http://www.linuxidc.com/Linux/2014-07/104092.htm
I. RPM-based LAMP platform construction:
Lab requirements: Use the RHEL5.9x64 operating system to configure the yum Repository
Tutorial steps:
1. Configure the yum Source
(Omitted)
2. yum installation package
The installed software packages include httpd, mysql-server, mysql, php, php-mysql, php-pdo, and php-mbstring.
3. modify the configuration file of each Service
Modify the configuration file of the Apache service:
[Root @ localhost ~] # Vim/etc/httpd/conf/httpd. conf
4. Start the service and set Automatic startup
5. Test
Compile the test webpage file:
Local access test:
PHP works properly
Database Connection is normal
Ii. Build the LAMP platform by compiling the source code package
Lab preparation:
Http source package: httpd-2.2.25.tar.gz
Source mysql package: mysql-5.1.62.tar.gz
PHP source package: php-5.4.19.tar.gz
Tutorial steps:
1. Install the Apache service
(1) install the dependency package in yum
(2gz decompress httpd-2.2.25.tar.gz
[Root @ localhost ~] # Tar zxf httpd-2.2.25.tar.gz-C/usr/src
(3) Compile and install
For more details, refer to the highlights on the next page.: Http://www.linuxidc.com/Linux/2014-08/105486p2.htm