Page 1 of 1

How to downgrade PHP in XAMPP

PostPosted: 21. November 2010 15:02
by Read Only
Hello everyone,

I have recently installed XAMPP 1.7.3 with PHP 5.3

When I try to browse my mediawiki I get the error:
Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in ...\xampp\htdocs\united_dumpers_nfo\wiki\includes\Namespace.php on line 49

After searching a bit it seems this error is caused because 1. my mediawiki is too old and 2. y php is too new
To make the mediwiki run and upgrade it, I need to downgrade PHP to 5.2
So here is what I have done: in the XAMPP folder I renamed 'php' folder to 'php_5.3'
I downloaded the package php-5.2.14-Win32.zip @ php.net and extracted the content in XAMPP folder and renamed it 'php'.

But now Apache is broken.

Please can you explain me how to downgrade php to 5.2, keep in mind I am a newbie in all of this so I will need every step explained.

Thanks very much.

Re: How to downgrade PHP in XAMPP

PostPosted: 21. November 2010 15:09
by Altrea
Read Only wrote:Please can you explain me how to downgrade php to 5.2

No. Downgrading any of the core single components of XAMPP is NOT supported.
If you want to use PHP 5.2.X you have to use one of the XAMPP packages with that PHP version (for example XAMPP 1.7.1 with PHP 5.2.9).

Re: How to downgrade PHP in XAMPP

PostPosted: 21. November 2010 15:27
by Read Only
If not supported, then I don't ask to official support staff, I just ask unofficially to community members. :)

Re: How to downgrade PHP in XAMPP

PostPosted: 21. November 2010 18:50
by JonB
Read Only

this has been discussed so many times - it a bad idea.

REASON - the integration work will all fall apart likely -

FURTHER REASON

Its SIMPLE to install all the parts separately - yes, it requires work - BUT LESS THAN FIXING EVERYTHING THAT GOES WRONG

Every time we get this question, its really for the same reason - the person that seeks the advice is using XAMPP because they don't know how all the pieces fit together. You know the old adage - "if you have to ask the price, you can't afford it"? That's the case here. Its a major task to get all the configurations right. I am not someone who knows everything. I'm learning all the time - I learned all this stuff before coming to XAMPP by having my own 'real servers' (Linux and Windows) and getting IIS, Apache, PHP, MySQL, FileZilla, Webmin, Perl, Hmail, phpMyAdmin (and now python) and a gazillion other parts to work, while learning about the intricacies of permissions, and two major-league different Operating Systems.

As for the PHP downgrade - We just went this about a week ago

read this topic - and learn what he did, find out what and why - and find a link to 'how to do all that" - install separately.
viewtopic.php?f=16&t=40499

OR Don't listen to me, Altrea or Nobbie (or that guy) - and go for it. If you do make it work, you will have learned a great deal - but spent a lot of extra time OR it may also just never work right, if at all.

Good Luck
8)

Re: How to downgrade PHP in XAMPP

PostPosted: 21. November 2010 19:40
by Read Only
thank you a lot 8)

Re: How to downgrade PHP in XAMPP

PostPosted: 21. November 2010 20:59
by Nobbie
Read Only wrote:If not supported, then I don't ask to official support staff, I just ask unofficially to community members. :)


Very funny - what do you mean by "official support staff"?

Did you pay for "official support"? Do you (really) believe, that there is "official support staff" in a freeware board for a freeware software? We are all the same - simply members of a forum. Nothing official.