I work on a number of Joomla sites for clients, across multiple (differing) hosting environments. This can be a pain when troubleshooting as some of the hosts are running old versions of PHP (5.2) and some are on the latest.
Whenever I face an issue I like to download a copy of the website to my localhost environment
(Apache/2.4.3 (Win32) PHP/5.4.7) and work from there. However in order to mirror the hosts environment I would need to change (downgrade) my PHP version also, right? How should I do this?
I am currently working on a Joomla (3.3.0) site now where the host is running PHP 5.3.28 (which has stopped receiving security updates since Thursday, 14 August 2014). I would like my local environment to mirror this for testing purposes (upgrading components, plugins etc..).
I have tried adding this line into my
.htaccess however it doesn't seem to be changing anything. My Joomla > System Info > PHP Info still shows that I'm running
PHP Version 5.4.7
AddHandler application/x-httpd-php5 .php
I've restarted Apache etc..
Perhaps I am doing something wrong, or if there is a more efficient way of doing what I would like I'd be open to suggestions.
My local Joomla websites are each in their own directory as follows
localhost/site1 localhost/site2 localhost/site3