First, please download the latest version of XAMPP from www.xampp.org. Then, the installation file is known/opt and unzipped. If your computer does not have a/opt directory, use Superuser status to execute the mkdir/opt command to create the directory. If the computer does not have sudo command, use the SU command and enter the superuser password to switch to Superuser. Copy the file to/opt using the following command:
$sudo CP xampp-linux-x.x.tar.gz/opt
Use the command to enter the opt/directory and extract the file:
$ cd/opt
$ sudo tar zxvf xampp-linux-x.x-x.tar.gz-c/opt
$sudo/opt/lampp/lampp Start
Start the service, test the http://localhost in the browser
To uninstall XAMPP, simply enter the following command: sudo rm-rf/opt/lampp
Uninstall complete. :)
XAMPP command
Install XAMPP
The code is as follows |
Copy Code |
Tar xvfz xampp-linux-1.6.4.tar.gz-c/opt |
Start XAMPP
The code is as follows |
Copy Code |
/opt/lampp/lampp start |
Stop XAMPP
The code is as follows |
Copy Code |
/opt/lampp/lampp stop |
Restart XAMPP
The code is as follows |
Copy Code |
/OPT/LAMPP/LAMPP restart |
Security settings
The code is as follows |
Copy Code |
/OPT/LAMPP/LAMPP Security |
Using PHP4
The code is as follows |
Copy Code |
/opt/lampp/lampp PHP4 |
Using PHP5
The code is as follows |
Copy Code |
/opt/lampp/lampp PHP5 |
View PHP Version
The code is as follows |
Copy Code |
/opt/lampp/lampp Phpstatus |
Start Apache only
The code is as follows |
Copy Code |
/opt/lampp/lampp Startapache |
Stop Apache
The code is as follows |
Copy Code |
/opt/lampp/lampp Stopapache |
Start the SSL support for Apache
The code is as follows |
Copy Code |
/opt/lampp/lampp Startssl |
Stop the Apache SSL support
The code is as follows |
Copy Code |
/opt/lampp/lampp Stopssl |
Start MySQL database only
The code is as follows |
Copy Code |
/opt/lampp/lampp Startmysql |
Stop MySQL Database
The code is as follows |
Copy Code |
/opt/lampp/lampp Stopmysql |
Start ProFTPD Server
The code is as follows |
Copy Code |
/opt/lampp/lampp startftp |
Stop ProFTPD Server
The code is as follows |
Copy Code |
/opt/lampp/lampp stopftp |
Automatically start with system
The code is as follows |
Copy Code |
Ln-s/OPT/LAMPP/LAMPP/ETC/RC.D/RC3.D/S99LAMPP Ln-s/OPT/LAMPP/LAMPP/ETC/RC.D/RC4.D/S99LAMPP Ln-s/OPT/LAMPP/LAMPP/ETC/RC.D/RC5.D/S99LAMPP |
Cancel auto Run with system
The code is as follows |
Copy Code |
Ln-s/opt/lampp/lampp K01lampp |
Uninstall XAMPP
The code is as follows |
Copy Code |
Rm-rf/opt/lampp |
XAMPP Important Files and directories
XAMPP Command Library. For example/opt/lampp/bin/mysql executable MySQL monitor
The code is as follows |
Copy Code |
/opt/lampp/bin/ |
Apache Document root directory
The code is as follows |
Copy Code |
/opt/lampp/htdocs/ |
Apache configuration file
The code is as follows |
Copy Code |
/opt/lampp/etc/httpd.conf |
MySQL configuration file
The code is as follows |
Copy Code |
/opt/lampp/etc/my.cnf |
PHP configuration file
The code is as follows |
Copy Code |
/opt/lampp/etc/php.ini |
ProFTPD Compounding documents. (starting from version 0.9.5)
The code is as follows |
Copy Code |
/opt/lampp/etc/proftpd.conf |
phpMyAdmin Preparation File
code is as follows |
copy code |
/opt/lampp /phpmyadmin/config.inc.php |