downgrade PHP 7.1 to PHP 7.0

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 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?

profilepic.png
manpreet 2 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.

tuteehub community

Join Our Community Today

Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.

tuteehub community