Redhat 5.1 install PHP 5.3.6

來源:互聯網
上載者:User

標籤:redhat 5.1 install php 5.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











本文出自 “嶽賀庚” 部落格,請務必保留此出處http://yhgcenter.blog.51cto.com/2623981/1912426

Redhat 5.1 install PHP 5.3.6  

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.