Latest lamp configuration: Hongqi Linux6 + apache2.2.6 + mysql5 + PHP5.2.4 + ZO3.3.0

Source: Internet
Author: User
Latest lamp configuration: Hongqi Linux6 + apache2.2.6 + mysql5 + PHP5.2.4 + ZO3.3.0 -- Linux Enterprise Application-Linux server application information. For details, see the following. 1. Download and install red-flag Linux Desktop 6

1. Download linux
Address
Find "Go to red-flag Linux Desktop 6.0 system cd" and download it.

2. Installation
The red-flag linux conforms to Chinese usage habits and methods, and is worthy of Chinese linux. The installation steps are omitted here... (there are a lot of practical tools in the red-flag linux Desktop 6.0 tool CD. If you are interested, you can experiment with QQ on the linux platform)

2. download other components

1. apache2.2.6
Address: http://httpd.apache.org/download.cgi
Find "Apache HTTP Server 2.2.6 is the best available version"
The following "Unix Source: httpd-2.2.6.tar.gz [PGP] [MD5]" click to download

2. mysql5.0.45
Address: http://dev.mysql.com/downloads/m... atic-x86-32bit-rpms
Download the following rpm package:
MySQL-server-5.0.45-0.i386.rpm
MySQL-devel-5.0.45-0.i386.rpm
MySQL-client-5.0.45-0.i386.rpm
MySQL-shared-5.0.45-0.i386.rpm
MySQL-bench-5.0.45-0.i386.rpm (this item can be left empty)

3. PHP5.2.4
Address: http://www.php.net/downloads.php
Download the PHP 5.2.4 (tar.gz) package.

4. Other related installation packages

1) install the required software package for php (libxml2 is required to install php5)
Libxml2-2.6.19.tar.gz
Libxslt-1.1.15.tar.gz
Curl-7.15.0.tar.gz

2) software packages required by the GD library
(Some people say that the PHP source code package contains GD2.0.28 and zlib, as long as the three support packages of GD are installed: jpg, png, and freetype)
Gd-2.0.33.tar.gz
Freetype-2.2.1.tar.gz
Jpegsrc.v6b.tar.gz
Libpng-1.2.11.tar.gz
Zlib-1.2.3.tar.gz

3366zendoptimizer-3.3.0-linux-glibc21-i386.tar.gz (this item can be unavailable)

4) related downloads
(Download the corresponding package based on your linux Version)
Http://ftp.gnome.org/pub/GNOME/s... bxml2-2.6.19.tar.gz
Http://ftp.gnome.org/pub/GNOME/s... bxslt-1.1.15.tar.gz
Http://curl.haxx.se/download/curl-7.15.0.tar.gz
Http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
Http://keihanna.dl.sourceforge.n... etype-2.1.10.tar.gz
Http://www.ijg.org/files/jpegsrc.v6b.tar.gz
Http://nchc.dl.sourceforge.net... libpng-1.2.8.tar.gz
Http://www.zlib.net/zlib-1.2.3.tar.gz
Http://www.zend.net
Download all the above software packages to the corresponding directory.
Note: I only downloaded the src.v6b.tar.gz file,
For specific versions of the integration, I have browsed the similar and even higher version.

Iii. Installation

1. Install mysql
Because I am a newly installed linux system and other services are not installed, install it directly. If you have already installed mysql, uninstall it first. We recommend that you use RPM to install MySQL.

# Rpm-ivh MySQL-server-standard-5.0.45-0.i386.rpm
# Rpm-ivh MySQL-client-standard-5.0.45-0.i386.rpm
# Rpm-ivh MySQL-shared-standard-5.0.45-0.i386.rpm
# Rpm-ivh MySQL-devel-standard-5.0.45-0.i386.rpm
# Set the root password for mysqladmin-u root password 123456
Test whether MySQL runs normally. If you are not familiar with MySQL, you can install phpmyadmin or webmin.

2. Install the apache server
Install apache
# Tar-zxvf httpd-2.2.6.tar.gz
# Cd httpd-2.2.6/
#./Configure -- prefix =/usr/local/apache -- sysconfdir =/etc/httpd -- enable-so
-- Enable-shared = max
# Make
# Make install
Run the apache server and check whether the server runs normally.
#/Usr/local/apache/bin/apachectl start
In the browser 127.0.0.1 test, the default page text of 2.2.6 is surprisingly simple "It works !"
Set auto-start
# Add vi/etc/rc. d/rc. local
/Usr/local/apache/bin/apachectl start
-- Prefix =/usr/local/apache specifies the installation path, and -- sysconfdir =/etc/httpd indicates the path of the configuration file.

3.install and install jpegsrc.v6b.tar.gz
Create a directory:
# Mkdir-p/usr/local/limit 6
# Mkdir-p/usr/local/partition 6/bin
# Mkdir-p/usr/local/release 6/lib
# Mkdir-p/usr/local/users 6/include
# Mkdir-p/usr/local/Example 6/man
# Mkdir-p/usr/local/IPv6/man1
# Mkdir-p/usr/local/users 6/man/man1
Tar-zxvf restart src.v6b.tar.gz
#./Configure -- prefix =/usr/local/defaults 6/-- enable-shared -- enable-static
# Make
# Make install
# Make install-lib

4. Install php5
# Tar-zvxf php-5.2.4.tar.gz
# Mkdir-p/usr/local/php
# Cd php-5.2.4
#./Configure -- prefix =/usr/local/php (Be sure to use the line feed)
-- With-apxs2 =/usr/local/apache/bin/apxs
-- With-mysql
-- With-xml
-- With-png
-- With-jpeg-dir =/usr/local/defaults 6
-- With-zlib
-- With-freetype-dir
-- With-gd
-- With-curl
-- Enable-track-vars
-- Disable-debug
-- Enable-url-includes
-- Enable-sockets
-- Enable-force-cgi-redirect
-- Enable-calendar
-- With-config-file-path =/etc
-- Enable-magic-quotes
-- Enable-ftp
-- Enable-gd-native-ttf
-- With-ttf
-- With-gdbm
-- With-gettext
-- With-iconv
-- Enable-mbstring = all
-- Enable-memory-limit
# Make
# Make install
# Cp php. ini-dist/etc
The./configure
-- Prefix =/usr/local/php
-- With-apxs2 =/usr/local/apache2/bin/apxs
-- With-mysql (this option is available for RPM installation. -- with-mysql = your installation path)
-- With-xml
Is a required Option
-- With-png
-- With-jpeg-dir
-- With-gd
-- With-zlib
-- With-freetype-dir
This is the configuration option for PHP to support the GD library
Some PHP function libraries to be used can be deleted or added according to your preferences.
Note: Here I am the default installation file ("related download" mentioned above) for the Linux system, so there is no detailed path later,
If you have installed it by yourself, add it later, in the format of -- with-xxx =/xxx

4. Edit the apache configuration file httpd. conf.
# Vi/etc/httpd. conf
You need to modify the following items:
# AddType application/x-gzip. gz. tgz
Add two rows below
AddType application/x-httpd-php. php
AddType application/x-httpd-php-source. phps
Also, find DirectoryIndex index.html.
Add index. php to make index. php a response page.

V. Test PHP
# Vi/usr/local/apache/htdocs/phpinfo. php
(/Usr/local/apache/htdocs/is the main directory of the webpage,
You can find DocumentRoot in/etc/httpd. conf to set the Home Directory of Your webpage)
Add:
Phpinfo ();
?>
Restart the apache server
#/Usr/local/apache/bin/apachectl restart
Http: // 127.0.0.1/phpinfo. php In the browser has been tested for a long time.

Install zendoptimizer-3.3.0-linux-glibc21-i386.tar.gz
# Tar-zxvf ZendOptimizer-3.3.0-linux-glibc21-i386.tar.gz
# Cd ZendOptimizer-3.3.0
#./Install. sh
Restart the machine lamp.
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.