Interchange php version 7.4 To 7.2
Step 1: Open your terminal.
In this first step open your terminal OR simply press Ctrl + Alt + T and add below code to your terminal.
sudo a2dismod php7.4Then restart apache server and enable php version whatever you have to enable.Currently we are enable php version 7.2.
sudo service apache2 restart
sudo a2enmod php7.2
sudo service apache2 restartInterchange php version 7.2 To 7.4
Step 1: Open your terminal.
Open your terminal OR simply press Ctrl + Alt + T and add below code to your terminal.
sudo a2dismod php7.2
sudo service apache2 restart //For restart apache server
sudo a2enmod php7.4
sudo service apache2 restart //For restart apache serverInterchange php version 7.0 To 5.6
Step 1: Open your terminal.
Open your terminal OR simply press Ctrl + Alt + T and add below code to your terminal.
sudo a2dismod php7.0
sudo service apache2 restart //For restart apache server
sudo a2enmod php5.6
sudo service apache2 restart //For restart apache serverInterchange php version 5.6 To 7.0
Step 1: Open your terminal.
Open your terminal OR simply press Ctrl + Alt + T and add below code to your terminal.
sudo a2dismod php5.6
sudo service apache2 restart //For restart apache server
sudo a2enmod php7.0
sudo service apache2 restart //For restart apache server