Page 1 of 1

Installing older php version on XAMPP 1.7.4

PostPosted: 12. April 2011 10:28
by dala
I installed XAMPP 1.7.4 on my server. I need the "Alternative PHP Cache" (APC). Since this was not included by default in XAMPP 1.7.4 I had to download the new version of php_apc.dll.
I got APC running, but I keep getting an errormessage ("Potential cache slam averted for key"). I Googled this errormessage and I see that it can appears due to a bug, and that php 5.3.5 is (also) affected by this bug. (Has this got something to do with why APC is not included in XAMPP 1.7.4 by default, maybe?)

Anyways, on my development machine I installed XAMPP 1.7.3 which uses php 5.3.1. Here APC is included by default and it works without no problem.
Therefore I want to install php 5.3.1 instead of 5.3.5 on my server as well.
Can I simply download the older php version and overwrite the new one in my XAMPP 1.7.4 installation, or will this cause any problems?
What is the easiest way to install php 5.3.1 instead of 5.3.5 on XAMPP 1.7.4?

Thanks in advance for any help

Re: Installing older php version on XAMPP 1.7.4

PostPosted: 12. April 2011 10:45
by Sharley
dala wrote:Therefore I want to install php 5.3.1 instead of 5.3.5 on my server as well.
Can I simply download the older php version and overwrite the new one in my XAMPP 1.7.4 installation, or will this cause any problems?
What is the easiest way to install php 5.3.1 instead of 5.3.5 on XAMPP 1.7.4?
Sorry to say that is not entirely possible as php is compiled into Apache as a module.

The simplest way is to uninstall 1.7.4 from your server then install XAMPP 1.7.3 version, is it not? :)

Re: Installing older php version on XAMPP 1.7.4

PostPosted: 12. April 2011 10:52
by dala
Maybe it is.
I just hoped I could avoid having to setup things from scratch again, but maybe it isn't too big a job...

Re: Installing older php version on XAMPP 1.7.4

PostPosted: 12. April 2011 10:57
by Sharley
It would be an even bigger job to compile php into maybe an incompatible Apache version - best to use the XAMPP versions that the developers have compiled as they test that each component is compatible and works (most of the time ;) ).

Best wishes. :)

Re: Installing older php version on XAMPP 1.7.4

PostPosted: 12. April 2011 12:02
by dala
Ok, I have now installed XAMPP 1.7.3 instead like you suggested. Took me about half 45 minutes I guess to configure things, so it wasn't THAT bad afterall :)
And now APC works, which is what I needed.

Thanks again!

Re: Installing older php version on XAMPP 1.7.4

PostPosted: 12. April 2011 12:20
by Sharley
Your welcome and I am also pleased about this good outcome.

Best wishes. :)