Redhat5.1installPHP5.3.6 

Redhat 5.1 install PHP 5.3.6

公司主营业务:网站建设、成都网站建设、移动网站开发等业务。帮助企业客户真正实现互联网宣传,提高企业的竞争能力。成都创新互联公司是一支青春激扬、勤奋敬业、活力青春激扬、勤奋敬业、活力澎湃、和谐高效的团队。公司秉承以“开放、自由、严谨、自律”为核心的企业文化,感谢他们对我们的高要求,感谢他们从不同领域给我们带来的挑战,让我们激情的团队有机会用头脑与智慧不断的给客户带来惊喜。成都创新互联公司推出雁塔免费做网站回馈大家。


现在各种版本的坑。。导致没有低版本的php 

可能是使用的问题导致。系统版本没有提升导致的没有包可用....

 

 

  1. yum install gcc libxml2-devel bzip2-devel zlib-devel \

  2. curl-devel libmcrypt-devel libjpeg-devel \

  3. libpng-devel gd-devel MySQL-devel  php-pecl-zip

download 软件包

wget http://cn.php.net/get/php-5.3.6.tar.bz2/from/this/mirror

tar -xjf php-5.3.6.tar.bz2 

cd php-5.3.6

./configure --prefix=/usr/local/php53 \

--with-config-file-path=/etc/php53 \

--with-config-file-scan-dir=/etc/php53/php.d \

--enable-fpm \

--with-fpm-user=apache \

--with-fpm-group=apache \

--with-libdir=lib64 \

--with-mysql \

--with-mysqli \

--enable-mbstring \

--disable-debug \

--disable-rpath \

--with-bz2 \

--with-curl \

--with-gettext \

--with-iconv \

--with-openssl \

--with-gd \

--with-mcrypt \

--with-pcre-regex \

--with-zlib 

make -j4 && sudo make install

#make 中出现以下内容可用忽略。。进行安装即可

 

WARNED TEST SUMMARY

---------------------------------------------------------------------

via [ext/pdo_sqlite/tests/common.phpt]

SQLite PDO Common: Bug #34630 (inserting streams as LOBs) [ext/pdo_sqlite/tests/bug_34630.phpt] (warn: XFAIL section but test passes)

via [ext/sqlite/tests/pdo/common.phpt]

SQLite2 PDO Common: Bug #34630 (inserting streams as LOBs) [ext/sqlite/tests/pdo/bug_34630.phpt] (warn: XFAIL section but test passes)

Bug #39863 (file_exists() silently truncates after a null byte) [ext/standard/tests/file/bug39863.phpt] (warn: XFAIL section but test passes)

sudo mkdir /etc/php53

sudo cp php.ini-production /etc/php53/php.ini

sed -i -e 's#php_fpm_CONF=\${prefix}/etc/php-fpm.conf#php_fpm_CONF=/etc/php53/php-fpm.conf#'  sapi/fpm/init.d.php-fpm

cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm

chmod a+x /etc/init.d/php-fpm

/sbin/chkconfig --add php-fpm

/sbin/chkconfig php-fpm on

sudo cp sapi/fpm/php-fpm.conf /etc/php53/

编辑文件 /etc/php53/php-fpm.conf

pid = run/php-fpm.pid

listen = 127.0.0.1:9000

pm.start_servers = 10

pm.min_spare_servers = 5

pm.max_spare_servers = 20

启动起来瞧瞧...

/etc/init.d/php-fpm start

netstat -antpu | grep :9000

netstat -anpo|grep php-fpm |wc -l

ps -ef | grep php-fpm


文章标题:Redhat5.1installPHP5.3.6 
文章来源:http://scyanting.com/article/jggchh.html