Install apache2.059 + php5.2 (GD) + mysql5.0.27 + ZendOptimizer-3.2.0 under FC6

Source: Internet
Author: User
Tags root access
FC6 installation of apache2.059 + php5.2 (GD) + mysql5.0.27 + ZendOptimizer-3.2.0-Linux Enterprise Application-Linux server application information, the following is read details. Installation preparation:
Mysql-standard-5.0.27-linux-i686-glibc23.tar.gz
This version does not need to be compiled and initialized before it can be used. (This version of mysql must be downloaded from the official website. If an error occurs, it may be a version issue)
Httpd-2.0.59.tar.gz
Php-5.2.0.tar.bz2
Freetype-2.2.1.tar.gz
Jpegsrc.v6b.tar.gz
Libpng-1.2.15.tar.gz
ZendOptimizer-3.2.0-linux-glibc21-i386.tar.gz
1. Install mysql first (there is no problem in the installation instructions)
# Groupadd mysql
# Useradd-g mysql
# Cd/usr/local
# Tar zvxf mysql-standard-5.0.27-linux-i386-glibc23.tar.gz
# Ln-s mysql-standard-5.0.27-linux-i386-glibc23 mysql (create the first directory connection for mysql)
# Cd mysql
# Scr limit pts/mysql_install_db -- user = mysql
# Chown-R root.
# Chown-R mysql data
# Chgrp-R mysql.
# Cp support-files/my-medium.cnf/etc/my. cnf (mysql Recommended configuration files can also be copied)
#/Usr/local/mysql/bin/safe_mysqld -- user = mysql & // start mysql
#/Usr/local/mysql/bin/mysqladmin-u root password xxxxx // set the password for root access
Mysql does not start after the computer is restarted. If you want to start it at the same time, add the following content:
# Vi/etc/rc. local
Add:/usr/local/mysql/bin/safe_mysqld -- user = mysql & (start mysql at startup)

Mysql is OK

2. install APACHE

# Tar zxvf httpd-2.0.59.tar.gz
# Cd httpd-2.0.59
#./Configure -- prefix =/usr/local/apache2 -- enable-so -- enable-mod-shared = most -- enable-rewrite = shared
# Make
# Make install

3. php installation
First install several support packages
Create an initial directory:

# Mkdir/usr/local/modules

# Jpeg directory
# Mkdir/usr/local/modules 6
# Mkdir/usr/local/modules 6/bin
# Mkdir/usr/local/modules 6/lib
# Mkdir/usr/local/modules 6/include
# Mkdir/usr/local/modules 6/man
# Mkdir/usr/local/modules 6/man/man1

A2. Install freetype

Tar xzvf freetype-2.1.5.tar.gz
Cd freetype-2.1.5
./Configure -- prefix =/usr/local/modules/freetype
Make
Make install

A3 install libpng

# Tar xzvf libpng-1.2.15.tar.gz
# Do not use -- prefix to customize the installation directory, which affects gd installation.
# Cd libpng-1.2.15
# Cp scr implements pts/makefile. std makefile
# Make test
# Make install

A3 install jpeg

# Tar xzvf restart src.v6b.tar.gz
#./Configure -- prefix =/usr/local/modules 6 -- enable-shared -- enable-static
# Make
# Make install

Install php

#. /Configure -- prefix =/usr/local/php5 -- with-apxs2 =/usr/local/apache2/bin/apxs -- with-mysql =/usr/local/mysql -- enable-force- cgi-redirect -- with-freetype-dir =/usr/local/modules/freetype -- with-png-dir =/usr -- with-gd -- enable-gd-native-ttf -- with-ttf -- with-gdbm -- with-gettext -- with-iconv -- with-jpeg-dir =/usr/local/modules 6/-- with-png -- with-zlib -- with-xml -- enable-calendar -- enable-mbstring

Finally install ZendOptimizer-3.2.0,
#./Install
You can press enter all the way.
Note: php5.2 zend version can be ZendOptimizer-3.2.0, fill in php. pay attention to your php. ini location. The directory (-- with-config-file-path) of the configuration file is not specified when php is installed. Therefore, the directory in/usr/local/php5/lib
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.