Linux installation: MySQL + Apache + PHP

Source: Internet
Author: User
Installation steps:

1. MySQL

Download the MySQL for Linux RPM package on the following page

Http://www.mysql.com/downloads/down...3.52-1.i386.rpm;

Http://www.mysql.com/downloads/down...3.52-1.i386.rpm;

Save to the/home/tmp directory

Command list:

CD/home/tmp

Rpm-IVH MySQL-3.23.52-1.i386.rpm # Install MySQL Server

Rpm-IVH MySQL-client-3.23.52-1.i386.rpm # Install MYSQL client

/Usr/MySQL/safe_mysqld & # Start MySQL Server

MySQL # runs the mysql client and opens the root user's remote access permission. For debugging

Use MySQL

Update user set host = '%' where user = 'root' and host <> 'localhost ';

Flush privileges;

Quit

MySQL installation is now complete

2. Apache

Download the source code package of Apache for Linux on the following page

Http://www.apache.org/dist/httpd/apache_1.3.26.tar.gz;

Save to the/home/tmp directory

Command list:

CD/home/tmp

Tar-zxvf apache_1.3.26.tar.gz

MV apache_1.3.26.tar.gz Apache

CD Apache

./Configure -- prefix =/usr/local/Apache -- enable-module = so

Make

Make install

Install Apache to/usr/local/Apache and configure Apache to support DSO

3. php

Download the PHP for Linux source code package on the following page

Http://www.php.net/get_download.php? Df1_php-4.2.3.tar.gz;

Save to the/home/tmp directory

Command list:

CD/home/tmp

Tar-zxvf php-4.2.3.tar.gz

Music php-4.2.3.tar.gz PHP

CD PHP

./Configure -- prefix =/usr/local/PHP
-- With-apxs =/usr/local/Apache/bin/apxs
-- With-config-file-Path =/usr/local/lib -- enable-track-vars -- With-XML
-- With-MySQL

Make

Make install

Cp php. ini-Dist/usr/local/lib/PHP. ini

Install PHP in DSO mode to/usr/local/PHP and set the configuration file directory to/usr/local/lib to enable mysql. xml supports

Related Article

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.