Upgrade from XAMP 5.6.21 to 5.6.28

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

Upgrade from XAMP 5.6.21 to 5.6.28

Postby jbron » 18. December 2016 18:17

Hello,

This is my first post here. My name is Jacques, I 'm in France.

I alredy have XAMP 5.6.21 installed but I want to migrate from PHP 5 to PHP 7.
What's the best way do do this?
I have read in another post that I should install XAMP 7.0.13 over the existing install. Should I uninstall the previous version first?
What folder s/ files should I backup in order to keep my existing websites and configutation files?

Thank you.
Jacques
jbron
 
Posts: 2
Joined: 18. December 2016 17:57
XAMPP version: 5.6.21
Operating System: Windows 10

Re: Upgrade from XAMP 5.6.21 to 5.6.28

Postby Altrea » 18. December 2016 19:31

Hi,

NEVER install a new XAMPP version over an existing one. In which post did you read that?
That is for sure the best way to get a corrupt installation which will not work any more.

Always backup all your files and databases and install a fresh version of XAMPP. Then you can try to restore your files and databases.

best wishes,
Altrea
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: 8930
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Upgrade from XAMP 5.6.21 to 5.6.28

Postby Nobbie » 18. December 2016 22:49

jbron wrote:What folder s/ files should I backup in order to keep my existing websites and configutation files?


Backup the whole Xampp folder.

BUT: keep in mind, there is NO standard upgrade procedure (due to the problem, that you might have installed quite a lot of large CMS and similar and you also may have changed the default configuration to your personal needs) and that you CANNOT simply overtake your previous configuration files into a newer Xampp release.

An upgrade of Xampp is always a very sophisticated task and you always have to be very carefull not to screw up the new installation and not to miss parts of your existing installations. Do an upgrade only if it is required and necessary, dont do it just "for fun". Xampp is not a simple tool like Microsoft Word or similar, it is a very sophisticated collection (i.e. a "distribution") of large and powerfull webserver tools, which all arent developed by only a single company, but by large communities instead.
Nobbie
 
Posts: 9683
Joined: 09. March 2008 13:04

Re: Upgrade from XAMP 5.6.21 to 5.6.28

Postby jbron » 19. December 2016 10:47

OK Thanks.
But this is not very reassuring...
I don't want to upgrade "just for fun", but because I want to develop locally using PHP 7 and be sure that my local website will work properly once live.
So among the numerous higky skilled developers using Xamp, no one ever wrote a tutorial explaining the different steps for upgrading safely?
jbron
 
Posts: 2
Joined: 18. December 2016 17:57
XAMPP version: 5.6.21
Operating System: Windows 10

Re: Upgrade from XAMP 5.6.21 to 5.6.28

Postby Nobbie » 19. December 2016 12:20

jbron wrote:I don't want to upgrade "just for fun", but because I want to develop locally using PHP 7 and be sure that my local website will work properly once live.


If this is the goal, you definately MUST NOT use Windows. Windows is extremly uncommon in live environments for Apache/PHP/MySQL, most servers are running Linux. Many sophisticated tools arent available under Windows or require different configuration and management. To be sure, you really should go for Linux instead of Windows.

jbron wrote:So among the numerous higky skilled developers using Xamp, no one ever wrote a tutorial explaining the different steps for upgrading safely?


No, as there are no "higky skilled developers", as Xampp is NOT "developed" (i thought, i had explained it), it is "collected". The Xampp Bitnami team collects and preconfigures the tools and also provide an installation tool. There is no development, all these tools are developed separately. There is no "safe upgrade" due to the fact, that the user may change all configurations etc.. There is also the problem, that some configuration options (for Apache for example. with version 2.4 the "Allow from" clause has been removed and replaced by the "Require" clause) may change, there is no general advice how to manage such complex things.

If you think, that you are better skilled and can provide such an step by step upgrade documentation, feel free to join the Bitnami team.
Nobbie
 
Posts: 9683
Joined: 09. March 2008 13:04

Re: Upgrade from XAMP 5.6.21 to 5.6.28

Postby matjung » 24. December 2016 22:58

Though I don´t like the answers I have seen here, I guess they are correct.
I have to make an upgrade from Xampp 1.8.1 / php 5.4.7 into xx/ 7.0.13

My approach is:
Install the stuff into a new directory
Change Apache and MqSQL ports of new installation
Make tests if the new stuff works
Backup htdocs in new installation
Keep fingers crossed that mysql can import the databases from the old installation
Copy htdocs from old into new installation (exclude htdocs/xampp)
Check what is still working and what not
Fix the issues in *.ini and *.php as they come along

How does this approach sound?
matjung
 
Posts: 3
Joined: 24. December 2016 22:33
XAMPP version: 1.8.1
Operating System: Windows 10 64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 78 guests