downgrade PHP 7.1 to PHP 7.0

General Tech Bugs & Fixes 3 years ago

2.94K 2 0 0 0

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago

I've a Ubuntu 16.04 server running nginx + PHP7.1.2. I have a PHP script that is executed by a cronjob, it's giving some compatibilities issues (in PHP 7.0 it works perfectly and other people had the same issue), so, right now I need to downgrade the version of PHP to 7.0.14 (I think that maybe the CLI version?). So how can I do it?

0 views
0 shares

profilepic.png
manpreet 3 years ago

you can disable php7.1 service

sudo a2dismod php7.1

and enable service php of which ever version you want

sudo a2enmod php5.6

then restart your apache

sudo service apache2 restart

This will not uninstall the php7.1 but you can work with downgraded version without error


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum