服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Centos - Centos5.2配置LAMP与Centos5.3配置LAMP(39)

Centos5.2配置LAMP与Centos5.3配置LAMP(39)

2019-10-11 14:12Centos教程网 Centos

# tar zxvf php-5.2.5.tar.gz # gunzip suhosin-patch-5.2.5-0.9.6.2.patch.gz # cd php-5.2.5 # patch -p 1 -i ../suhosin-patch-5.2.5-0.9.6.2.patch # ./buildconf --force # CHOST=i686-pc-linux-gnu CFLAGS=-O3


# tar zxvf php-5.2.5.tar.gz 
# gunzip suhosin-patch-5.2.5-0.9.6.2.patch.gz 
# cd php-5.2.5 
# patch -p 1 -i ../suhosin-patch-5.2.5-0.9.6.2.patch 
# ./buildconf --force 
# CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -msse2 -mmmx -Wall -W -mfpmath=sse -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer" CXXFLAGS="-O3 -msse2 -mmmx -Wall -W -mfpmath=sse -funroll-loops -mcpu=pentium4 -march=pentium4 -pipe -felide-constructors -fno-exceptions -fno-rtti -fomit-frame-pointer" ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-pear=/usr/share/php --with-zlib-dir --with-bz2 --with-libxml-dir=/usr --with-gd=/usr/local/gd2 --enable-gd-native-ttf --enable-gd-jis-conv --with-freetype-dir --with-jpeg-dir --with-png-dir --with-ttf=shared,/usr --enable-mbstring --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-config-file-path=/etc --with-iconv --disable-ipv6 --enable-static --enable-zend-multibyte --enable-inline-optimization --enable-zend-multibyte --enable-sockets --enable-soap --with-openssl --with-gettext --enable-suhosin 
配置成功会提示: 
+--------------------------------------------------------------------+ 
| License: | 
| This software is subject to the PHP License, available in this | 
| distribution in the file LICENSE. By continuing this installation | 
| process, you are bound by the terms of this license agreement. | 
| If you do not agree with the terms of this license, you must abort | 
| the installation process at this point. | 
+--------------------------------------------------------------------+ 
Thank you for using PHP. 
# make 
# make test 

延伸 · 阅读

精彩推荐