Removing PHP 7.2, and installing PHP 5.6 [duplicate]

General Tech Bugs & Fixes 2 years ago

0 1 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 (1)

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

I'm a new Linux user, and I'm using a web server with a software that requires PHP 5.6, creating an incompatibility issue that I have been trying to solve for at least two days now. I read up a bunch of threads here on it, but none of them really solved the issue. The Linux version I'm at is 18.04.

So, what I tried so far:

  • To uninstall PHP 7.2 using sudo apt-get purge php7.0-common
  • To disable the proxy using sudo a2dismod proxy_fcgi proxy (it returns that the proxy is already disabled)
  • To install PHP 5.6 using sudo add-apt-repository ppa:ondrej/php or sudo add-apt-repository ppa:ondrej/apache2, it installs it
  • After using sudo apt-get update, and using this sudo apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0, I get the error:
    • I used this thread suggested on the comments, and the php5-compat helped, now at least when I try to unmount/mount (or whatever it's called) I don't get a "php5.6 module doesn't exist" anymore, and now if I do sudo apt-cache search php5.6 --names-only I get the list of packages for the first time.

Since I got that part done now, I'll consider it as done and see with the Oxwall people about their requirements. Thanks a bunch.

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