How to downgrade PHP in XAMPP

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to downgrade PHP in XAMPP

Postby Read Only » 21. November 2010 15:02

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.
Read Only
 
Posts: 10
Joined: 21. November 2010 14:51

Re: How to downgrade PHP in XAMPP

Postby Altrea » 21. November 2010 15:09

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).
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: How to downgrade PHP in XAMPP

Postby Read Only » 21. November 2010 15:27

If not supported, then I don't ask to official support staff, I just ask unofficially to community members. :)
Read Only
 
Posts: 10
Joined: 21. November 2010 14:51

Re: How to downgrade PHP in XAMPP

Postby JonB » 21. November 2010 18:50

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: How to downgrade PHP in XAMPP

Postby Read Only » 21. November 2010 19:40

thank you a lot 8)
Read Only
 
Posts: 10
Joined: 21. November 2010 14:51

Re: How to downgrade PHP in XAMPP

Postby Nobbie » 21. November 2010 20:59

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.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: SCHOBER-Astrid and 124 guests