Build a LAMP Platform Based on RHEL5.9
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.
Install and configure LAMP in CentOS 6.5
Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04
Compile and install LAMP in CentOS 5.9 (Apache 2.2.44 + MySQL 5.6.10 + PHP 5.4.12)
Source code for Web server architecture in RedHat 5.4 build the LAMP environment and application PHPWind
Build a WEB Server Linux + Apache + MySQL + PHP in the LAMP source code Environment
Ubuntu-based LAMP optimization and Reinforcement
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, please continue to read the highlights on the next page: