重新整理mysql+apache+gd+php(zlib,jpegsrc...)
来源:互联网 发布:汽车坐垫推荐 知乎 编辑:程序博客网 时间:2024/05/19 16:06
重新整理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 上测试均没有问题
- 重新整理mysql+apache+gd+php(zlib,jpegsrc...)
- httpd+xpm+libxml+jpegsrc+libpng+freetype+zlib+gd+php-5.2.2+ZendOptimizer-3.0.1+Mysql
- linuxAS4下安装apache+resin+php+GD+mysql(整理)
- PHP+MySQL+Apache+GD安装精华版
- PHP+MySQL+Apache+GD安装精华版
- MySQL+Apache+GD+PHP+Zend+ImageMagick
- 重新折腾apache+php+mysql
- apache php 多站点配置 重新整理
- apache php 多站点配置 重新整理
- apache php 多站点配置 重新整理
- FreeBSD上Apache+php+mysql+GD的正确安装
- Apache+SSL+PHP+JSP+MySQL+IMAP+GD安装全攻略
- Linux Apache php MySQL GD PHPWind 集成环境配置教程
- CentOS5.1最小化安装+Apache+PHP+MySQL+GD+Zend+phpMyAdmin
- 64位linux centOS 5.5 安装 Apache+Mysql+PHP+GD
- centos/redhat 利用yum快速安装php mysql gd apache
- centos5最小化安装+apache+php+mysql+gd+zend+phpmyadmin
- Linux Apache php MySQL GD PHPWind 集成环境配置
- arcims开发经验总结(4) (arcIMS 客户端 连接器的选择)
- Inside COM 笔记三(Chapter5, Chapter6)
- 用vs2005 开发arcims htmlViewer
- VSS2005使用方法
- 链接a href confirm记录的用法
- 重新整理mysql+apache+gd+php(zlib,jpegsrc...)
- Ubuntu 8.10 acer 4930 声卡耳机喇叭同时发声的问题解决了
- 【10】大降温了
- 3GP概述
- 怎么强制弹出窗口永远在最前面
- 从Win32 Application开始学MFC可以事半功倍
- js 问题
- [转]如何学习《离散数学》
- WMA格式文件头解析