Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Running different versions of PHP in different directories.
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?
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.×