Portable xampp in linux

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

Portable xampp in linux

Postby wago80 » 06. May 2020 00:10

I carry my xampp for windows in a usb stick to use it in any machine. All I have to do is change the drive letter to the one I always use and I have my xampp server up and running whenever I go.
I would like to know if there is a way to do the same in linux (more precisely: ubuntu 18.04). I mean carry a xampp installation for linux in my usb stick to plug it in in any ubuntu pc and have my server up and running anywhere I go.
Thank you very much for your time.
wago80
 
Posts: 1
Joined: 06. May 2020 00:04
XAMPP version: 7.4.5
Operating System: Windows y linux

Re: Portable xampp in linux

Postby Altrea » 06. May 2020 02:09

Xampp does not provide a version able to run portable on Linux Devices, sorry.
You can install Linux on a USB pen and integrate xampp to it. But that is not what you want to do i think.
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: Portable xampp in linux

Postby Nobbie » 06. May 2020 10:48

Install Xampp (to /opt/lampp), finally move the contents of /opt/lampp to the USB stick.

Later on simply mount the USB stick to /opt/lampp or put a symbolic link from the USB mount point to /opt/lampp. Xampp for linux must run harcdcoded from /opt/lampp. It does not matter if it is an USB stick or a harddisk or what device ever. Keep in mind to mount the stick with the proper rights for the installed Users on that linux installation. Linux is not Windows. Dont forget, Linux always requires proper rights management.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Portable xampp in linux

Postby Nobbie » 07. May 2020 09:38

Actually, i overlooked the need for creating a user "mysql" on the Xampp server. This is usually done by the installer, therefore you cannot simply plug in the USB stick and run Xampp. You have to create a "mysql" user at first and this must have a certain UserId (which i dont know, i will have a look on my Laptop later on, currently i am writing on my android tablet). If linux lacks the "mysql" user, Xampp cannot access the databases.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 14 guests