注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 可扩展、高可用、负载均衡..
 帮助

编译安装apache+mysql+php 支持jpg,gd等


2007-09-10 13:17:19
 标签:php mysql apache centos   [推送到技术圈]

版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://rainbird.blog.51cto.com/211214/41815
其实相关的文章也很多了,太没有找到自己想要的,几经实验,终于做出来了,分享一下.
apache1.3+mysql5.0+php5.2相关的下载地址也都贴出来了.编译完了以后支持jpg,gd.还不熟悉脚本的编写,把所以软件都下载到/usr/local/src下,然后顺序执行就可以了.也不知道能不能算脚本,一点判断的语句都没写,zend还要手工装,先这吧,已经有了相关的能力再补上
 
tar zxvf apache_1.3.37.tar.gz
tar zxvf mysql-5.0.45.tar.gz
tar zxvf php-5.2.3.tar.gz
tar zxvf jpegsrc.v6b.tar.gz
tar zxvf libpng-1.2.5.tar.gz
tar zxvf zlib-1.2.3.tar.gz
tar zxvf freetype-2.1.9.tar.gz
tar zxvf gd-2.0.28.tar.gz
tar zxvf ZendOptimizer-3.3.0-linux-glibc21-i386.tar.gz
cd mysql-5.0.45
./configure --prefix=/usr/local/mysql --sysconfdir=/etc --localstatedir=/var/lib/mysql --with-mysqld-user=mysql&&make&&make install
cd /usr/local/src/apache_1.3.37
./configure --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite --enable-shared=max &&make &&make install
cd /usr/local/src/libpng-1.2.5 
cp scripts/makefile.linux ./makefile
make &&make install
cd /usr/local/src/jpeg-6b
mkdir -p /usr/local/man/man1
./configure --enable-shared --enable-static --prefix=/usr/local &&make &&make install
cd /usr/local/src/freetype-2.1.9
./configure --enable-shared --enable-static --prefix=/usr/local &&make &&make install
cd /usr/local/src/zlib-1.2.3
./configure &&make &&make install
cd /usr/local/src/gd-2.0.28/
./configure --prefix=/usr/local --with-jpeg=/usr/local --with-png=/usr/local --with-zlib --with-freetype=/usr/local &&make &&make install
cd /usr/local/src/php-5.2.3
./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-gd=/usr/local --enable-trace-vars --with-zlib --with-config-file-path=/etc --enable-gd-native-ttf --with-bz2 --with-iconv --with-zlib --disable-ipv6 --enable-discard-path --bindir=/usr/bin --sbindir=/usr/sbin --disable-debug --disable-rpath --with-curl --with-exec-dir=/usr/bin --with-gettext --with-openssl --with-xml --with-xmlrpc=shared --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-calendar --with-mysql=/usr/local/mysql --with-freetype-dir=/usr/local --enable-mbstring=all &&make &&make install
 

本文出自 “rainbird” 博客,请务必保留此出处http://rainbird.blog.51cto.com/211214/41815





    文章评论
 
2007-09-10 22:13:57
先珍藏啦
以后有用的着的地方

 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: