1. Download: first download XAMPP Linux 1.7.3a through wget, address for http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/xampp-linux-1.7.3a.tar.gz
Remember to add sudo before using wget in Ubuntu
Sudo wegt http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/xampp-linux-1.7.3a.tar.gz
2. Installation: extract the downloaded file to the/OPT directory:
Specifically: Tar xvfz xampp-linux-1.7.3a.tar.gz-C/OPT
Now, XAMPP is installed in the/opt/lampp directory.
3. Start: To start XAMPP, run the following command:/opt/lampp start.
But in Ubuntu, this cannot be done.
First, you must convert Sudo-s to root.
Second, go to the directory CD/opt/lampp and press Enter. /lampp start to start XAMPP. When the main step is started, the XAMPP cannot be started if one step is wrong. I also learned it after trying it.
The following information is displayed after startup:
Starting XAMPP 1.7.3a...
Lampp: Starting Apache...
Lampp: Starting MySQL...
Lampp started.
It indicates that Apache and MySQL have been started.
4. Test: Enter http: // localhost in ur Address Bar
The Starting Screen of XAMPP contains some connections to check the system status and some simple sample programs.
Run the following command to uninstall XAMPP: sudo Rm-RF/opt/lampp.
Uninstalled successfully. :) XAMPP command
Install XAMPP
Tar xvfz xampp-linux-1.6.4.tar.gz-C/OPT
Start XAMPP
/Opt/lampp start
Stop XAMPP
/Opt/lampp stop
Restart XAMPP
/Opt/lampp restart
Security Settings
/Opt/lampp Security
Use PhP4
/Opt/lampp PhP4
Use PhP5
/Opt/lampp PhP5
View PHP version
/Opt/lampp phpstatus
Start Apache only
/Opt/lampp startapache
Stop Apache
/Opt/lampp stopapache
Start SSL support for Apache
/Opt/lampp startssl
Disable SSL support for Apache
/Opt/lampp stopssl
Start MySQL databases only
/Opt/lampp startmysql
Stop a MySQL database
/Opt/lampp stopmysql
Start the ProFTPd Server
/Opt/lampp startftp
Stop a ProFTPd Server
/Opt/lampp stopftp
Automatically started with the System
Ln-S/opt/lampp/etc/rc. d/rc3.d/s99lampp
Ln-S/opt/lampp/etc/rc. d/rc4.d/s99lampp
Ln-S/opt/lampp/etc/rc. d/rc5.d/s99lampp
Cancel automatic running with the System
Ln-S/opt/lampp k01lampp
Uninstall XAMPP
Rm-RF/opt/lampp
Important XAMPP files and directories
XAMPP command library. For example, the/opt/lampp/bin/MySQL executable MySQL Monitor
/Opt/lampp/bin/
Apache document root directory
/Opt/lampp/htdocs/
Apache configuration file
/Opt/lampp/etc/httpd. conf
MySQL preparation File
/Opt/lampp/etc/My. CNF
PHP preparation File
/Opt/lampp/etc/PHP. ini
ProFTPD preparation file. (Starting from version 0.9.5)
/Opt/lampp/etc/ProFTPd. conf
PhpMyAdmin preparation File
/Opt/lampp/PHPmyAdmin/config. Inc. php
The installation of XAMPP in Ubuntu has been completed. I hope it will help you! Hope we can make common progress!