看到有兄弟问,就贴一下
没啥技术含量呵呵
有兴趣可以直接做成脚本安装
=========================================
apache+mysql+php+gd+jpg+png+Zend
安装
安装mysql
tar xzf mysql-4.0.24.tar.gz
cd mysql-4.0.24
./configure --prefix=/opt/mysql-4.0.24 --with-mysqld-user=mysql --with-charset=gb2312 --with-extra-charsets=all --localstatedir=/your/path --with-unix-socket-path=/opt/mysql-4.0.24/var/mysql.sock
make && make install
cp /opt/mysql-4.0.24/share/mysql/my-medium.cnf /etc/my.cnf
chmod -R 1777 /opt/mysql-4.0.24/var
安装apache
tar xjf httpd-2.0.54.tar.bz2
cd httpd-2.0.54
./configure --prefix=/opt/httpd-2.0.54 --enable-track-vars --enable-cgi --enable-so --enable-mods-shared=all/most --with-config-file-path=/opt/httpd-2.0.54/conf
make && make install
安装zlib
tar xjf zlib-1.2.1.tar.bz2
cd zlib-1.2.1
./configure
make && make install
mkdir -p /opt/modules/jpeg6
mkdir /opt/modules/jpeg6/bin
mkdir /opt/modules/jpeg6/lib
mkdir /opt/modules/jpeg6/include
mkdir /opt/modules/jpeg6/man
mkdir /opt/modules/jpeg6/man/man1
安装freetype
tar xjf freetype-2.1.9.tar.bz2
cd freetype-2.1.9
./configure --prefix=/opt/modules/freetype
make && make install
安装libpng
tar xzvf libpng-1.2.8.tar.bz2
cd libpng-1.2.8
cp scripts/makefile.linux makefile
make
make install
安装jpg
tar xzvf jpegsrc.v6b.tar.gz
./configure --prefix=/opt/modules/jpeg6 --enable-shared --enable-static
make
make install
安装gd
tar xzvf gd-2.0.32.tar.gz
./configure --prefix=/opt/modules/gd --with-jpeg=/opt/modules/jpeg6 --with-png --with-zlib --with-freetype=/opt/modules/freetype
make
make install
安装php
tar xzvf php-4.4.0.tar.bz2
cd php-4.4.0
./configure --prefix=/opt/php-4.4.0 --with-gd=/opt/modules/gd --with-jpeg-dir=/opt/modules/jpeg6 --with-zlib --with-png --with-freetype-dir=/opt/modules/freetype --enable-magic-quotes --with-mysql=/opt/mysql --with-apxs2=/opt/httpd-2.0.54/bin/apxs --enable-track-vars --enable-force-cgi-redirect --enable-ftp --with-iconv --with-config-file-path=/opt/php-4.4.0/etc
make && make install
cp php.ini-dist /opt/php-4.4.0/etc/php.ini
寻找httpd.conf中Add Type application/x-tar .tgz 在下面添加
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Zend下载解压后运行./install就可以了