Due to some plugins, I need to downgrade from version 7.3 to 7.0, I tried to do it through htaccess and I was not successful!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

Usually what I would do in this case is the following:

Add the ondrej PHP repository:

  • sudo add-apt-repository ppa:ondrej/php

Run apt update:

  • sudo apt-get update

Install the PHP version that you need:

  • sudo apt-get install php7.1

Install the required modules:

  • sudo apt-get install php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-mbstring php7.1-mcrypt php7.1-zip php7.1-fpm

Disable PHP 7.3:

  • sudo a2dismod php7.3

Enable the older PHP version:

  • sudo a2enmod php7.1
  • sudo service apache2 restart

Of course this would also depend on your current setup so make sure to take a backup of your Droplet first!

Submit an Answer