Version mysql+apache+php in Lux Installation Guide It's so tiring to say. _php Tutorials

Source: Internet
Author: User
Just saw someone paste win under installation steps
Just the new server on the company's website today. Spent the morning installing Mysql+php+apache.
The old version of the new edition is still somewhat different. Now, take the steps.
Installation steps:
1.mysql
Download 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/home/tmp Directory
List of commands:
Cd/home/tmp
RPM-IVH mysql-3.23.52-1.i386.rpm #安装mysql Server
RPM-IVH mysql-client-3.23.52-1.i386.rpm #安装mysql Client
/usr/mysql/safe_mysqld & #启动mysql Server
MySQL #运行mysql the client and open the root user's remote access permissions. For debugging
Use MySQL
Update user Set host = '% ' where user = ' root ' and host <> ' localhost ';
Flush privileges;
Quit
This completes the MySQL installation
2.apache
Download the Apache for Linux source package on the following page
Http://www.apache.org/dist/httpd/apache_1.3.26.tar.gz
Save to/home/tmp Directory
List of commands:
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 mode
3.php
Download the PHP for Linux source package on the following page
Http://www.php.net/get_download.php?df=php-4.2.3.tar.gz
Save to/home/tmp Directory
List of commands:
Cd/home/tmp
TAR-ZXVF php-4.2.3.tar.gz
MV 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
Use DSO to install PHP to/usr/local/php Settings profile directory for/usr/local/lib open Mysql,xml support
4. Configuration
Vi/usr/local/apache/conf/httpd.conf
Make the following configuration for Apache
#将ServerAdmin q3boy@younet.com Line to your email address
#DocumentRoot "/home/httpd/html/" Here is the home directory for HTML files
# Ibid.

http://www.bkjia.com/PHPjc/631453.html www.bkjia.com true http://www.bkjia.com/PHPjc/631453.html techarticle just saw someone paste win under the installation steps just today the company website of the new server hand. Spent the morning installing Mysql+php+apache. The old version of the new edition is still somewhat different. Now take the step ...

  • 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.