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!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.