XAMPP
How to create XAMPP icon on desktop
- Install GKSU[js]sudo apt-get install gksu[/js]
- Run GEDIT, copy and paste the following codes
[js]#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_US]=/opt/lampp/htdocs/favicon.ico
Name[en_US]=XAMPP
Exec=gksu /opt/lampp/manager-linux-x64.run
Comment[en_US]=Start XAMPP Control Panel
Name=XAMPP
Comment=Start XAMPP Control Panel
Icon=/opt/lampp/htdocs/favicon.ico[/js] - Save the file on your Desktop as Xampp.desktop
- Once the shortcut is on the Desktop, right-click on it, go to Properties, Permissions tab, and check ‘Allow executing file as program’
How to open Control Panel
[js]sudo /opt/lampp/manager-linux-x64.run[/js]
How to uninstall
[js]sudo -i
cd /opt/lampp
sudo ./uninstall[/js]
How to start
[js]sudo /opt/lampp/lampp start[/js]
How to auto start when start Ubuntu
- Create a script in init.d called lampp
[js]sudo gedit /etc/init.d/lampp[/js] - Paste this code on the script and save
[js]
#!/bin/bash
/opt/lampp/lampp start
[/js] - Give -x permissions to the file
[js]sudo chmod +x /etc/init.d/lampp[/js] - Use update-rc.d to install init scripts to all runlevel by typing
[js]sudo update-rc.d lampp defaults[/js]
How to backup MySQL database from Ubuntu command line
- [js]cd /opt/lampp/bin/[/js]
- [js]sudo ./mysqldump –add-drop-database -u [user name] -p[password] [database name] > [file_name].sql
[/js]
How to change root directory
Change Apaches httpd.conf by clicking (in xampp control panel) apache/conf/httpd.conf and adjust the entries for DocumentRoot and the corresponding Directory entry.
Just Ctrl+F for “htdocs” and change the entries to your new path.
Leave a Reply