Install PHP7.2 in CentOS 7
Install PHP7.2 in CentOS 7
Install PHP7.2 FPM in CentOS 7
Download and add a new webtatic repository to the system.
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Install PHP7.2 FPM in CentOS 7
Download and add a new webtatic repository to the system.
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Run command, Install PHP 7.2 FPM
yum -y install php72w-fpm php72w-mcrypt php72w-curl php72w-cli php72w-mysql php72w-gd php72w-xsl php72w-json php72w-intl php72w-pear php72w-devel php72w-mbstring php72w-zip php72w-soap
Config php.ini
vim /etc/php.ini
Uncomment the cgi.fix_pathinfo line 762 and change value to 0.
cgi.fix_pathinfo=0
Configure memory limit, max execution time and enable the zlib output compression, make sure you set the values as shown below.
memory_limit = 512M
max_execution_time = 1800
zlib.output_compression = On
Uncomment session path directory and change the directory as below.
session.save_path = "/var/lib/php/session"
Post a Comment