Report this

What is the reason for this report?

Any way to get an older PHP version setup on server? (LEMP stack)

Posted on March 17, 2014

I recently migrated a site from an old shared hosting environment to my new server with Digital Ocean that I’ve setup as a LEMP stack. I’m having an issue with certain parts of the site and the biggest difference between the old server and the new server is the version of PHP that’s being used, so I’d like to try matching those if possible.

The old server used PHP 5.3.27 and my new server uses PHP 5.5.3.

Is there any way for me to get this site running on PHP 5.3.27? Maybe I could downgrade it … or maybe I could have both versions installed and just have the site use the old one?

I’ll take any suggestions at this point. Thanks!



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.

What version of ubuntu are you running? 12.04, 13.10, etc <br> <br>Also to note, its a bit of a mess to downgrade within ubuntu. Would it be easier to up date the site to use php 5.5.x?

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.