Report this

What is the reason for this report?

How to make VPS that has php5 installed to also support php4 code?

Posted on February 17, 2014

My website code is php4 and my DO VPS has php5. Is there anyway to make it also support php4?



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.

I’d encourage you to move to php5 if at all possible. It will make your life easier on a number of levels. Most distros no longer have php4 available, so you’ll need to install it from source. That said, it is possible. Check out this page for some information on how to set up your Apache virtual hosts to use different version of php: <br> <br>http://wiki.apache.org/httpd/PHP4AndPHP5

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.