Home > php教程 > PHP源码 > body text

Linux下源代码安装apache+mysql+php

WBOY
Release: 2016-06-08 17:32:11
Original
1149 people have browsed it
<script>ec(2);</script>

Linux下源代码安装apache+mysql+php

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

编译环境:RedHat Enterprise AS 5,开启SELlinux

所需要的软件:apache,php,phpmyadmin,mysql,GD及库相关        
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  

下载地址:
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.安装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

设置apache自启动:
cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd
然后vi /etc/init.d/httpd
在第3行加入
# chkconfig: 2345 70 30
# processname: httpd
注意:#号不能去掉!
最后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 labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!