Home > Amazon EC2 > Amazon AMI – Upgrade PHP from 5.4 to 5.6

cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.20170226

yum remove httpd* php* mod_ssl

yum install httpd24 mod24_ssl php56 php56-mysqlnd php56-common php56-gd php56-mbstring php56-mcrypt php56-devel php56-xml

vim /etc/httpd/conf/httpd.conf

<IfModule prefork.c>
StartServers            30
MinSpareServers         30
MaxSpareServers         45
ServerLimit             4000
MaxRequestWorkers       4000
MaxConnectionsPerChild  4000
</IfModule>

KeepAlive off
Include /etc/httpd/conf/extra/httpd-vhosts.conf

vim /etc/php.ini

max_input_vars = 50000

/etc/init.d/httpd restart

chkconfig httpd on



Flag Counter