Install 7.x version concurrently with 5.x

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

Install 7.x version concurrently with 5.x

Postby jan.mottl » 05. August 2019 14:41

I have 5.6 version installed on Ubuntu 18.04. I would like to keep this version and install 7.x version to migrate my application to php 7. How is it possible to install xampp to a directory with specified name /opt/lampp7 e.g.? Thanks.

[EDIT by Altrea: moved to the english section of this board]
jan.mottl
 
Posts: 4
Joined: 05. August 2019 14:35
XAMPP version: 5.6.28
Operating System: Ubuntu 18.04

Re: Install 7.x version concurrently with 5.x

Postby Nobbie » 05. August 2019 21:11

No.

Xampp installs hard coded to /opt/lampp.

If you need different Xampp environments, you should use VirtualBox for different environments, each environment (operating system) can have its own Xampp installation.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Install 7.x version concurrently with 5.x

Postby jan.mottl » 06. August 2019 06:22

thamks. I will look on it.
Next possibility I have found is https://github.com/rafaelphp/lampp_switcher
jan.mottl
 
Posts: 4
Joined: 05. August 2019 14:35
XAMPP version: 5.6.28
Operating System: Ubuntu 18.04

Re: Install 7.x version concurrently with 5.x

Postby Nobbie » 06. August 2019 09:18

Of course you can install Xampp 5.6 (already done), rename /opt/lampp to /opt/lampp5, and then install Xampp7 and finally rename it to /opt/lampp7.

And then you can copy/move lampp5 or lampp7 to lampp, which version you would like use. Dont forget to move back lampp to lampp5 or lampp7 before switching to the other installation. I dont think that a Xampp switcher does more. But you cannot run both Xampps at the same time (with Virtualbox you can run both at same time).
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Install 7.x version concurrently with 5.x

Postby jan.mottl » 06. August 2019 11:16

I don't need both xampps running at the same time because it's just for development. I have tried it and switching works fine.
jan.mottl
 
Posts: 4
Joined: 05. August 2019 14:35
XAMPP version: 5.6.28
Operating System: Ubuntu 18.04

Re: Install 7.x version concurrently with 5.x

Postby Nobbie » 06. August 2019 18:10

Ok, so obviously you are done and its Ok for you?!

Its a little strange that Xampp for Linux only runs from /opt/lampp, i dont know why, because Xampp Windows runs from anywhere. I dont know why Bitnami uses hard coded pathnames in their compilation.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Install 7.x version concurrently with 5.x

Postby jan.mottl » 07. August 2019 13:52

Yes, it's OK for my development computer. I have migrated to xampp 7.3 and Nette 3.0 successfuly :) It was easier as I expected.
Now I have think about testing on customer's VPS. And I have to think about concurent xampp 5 and 7 on one server. Now I have to investigate VirtualBox because at customer is switching impossible.
jan.mottl
 
Posts: 4
Joined: 05. August 2019 14:35
XAMPP version: 5.6.28
Operating System: Ubuntu 18.04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 17 guests