Techies Adsense

Friday, 19 August 2016

Switching PHP Versions Ubuntu (php5.6 and php7.0)

How to Switch PHP Version Ubuntu ?

I have just installed the PHP7 and user complaint that his project not working Properly with PHP7
Now he Switching PHP Versions.

Switching PHP Versions php5.6 and php7.0

$ sudo a2dismod php5.6
Module php5.6 disabled.
To activate the new configuration, you need to run:
 $sudo service apache2 restart

==========================================

$ sudo a2enmod php7.0
Considering conflict php5 for php7.0:
Enabling module php7.0.
To activate the new configuration, you need to run:

$ sudo service apache2 restart

Check the php Version now:

$ php -v

Thanks for the kind Visit on this Blog 

No comments: