Build a LAMP Platform Based on RHEL5.9

Source: Internet
Author: User

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:

  • 1
  • 2
  • Next Page

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.