By Abdo
I installed lamp and everything working fine, But the problem I have php 7.0 installed. My script does not support php 7.0. I need help in installing 5.6. with 7.0. I do not want to downgrade my php 7. Can i have two versions of php working at the same time. Or I have to create another droplet for php 5.*.
Please make it clear if you want to help me.
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!
It is possible to have two different versions of PHP co-installed, but it is probably not worth the pain if you have other options. I would suggest using separate Droplets if you have two applications that require different versions of PHP. That said, there are some tools for working with multiple PHP versions. PHPBrew is probably the easiest and most used. It’s particularly useful for a development environment where you need to switch between versions.
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.