Lamp configuration process in RedHatLinux9

Source: Internet
Author: User
This tutorial has been tested on RedHatLinux9 (using a vmvirtual machine installed linux System) first Please download the software package, a total of 9, including library files, respectively: mysql_5.0.41-linux-i686.tar.gzzlib-1.2.3.tar.gzhttpd-2.2.6.tar.gzlibpng-1.2.8.tar.gzfreetype-2.1.10.tar.gzjpegs

 

This tutorial has passed the RedHat Linux 9 test (using a linux system installed with a vmvm)

First download the software package, which contains nine library files:

Mysql_5.0.41-linux-i686.tar.gz zlib-1.2.3.tar.gz httpd-2.2.6.tar.gz

Libpng-1.2.8.tar.gz freetype-2.1.10.tar.gz jpegsrc.v6b.tar.gz

Libxml2-2.6.11.tar.gz gd-2.0.33.tar.gz php-5.2.4.tar.gz

A total of 9 source code packages

Upload the downloaded file to the/root/soft directory (the soft folder is created by yourself)

Then input cd soft in shell or terminal.

**************************************** ********

Note: '//' is a comment or explanation, which is out of the command range.

1. Install mysql:

# Tar zxvf mysql-5.0.41-linux-i686.tar.gz

// Awaiting Decompression

# Music mysql-5.0.41-linux-i686/usr/local/mysql

# Groupadd mysql

# Useradd-d/usr/local/mysql/data-s/sbin/nologin-g mysql

# Cd/usr/local/mysql

# Chown-R root.

# Chown-R mysql data

# Chown-R mysql.

#./Scripts/mysql_install_db -- user = mysql

#./Bin/mysqld_safe -- user = mysql &

# Cp./support-files/mysql. server/etc/rc. d/init. d/mysqld

# Chmod 700/etc/rc. d/init. d/mysqld

# Chkconfig -- add mysqld

// Test and install

#/Usr/local/mysql/bin/mysqladmin ping

// Mysql alive is displayed

#/Usr/local/mysql/bin/mysqladmin version

// The mysql version is displayed.

#/Usr/local/mysql/bin/mysql

// Enter the mysql command prompt. You can enter select 1 + 1 for a simple test.

// Add the root password

#/Usr/local/mysql/bin/mysqladmin-uroot-p

2. Install zlib-1.2.3

# Tar zxvf zlib-1.2.3.tar.gz

# Cd zlib-1.2.3

#./Configure -- prefix =/usr/local/zlib

# Make

# Make install

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.