I created the droplet using the “Create LAMP droplet” button on https://marketplace.digitalocean.com/apps/lamp#getting-started. My website is old, was created with PHP7.2, and delivers a blank screen with my new droplet. I assume that it will not run on PHP8. What do I need to do to get the droplet using PHP7.2?
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!
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.
Heya,
In order to use PHP 7.2, you’ll need to install it and then switch to that PHP version so that Apache knows which one to use.
PHP 7.2 is not included in the default Ubuntu repositories for newer versions of Ubuntu. You need to add the repository maintained by Ondřej Surý, which includes PHP 7.2.
Now you can install PHP 7.2 and the necessary modules.
You need to disable the current PHP module for Apache and enable the PHP 7.2 module.
Finally, restart the Apache server to apply the changes.