Report this

What is the reason for this report?

Running different versions of PHP in different directories.

Posted on March 21, 2020

Hello all. I need to run different versions of PHP in different directories. For example in var/www/html I’d need to run the standard PHP 7.x and in var/www/html/xxxx I’d need to run PHP 5.x.

There are quite a few strategies for this described online, and other hosting/vps services directly offering the built-in ability, but after a day of experimenting with these strategies on digitalocean droplets, I’ve found none that have worked on digitalocean droplets.

So, if anyone is running different versions of PHP on different directories in digitalocean, then please, would you share your methods?

Thanks, Garth

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.