重新整理mysql+apache+gd+php(zlib,jpegsrc...)
2008-12-03 18:30
537 查看
重新整理mysql+apache+gd+php(zlib,jpegsrc...)
AS 4+mysql 5.0.27+httpd-2.0.58 +gd-2.0.33 zlib-1.2.3 +libpng-1.2.14+freetype-2.2.1+jpegsrc-1.v6b+php-5.2.0
软件准备
mysql 5.0.27
httpd-2.0.58
gd-2.0.33
libpng-1.2.14
freetype-2.2.1
jpegsrc-1.v6b
php-5.2.0
zlib-1.2.3
mysql 5.0.27
http://ftp.plusline.de/mysql/Downloads/MySQL-5.0/mysql-5.0.27.tar.gz
php-5.2.0
http://cn2.php.net/get/php-5.2.0.tar.bz2/from/cn.php.net/mirror
http://cn2.php.net/get/php-5.2.0.tar.bz2/from/cn.php.net/mirror
httpd-2.0.58
http://httpd.apache.org/download.cgi
http://httpd.apache.org/download.cgi
GD Library gd-2.0.33
http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
zlib-1.2.3
http://www.zlib.net/zlib-1.2.3.tar.gz
http://www.zlib.net/zlib-1.2.3.tar.gz
libpng
http://prdownloads.sourceforge.net/libpng/libpng-1.2.8-config.tar.gz?download
Jpeg v6b
http://www.ijg.org/files/jpegsrc.v6b.tar.gz
FreeType2
http://jaist.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.10.tar.gz
http://www.freetype.org
http://www.freetype.org
ftp://ftp.uu.net/graphics/jpeg/
ftp://ftp.uu.net/graphics/jpeg/
http://www.gzip.org/zlib/
http://www.gzip.org/zlib/
http://www.php.net/downloads.php
http://www.php.net/downloads.php
ftp://ftp.uu.net/graphics/png/src/zlib-1.1.3.tar.gz
ftp://ftp.uu.net/graphics/png/src/zlib-1.1.3.tar.gz
http://www.libpng.org/pub/png/
http://www.libpng.org/pub/png/
http://www.boutell.com/gd/
http://www.boutell.com/gd/
ftp://ftp.rhyme.com.au/pub/gd/
ftp://ftp.rhyme.com.au/pub/gd/
http://nchc.dl.sourceforge.net/sourceforge
http://nchc.dl.sourceforge.net/sourceforge
Zend
http://downloads.zend.org
http://downloads.zend.org
Proftpd
http://www.proftpd.org/
http://www.proftpd.org/
libxml
http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.19.tar.gz
XPM
ftp://metalab.unc.edu/pub/Linux/libs/X/!INDEX.html
===================================================
先解压所有包,然后
1、装httpd2.*
cd /soft/apache_1.3.37
patch -p0 < /soft/frontpage/version4.0/apache-fp/fp-patch-apache_1.3.26
cp /soft/frontpage/version4.0/apache-fp/fp-patch-apache_1.3.26 src/modules/extra/
cp mod_frontpage.c src/modules/extra/
./configure --enable-shared=max --prefix=/usr/local/httpd --enable-module=most --enable-so --server-uid=99 --server-gid=99 --enable-suexec --suexec-caller=nobody --enable-shared=max --suexec-docroot=/usr/local/httpd/htdocs --suexec-uidmin=99 --suexec-gidmin=99
make clean
make && make install
vi /usr/local/httpd/conf/httpd.conf #添加下面两行
DirectoryIndex index.php
AddType application/x-httpd-php .php
user nobody #用户及组均改为nobody
group nobody
启动测试 /usr/local/httpd/bin/apachectl start
netstat -lntp |grep 80 #查看80端口启动代表成功
2、装zlib
cd zlib-1.2.3
./configure --prefix=/usr/local
make && make install
3、装libpng
cd ../libpng-1.2.8-config
./configure --prefix=/usr/local
make && make install
4、装freetype
cd ../freetype-2.1.10
./configure --prefix=/usr/local
make && make install
5、装jpegsrc
cd ../jpeg-6b/
ll /usr/local/man/man1 #查看路径是否存在,没有就建立相应目录。
./configure --prefix=/usr/local --enable-shared --enable-static
make && make install
6、装libxml2
cd libxml2-2.6.19
./configure --prefix=/usr/local --with-http --with-modules --with-zlib=/usr/local
make && make install
7、安装GD库
cd ../gd
./configure --prefix=/usr/local/gd --with-jpeg=/usr/local --with-png=/usr/local --with-zlib=/usr/local --with-freetype=/usr/local
make && make install
cp gd.h /usr/local/lib
8、安装 php
cd ../php-5.2.2
./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5 --with-apxs=/usr/local/httpd/bin/apxs --with-mysql=/usr/local/mysql --with-jpeg-dir=/usr/local --with-zlib-dir=/usr/local --with-freetype=/usr/local --with-png-dir=/usr/local --with-gd=/usr/local/gd --with-libxml-dir=/usr/local
make
make test #如有FALED字样,可以不用理会
make install
cp php.ini-dist /usr/local/lib/php.ini
vi /usr/local/httpd/conf/httpd.conf #确定以下两行存在
LoadModule php5_module modules/libphp5.so
AddModule mod_php5.c
测试
vi /usr/local/httpd/htdocs/index.php
<?
phpinfo();
?>;
CentOS,AS4 上测试均没有问题
AS 4+mysql 5.0.27+httpd-2.0.58 +gd-2.0.33 zlib-1.2.3 +libpng-1.2.14+freetype-2.2.1+jpegsrc-1.v6b+php-5.2.0
软件准备
mysql 5.0.27
httpd-2.0.58
gd-2.0.33
libpng-1.2.14
freetype-2.2.1
jpegsrc-1.v6b
php-5.2.0
zlib-1.2.3
mysql 5.0.27
http://ftp.plusline.de/mysql/Downloads/MySQL-5.0/mysql-5.0.27.tar.gz
php-5.2.0
http://cn2.php.net/get/php-5.2.0.tar.bz2/from/cn.php.net/mirror
http://cn2.php.net/get/php-5.2.0.tar.bz2/from/cn.php.net/mirror
httpd-2.0.58
http://httpd.apache.org/download.cgi
http://httpd.apache.org/download.cgi
GD Library gd-2.0.33
http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
zlib-1.2.3
http://www.zlib.net/zlib-1.2.3.tar.gz
http://www.zlib.net/zlib-1.2.3.tar.gz
libpng
http://prdownloads.sourceforge.net/libpng/libpng-1.2.8-config.tar.gz?download
Jpeg v6b
http://www.ijg.org/files/jpegsrc.v6b.tar.gz
FreeType2
http://jaist.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.10.tar.gz
http://www.freetype.org
http://www.freetype.org
ftp://ftp.uu.net/graphics/jpeg/
ftp://ftp.uu.net/graphics/jpeg/
http://www.gzip.org/zlib/
http://www.gzip.org/zlib/
http://www.php.net/downloads.php
http://www.php.net/downloads.php
ftp://ftp.uu.net/graphics/png/src/zlib-1.1.3.tar.gz
ftp://ftp.uu.net/graphics/png/src/zlib-1.1.3.tar.gz
http://www.libpng.org/pub/png/
http://www.libpng.org/pub/png/
http://www.boutell.com/gd/
http://www.boutell.com/gd/
ftp://ftp.rhyme.com.au/pub/gd/
ftp://ftp.rhyme.com.au/pub/gd/
http://nchc.dl.sourceforge.net/sourceforge
http://nchc.dl.sourceforge.net/sourceforge
Zend
http://downloads.zend.org
http://downloads.zend.org
Proftpd
http://www.proftpd.org/
http://www.proftpd.org/
libxml
http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.19.tar.gz
XPM
ftp://metalab.unc.edu/pub/Linux/libs/X/!INDEX.html
===================================================
先解压所有包,然后
1、装httpd2.*
cd /soft/apache_1.3.37
patch -p0 < /soft/frontpage/version4.0/apache-fp/fp-patch-apache_1.3.26
cp /soft/frontpage/version4.0/apache-fp/fp-patch-apache_1.3.26 src/modules/extra/
cp mod_frontpage.c src/modules/extra/
./configure --enable-shared=max --prefix=/usr/local/httpd --enable-module=most --enable-so --server-uid=99 --server-gid=99 --enable-suexec --suexec-caller=nobody --enable-shared=max --suexec-docroot=/usr/local/httpd/htdocs --suexec-uidmin=99 --suexec-gidmin=99
make clean
make && make install
vi /usr/local/httpd/conf/httpd.conf #添加下面两行
DirectoryIndex index.php
AddType application/x-httpd-php .php
user nobody #用户及组均改为nobody
group nobody
启动测试 /usr/local/httpd/bin/apachectl start
netstat -lntp |grep 80 #查看80端口启动代表成功
2、装zlib
cd zlib-1.2.3
./configure --prefix=/usr/local
make && make install
3、装libpng
cd ../libpng-1.2.8-config
./configure --prefix=/usr/local
make && make install
4、装freetype
cd ../freetype-2.1.10
./configure --prefix=/usr/local
make && make install
5、装jpegsrc
cd ../jpeg-6b/
ll /usr/local/man/man1 #查看路径是否存在,没有就建立相应目录。
./configure --prefix=/usr/local --enable-shared --enable-static
make && make install
6、装libxml2
cd libxml2-2.6.19
./configure --prefix=/usr/local --with-http --with-modules --with-zlib=/usr/local
make && make install
7、安装GD库
cd ../gd
./configure --prefix=/usr/local/gd --with-jpeg=/usr/local --with-png=/usr/local --with-zlib=/usr/local --with-freetype=/usr/local
make && make install
cp gd.h /usr/local/lib
8、安装 php
cd ../php-5.2.2
./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5 --with-apxs=/usr/local/httpd/bin/apxs --with-mysql=/usr/local/mysql --with-jpeg-dir=/usr/local --with-zlib-dir=/usr/local --with-freetype=/usr/local --with-png-dir=/usr/local --with-gd=/usr/local/gd --with-libxml-dir=/usr/local
make
make test #如有FALED字样,可以不用理会
make install
cp php.ini-dist /usr/local/lib/php.ini
vi /usr/local/httpd/conf/httpd.conf #确定以下两行存在
LoadModule php5_module modules/libphp5.so
AddModule mod_php5.c
测试
vi /usr/local/httpd/htdocs/index.php
<?
phpinfo();
?>;
CentOS,AS4 上测试均没有问题
相关文章推荐
- linuxAS4下安装apache+resin+php+GD+mysql(整理)
- ubuntu 12.04 server《一》 apache+php+mysql 菜鸟配置笔记(合成,整理,实操版)
- [精华] [原创]Linux+Apache+Mysql+PHP典型配置 (整理篇)
- apache php 多站点配置 重新整理
- apache php 多站点配置 重新整理
- Apache+SSL+PHP+JSP+MySQL+IMAP+GD安装全攻略
- centos/redhat 利用yum快速安装php mysql gd apache
- 编译安装apache+mysql+php 支持jpg,gd等
- 实战 linux 下 mysql+apache+php+gd 的安装和配置
- 编译安装apache+mysql+php 支持jpg,gd等
- CENTOS+ORACLE+APACHE+GD+PHP+MYSQL+WSF+Memcache完整安装
- apache+mysql+GD+php
- apache+mysql+php整理
- 整理网上在centos 7 安装 Apache 、MySQL、PHP的教程
- centos5.1最小化安装+apache+php+mysql+gd+zend+phpmyadmin
- httpd+xpm+libxml+jpegsrc+libpng+freetype+zlib+gd+php-5.2.2+ZendOptimizer-3.0.1+Mysql
- apache php 多站点配置 重新整理
- Linux Apache php MySQL GD PHPWind 集成环境配置
- 【整理】Apache、PHP、MySQL默认安装目录
- 64位linux centOS 5.5 安装 Apache+Mysql+PHP+GD