I’m trying to help a friend who has an old PHP website that is no longer working. He wasn’t having any issues with the site until GoDaddy got hacked a few weeks ago. Now, it’s not working. When he spoke with GoDaddy, they said the “GoDaddy equipment failure” (still won’t admit they were hacked) was purely coincidental and the issue he’s having is because GoDaddy recently deprecated PHP 4.
To see if this is true I want to try running his website on my local MAMP Pro server. However, I don’t see an option for PHP 4. Can I install PHP 4 on my MAMP Pro server? If I do will it be website specific or does it affect all of the websites I have hosted under MAMP Pro?
You can install more than one php command-line (you just have to put it somewhere unique or name it differently than the default) and you can install more than one mod_php to pipe requests to it. If you do this on a particular virtual server, you will probably be able to set the .php extension on that server to point to php4 instead of php (if that’s what you name the executable). This is not for the faint of heart, but I know it is possible because there was a time when I had php5 and php4 running on the same server (the 4 was the Apple-installed one for Mac OS X Server, and the 5 was a binary installer from http://www.entropy.ch. I don’t recall trying to have one virtual host using one version and another using another, but I presume it is possible, because each virtual host can override almost anything to do with the core Apache.
Walter
On Sep 29, 2012, at 11:41 AM, RavenManiac wrote:
I’m trying to help a friend who has an old PHP website that is no longer working. He wasn’t having any issues with the site until GoDaddy got hacked a few weeks ago. Now, it’s not working. When he spoke with GoDaddy, they said the “GoDaddy equipment failure” (still won’t admit they were hacked) was purely coincidental and the issue he’s having is because GoDaddy recently deprecated PHP 4.
To see if this is true I want to try running his website on my local MAMP Pro server. However, I don’t see an option for PHP 4. Can I install PHP 4 on my MAMP Pro server? If I do will it be website specific or does it affect all of the websites I have hosted under MAMP Pro?