Linux Source code installation apache+mysql+php

Source: Internet
Author: User
Tags bz2 mkdir

Linux Source code installation apache+mysql+php

/*******************************
* I am Pefocus,pefocus is me!*
*******************************/

Compilation environment: RedHat Enterprise as 5, open Sellinux

Required Software: APACHE,PHP,PHPMYADMIN,MYSQL,GD and library-related
libpng-1.2.24.tar.bz2
Zlib-1.2.3.tar.gz
Freetype-2.3.5.tar.gz
Libxslt-1.1.22.tar.gz
Jpegsrc.v6b.tar.gz
gd-2.0.36rc1.tar.bz2
Libxml2-2.6.30.tar.gz

Download Address:
http://www.apache.org
Http://www.php.net
Http://www.mysql.com
Http://www.ijg.org/files/jpegsrc.v6b.tar.gz
Http://www.zlib.net/zlib-1.2.3.tar.gz
Http://prdownloads.sourceforge.net/libpng/libpng-1.2.8-config.tar.gz?download
http://easynews.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.3.tar.bz2
http://telia.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.3.tar.bz2

1. Install Apache
TAR-XVF httpd-2.2.0.tar.gz
CD httpd-2.2.0
./configure--prefix=/usr/local/apache2--enable-module=so
Make
Make install

Set Apache from Start:
Cp/usr/local/apache2/bin/apachectl/etc/init.d/httpd
Then VI/ETC/INIT.D/HTTPD
On line 3rd, join
# chkconfig:2345 70 30
# PROCESSNAME:HTTPD
NOTE: #号不能去掉!
Finally Chkconfig--add httpd

2.freetype
Tar vjf freetype-2.1.3.tar.bz2
CD freetype-2.1.3
./configure
Make
Make install

3.jpeg
Tar xvf jpegsrc.v6b.tar.gz
CD jpeg-6b/
./configure--enable-shared--enable-static
Make
Mkdir-v/usr/local/man
Mkdir-v/usr/local/man/man1
Make install

4.zlib
Tar xvf zlib-1.2.3.tar.gz
CD zlib-1.2.3
./configure
Make
Make install

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.