Switch from higher version to lower version
Step 1: login to the server and convert as you as ROOT User
Step 2: Disabling the PHP 7.2 version
root@ip-100-00-00-000:~# sudo a2dismod php7.2 // no space between php7.2
Module php7.2 disabled.
To activate the new configuration, you need to run:
service apache2 restart
Step 3: service apache2 restart
Step 4: Enabling the PHP 7.0 version:
root@ip-100-00-00-000:~# sudo a2enmod php7.0
Considering conflict php5 for php7.0:
Enabling module php7.0.
To activate the new configuration, you need to run:
service apache2 restart
Step 5: service apache2 restart.
For this mysql restart is not required
Just keep in mind if mysql or phpmyadmin is not working just restart the mysql
MYSQL Restart: sudo service apache2 restart
php.ini file location:
/etc/php/7.0/apache2
No comments:
Post a Comment