By admin201434
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? Or 5.3.something. 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!
<br>if you use CentOS - Soulition for run old php: <br> <br>Setup Apache and enable CGI mode for work with PHP <br> <br>download old source code and follow instrusction for compile old PHP <br> <br>Next step: Setup handler for apache via htaccess and scripys run with old PHP <br> <br>For example if you have cPanel panel here manual how to compile old PHP <br>http://www.webhostrepo.com/blog/running-two-php5-versions-in-a-cpanel-server/ <br> <br>If you use Ubuntu: Try to downgrade php via apt-get <br> <br>http://askubuntu.com/questions/116254/how-to-downgrade-from-php-5-4-to-5-3 <br> <br>
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.