First, please download the latest version of XAMPP from www.xampp.org.installationIf it is a xampp compressed file
Copy the Xampp compressed file to the/OPT and unzip it. If your computer does not have a/opt directory, use the "sudo mkdir/opt" command to create the directory.
If the computer does not have the sudo command, use the SU command and enter the superuser password to switch to the super user.
Use the following command to copy the file to/OPT:
$sudo cp/doc/xampp-linux-x.x.tar.gz/opt //"/doc/" indicates the path of the current XAMPP file
Enter the opt/directory and unzip the file using the following command:
$ sudo tar zxvf xampp-linux-x.x-x.tar.gz/opt
$sudo cp/doc/xampp-linux-5.6.8-0-installer.run/opt //"/doc/" indicates the path of the current XAMPP file
$ sudo xampp-linux-5.6.8-0-installer.run
Warning: Only allow XAMPP to be installed using the above command. Do not use any Microsoft Windows tools to release compressed files, which is no use.
Warning 2: When you use this command, older versions of XAMPP that already exist will be overwritten.
This is the end. The XAMPP is installed in the/OPT/LAMPP directory.
Note: The "SU: Authentication failed" error may occur after the SU command because the root user is locked out by default after Ubuntu installation, does not allow login, and does not allow "su" to root. This is more secure and should be. The following methods can be used to resolve
Use the passwd command to reset the root password. As follows
Start Running1 [email protected]:~$ sudo passwd 2 password:<---Enter the password for that user at installation 3 Enter the new UNIX password:<---New root user password 4 re-enter the new UNIX password: <-- -Repeat the new root user password 5 passwd: Successfully updated password 6 [email protected]:~$ su 7 password: <--Enter the new password reset 8 [email protected]:/home/xxx # #已经进入root用户
Use the following command to start running XAMPP:
You should be able to see a message similar to the following on the screen:
Starting XAMPP for Linux 1.7.3a ... Xampp:starting Apache with SSL (and PHP5) ... Xampp:starting MySQL ... Xampp:starting ProFTPD ... XAMPP for Linux started.
All right. Apache and MySQL are running.Test
Well, that's simple, but how do you detect if all the components are working correctly? Just enter the following link in your browser:
You should now see a link to detect the working status of installed software and a XAMPP start page for some sample programs.Security Settings
As mentioned earlier, XAMPP is not intended for production environments and is intended for use by the development environment only. XAMPP is set to be as open as possible and provides the developer with any features he or she wants. This is great for the development environment, but it can be deadly for production environments.
Here's a list of XAMPP. Lack of security protection:
To fix most of the security weaknesses, simply execute the following command:
It enables a small security check feature to make the XAMPP you install more secure.Other Parameters
Advanced Start and Stop parameters
Parameter description start start XAMPP. Stop stops XAMPP. Restart Restart XAMPP. Startapache only launches Apache. Startssl initiates SSL support for Apache. The command will continue to activate SSL support, for example: After executing the command, if you shut down and restart the Xampp,ssl will still be active. Startmysql only starts the MySQL database. Startftp start the ProFTPD server. Via FTP, you can upload files to your Web server (username "Nobody", Password "lampp"). The command will continue to activate ProFTPD, for example: After executing the command, if you close and restart Xampp,ftp will still be active. Stopapache Stop Apache. Stopssl Stop the Apache SSL support. The command will continue to stop SSL support, for example: After executing the command, if you shut down and restart the Xampp,ssl will still be in the stopped state. Stopmysql Stop the MySQL database. Stopftp Stop ProFTPD Server. The command will continue to stop ProFTPD, for example: After executing the command, if you close and restart Xampp,ftp will still be in the stopped state. Security launches a small security check procedure.
For example: To enable Apache with SSL support, simply enter the following command:
You can now access the Apache server in the form of SSL https://localhost.Catalogue Description
Important Files and directories
File/directory Purpose/opt/lampp/bin/xampp command library. For example,/opt/lampp/bin/mysql executable MySQL monitor. /opt/lampp/htdocs/apache the document root directory. /opt/lampp/etc/httpd.conf Apache configuration file. /OPT/LAMPP/ETC/MY.CNF MySQL configuration file. /opt/lampp/etc/php.ini PHP configuration files.
/opt/lampp/etc/proftpd.conf proftpd Preparation file. (starting from version 0.9.5)/opt/lampp/phpmyadmin/config.inc.php phpmyadmin preparation file.Stop XAMPP
To stop XAMPP, simply enter the following command:
You should now be able to see:
Stopping Lampp 1.7.3a ... Lampp:stopping Apache ... Lampp:stopping MySQL ... Lampp stopped.
Then XAMPP's Linux version stops running.Uninstall
To uninstall XAMPP, simply enter the following command:
Stop the XAMPP first
Then run the following folder to delete the command directly
If you want ordinary users to be able to write Htdocs directories, modify the directory permissions.
$ sudo chmod-r a+rw/opt/lampp/htdocs
Xampp:couldn ' t start mysql! solution (MySQL service not start)
$ sudo chmod 777-r/opt/lampp/var
Using the control user connection that is defined in the configuration file to resolve the aromatic method
1. Locate the config.inc.php configuration file (or config.sample.inc.php, rename it to config.inc.php first) in the root directory of the installation phpMyAdmin and open it with Notepad.
2. Find $cfg[' Servers ' [$i] [' controlpass '] = ' ******* ' in the open configuration file; This section of which ******* is your password, default is empty, modify it to your phpmyadmin on the modified password.
3, if your user name has also been modified to find $cfg[' Servers ' [$i] [' controluser '] = ' root '; This section, where Root is your username, change it to your modified username.
Existing configuration file (./config.inc.php) is not readable.
$ sudo chmod 644 config.inc.php
To start or stop XAMPP:
$ sudo/opt/lampp/lampp Start & Stop
XAMPP graphical panel under Linux
You can also use commands to create a boot menu:
Open "System"-"preferences"-"main Menu"-"Programming"-"New Project"
Name: lampp command: Gksu/opt/lampp/share/xampp-control-panel/xampp-control-panel
Note: Gksu is intended to run as root, prompting you to enter a password
For convenience: Edit: System-Preferences-main Menu-programming then click New Project, enter the name lampp input command: Sudo/opt/lampp/share/xampp-control-panel/xampp-control-panel save to
The next time from the program, you can start the LAMPP management interface directly
Tar xvfz xampp-linux-1.6.4.tar.gz-c/opt
View PHP Version
Start Apache only
To launch SSL support for Apache
Stop the Apache SSL support
Start MySQL database only
Stop MySQL Database
Start the ProFTPD server
Stop ProFTPD Server
Auto-start with system
Cancel auto-run with system
XAMPP Important Files and directories
XAMPP Command Library. Example/opt/lampp/bin/mysql executable MySQL monitor
Apache Document root directory
Apache Compounding File
MySQL configuration file
PHP Configuration Files
ProFTPD the configuration file. (starting from version 0.9.5)
PhpMyAdmin Compounding File
Linux--Ubuntu desktop installation Xampp