Xampp Installation on Linux
Installation:
1. Open link and download appropriate Xampp version for you.2. Open your terminal (Press Ctrl + Alt + T) and change directory to the folder when you have downloaded Xampp. Below commands are for specific version, replace with your version number (xampp-linux-x64-7.0.6-0-installer.run file name)
3. Reset the permissions of Xampp installer and make it executable. Run the following command. If you are prompted for password enter it.
sudo chmod +x xampp-linux-x64-7.0.6-0-installer.run
4. Run the installer by running the following command.
sudo ./xampp-linux-x64-7.0.6-0-installer.run
5. A GUI window will open. Press enter till finish (or customize it in your own way)
Security Command:
Run the following command to set the password and other security confidentials if you want:sudo /opt/lampp/lampp security
Working with Xampp:
You put all your projects in /opt/lampp/htdocs in your linux to access them via server1. Install gksu by running following command on your linux ystem:
sudo apt-get install gksu
2.Open htdocs folder with sudo permission(that's best way to edit files in xampp):
gksudo nautilus /opt/lampp/htdocs
3. Starting xampp server:
sudo /opt/lampp/lampp start #start xampp
4. Now you can go to your browser and enter 127.0.0.1/<project-name>/ to access your project.
5. To stop the server run the following command:
sudo /opt/lampp/lampp stop #stop xampp
Troubleshooting:
If your command above to start xampp shows message something like this:Starting XAMPP for Linux 7.0.6-0...
XAMPP: Starting Apache...fail.
XAMPP: Another web server is already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
then, first stop your server, run the following command and try again.
sudo /etc/init.d/apache2 stop #if apache is not working
I hope this helps with getting away with setting up your Xampp projects on Linux :)
Have a happy working with your Linux :)
Congratulations megha on this blog that you've started:) and this is really a nice piece.. will try it to get xampp working on my system which I'm not able to do till now😊😊
ReplyDeleteThanks!!!
DeleteI'm happy to know that it helped you :)
Hey.. Megha!! this one will be helpful..😃
ReplyDeleteWould be great if it helped you :)
Delete