In Linux, we have XAMPP but under the hood it's named "LAMPP". But LAMPP works the same way as XAMPP. I have used LAMPP in Ubuntu, Kubuntu, Xubuntu comfortably.
The main advantage is that I can install Linux in my pendrive, keep LAMPP on it and then I can use the same apps and everything on any computer in the world, with just keeping the pendrive with me!
So let's see how to install LAMPP/XAMPP in Linux and use it comfortably with a graphical control panel that comes with it.
If you want to run the setup you need to make it executable. Right click it, choose properties, then go to permissions tab, make sure the executable checkmark is there.
Run terminal, then:
(Change the version name according to your downloaded version.)
Provide the password if it asks for one.
Now you could run XAMPP/LAMPP by running sudo /opt/lampp/lampp start
But we will get an easier way of running XAMPP/LAMPP. So let's not run this now.
sudo apt-get install python-gtk2 python-glade2
This will install dependencies required for running the XAMPP Control Panel.
Then we create shortcut. Run:
Now a text editor will open. Paste the following code & Save it:
(If you are on KDE, replace the "gksudo" with "kdesudo".)
XAMPP will run and you can even close the control panel if you wish.
When you restart the computer, you will have to start XAMPP again.
If you have successfully started XAMPP, you can now launch http://localhost/ and do your thing.
To use phpMyAdmin, just launch http://localhost/phpmyadmin
Enjoy!
(Screenshots are taken on Kubuntu 15.04, which has the good-looking new KDE 5.9 & Plasma 5.2.2. Try it yourself!)
Ref:
http://ubuntuforums.org/showthread.php?t=956553
The main advantage is that I can install Linux in my pendrive, keep LAMPP on it and then I can use the same apps and everything on any computer in the world, with just keeping the pendrive with me!
So let's see how to install LAMPP/XAMPP in Linux and use it comfortably with a graphical control panel that comes with it.
Step-1: Download XAMPP for linux
Go to https://www.apachefriends.org/download.html and grab the file under heading "XAMPP for Linux". Run uname -p on terminal to find your appropriate OS architecture (32 bit or 64 bit).Step-2: Run the setup
I usually copy it to my Home folder. That makes it easier to execute it. I will assume you did so.If you want to run the setup you need to make it executable. Right click it, choose properties, then go to permissions tab, make sure the executable checkmark is there.
Run terminal, then:
sudo ./xampp-linux-1.8.3-1-installer.run
(Change the version name according to your downloaded version.)
Provide the password if it asks for one.
Step-3: Doing the setup
Doing the setup is easy. Like you install things in windows, just keep on clicking Next and eventually it will end. Complete the setup.Now you could run XAMPP/LAMPP by running sudo /opt/lampp/lampp start
But we will get an easier way of running XAMPP/LAMPP. So let's not run this now.
Step-4: Running Graphical Control Panel (Optional)
First of all install some dependencies with the command:sudo apt-get install python-gtk2 python-glade2
This will install dependencies required for running the XAMPP Control Panel.
Then we create shortcut. Run:
gedit ~/.local/share/applications/xampp-control-panel.desktopor if on KDE:
kate ~/.local/share/applications/xampp-control-panel.desktop
Now a text editor will open. Paste the following code & Save it:
[Desktop Entry]
Comment=Start/Stop XAMPP
Name=XAMPP Control Panel
Exec=gksudo "python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py"
Icon[en_CA]=/usr/share/icons/Tango/scalable/devices/network-wired.svg
Encoding=UTF-8
Terminal=false
Name[en_CA]=XAMPP Control Panel
Comment[en_CA]=Start/Stop XAMPP
Type=Application
Categories=Development;Utility;Internet
Icon=/opt/lampp/htdocs/favicon.ico
(If you are on KDE, replace the "gksudo" with "kdesudo".)
Step-5: Run Control Panel and Run XAMPP/LAMPP (Optional)
On your applications menu, you will now find an item named XAMPP Control Panel. Run it, then click Start XAMPP, to run XAMPP.XAMPP will run and you can even close the control panel if you wish.
When you restart the computer, you will have to start XAMPP again.
If you have successfully started XAMPP, you can now launch http://localhost/ and do your thing.
To use phpMyAdmin, just launch http://localhost/phpmyadmin
Enjoy!
(Screenshots are taken on Kubuntu 15.04, which has the good-looking new KDE 5.9 & Plasma 5.2.2. Try it yourself!)
Ref:
http://ubuntuforums.org/showthread.php?t=956553
No comments:
Post a Comment