php rpm安裝

yum -y installfreetype-devel-2.3.11-17.el6.x86_64 libfreetype.so  libpng-devel-1.2.49-2.el6_7.x86_64 openssl-devel-1.0.1e-48.el6_8.3.x86_64 pcre-devel-7.8-7.el6.x86_64

libXpm-3.5.10-2.el6.x86_64 libtool-ltdl-2.2.6-15.5.el6.x86_64


可以在以下下載依賴包

https://github.com/itnihao/zabbix-book/blob/master/NMP

rpm -ivh libjpeg-turbo-1.2.1-1.el6.x86_64.rpm

rpm -ivhlibtidy-0.99.0-19.20070615.1.el6.x86_64.rpm

rpm -ivhlibmcrypt-2.5.8-9.el6.x86_64.rpm

rpm -ivhlibicu-4.2.1-9.1.el6_2.x86_64.rpm

rpm -ivhphp-5.4.25-1.el6.x86_64.rpm

 


 

php配置文件如下:

vim /etc/php.ini

max_execution_time= 300

max_input_time = 300

memory_limit =128M

date.timezone =Asia/Shanghai

post_max_size =16M

service php-fpmrestart

 

vim/etc/php-fpm.conf

user = nginx

group = nginx

service php-frpm restart

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章