Downgrade PHP7 to PHP5.6 CentOS

To downgrade PHP version you need to stop you webserver

stop Apache

service httpd stop

then

yum install php56

then

yum --enablerepo=remi-php56 install php56-php php56-php-pear php56-php-bcmath php56-php-pecl-jsond-devel php56-php-mysqlnd php56-php-gd php56-php-common php56-php-fpm php56-php-intl php56-php-cli php56-php php56-php-xml php-php-opcache php56-php-pecl-apcu php56-php-pecl-jsond php56-php-pdo php56-php-gmp php56-php-process php56-php-pecl-imagick php56-php-devel php56-php-mbstring

then

 service php70-php-fpm stop

then

rm /usr/bin/php

press y

then

ln -s /usr/bin/php56 /usr/bin/php

then

service httpd restart

and it's done

check PHP version by running

php -v


That's it if your hosting not providing support or solution contact us by https://royalclouds.net/support


  • vesta, php
  • 20 Users Found This Useful
Was this answer helpful?

Related Articles

How to Install New Os Or Reinstall Current Os

To install or reinstall os in your vps you need to login on our VPS Management Panel To login on...

How to Test Internet Speed of Your VPS/Server

How to Install SpeedTest CLI Step 1 – Login to your VPS as root or any user with superuser...

How To Install cPanel

What is cPanel?cPanel is a web-based hosting control panel provided by many hosting providers to...

How to install Pyxsoft Anti Malware for cPanel server

How to install Pyxsoft Anti Malware for Cpanel Servers Today We Learn How to Install pyxsoft and...

How to Install Softaculous on cPanel/WHM

What is Softaculous for cPanel ? Softaculous is integrated into cPanel and can be installed...