SUSE
(全部编译32bit)以上3个软件下所有依赖库全部跟着一起安装成32bit
rpm -qa|egrep "(freetype|xml2|jpeg|png|gd|zlib|mcrypt)"|grep 32bit
i. zlib-32bit-1.2.3-106.34
ii. freetype2-32bit-2.3.7-25.8
iii. libxml2-32bit-2.7.1-10.8
iv. libpng12-0-32bit-1.2.31-5.10
v. zlib-devel-32bit-1.2.3-104.137
vi. libpng-devel-32bit-1.2.31-4.23
检查是否安装好了各种依赖库
Ps: 全部源程序放在/usr/local/src 编译后的程序放在/usr/local/***
安装apache2
tar-xvf apache2-***.tar
cd apache***
CC="gcc" CFLAGS="-O3 -m32" CXXFLAGS="-O3 -m32" \
./configure --prefix=/usr/local/apache2 --disable-asis --disable-auth --disable-autoindex --disable-access --disable-userdir --enable-charset-lite --enable-deflate --enable-expires --enable-headers --enable-rewrite --enable-so --with-included-apr
Make
Make install
–user=mysql &\\\\\\\\\\\\\\–xvf php5***.tar
Cd php5***
CFLAGS="-O3 -m32" CXXFLAGS="-O3 -m32" ./configure
--prefix=/usr/local/php
--with-apxs2=/usr/local/apache2/bin/apxs
--with-zlib
--with-gd --enable-mbstring
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config
--with-pdo-mysql=/usr/local/mysql
--with-config-file-path=/usr/local/php
--with-iconv
--disable-ipv6
--enable-static
--with-libxml-dir
--with-jpeg-dir=/usr/local/jpeg6
--with-png-dir
--with-freetype-dir
--with-mcrypt=/usr/local/libmcrypt
--with-zlib-dir /////////路径;
DirectoryIndex index.html index.shtml index.php index.htm
Include conf/extra/httpd-default.conf
修改zend
Vi Zend/etc/php.ini(现在生成到这里.)
expose_php = Off
max_execution_time = 60
max_input_time = 90
display_errors = Off
default_charset = "GBK"
upload_max_filesize = 4M
upload_tmp_dir= .....
mysql.max_persistent = 100
mysql.max_links = 500
mysql.connect_timeout = 30
mbstring.language = GBK
mbstring.internal_encoding = GBK
mbstring.http_input = auto
mbstring.http_output = GBK
mbstring.encoding_translation = On
127.0.0.1/test.php
页:
[1]