Build an integrated php environment in linux, and build php integration in linux
Release. The specific version can be downloaded from the official website: release,
1. Download the xampp installation package
Download the xamppinstallation package from the Internet. Select xampp-linux-x64-5.5.30-3-installer.zip.
Ii. Decompress
Copy the above file to the linux system, and upload it to the/home/wcj/xampp/directory, as shown in,
Use the unzip command: unzip xampp-linux-x64-5.5.30-3-installer.zip; because the zip file in Windows and linux is unified, so here you can decompress, as shown below,
We can see that extracted is a xampp-linux-x64-5.5.30-3-installer.run
Iii. Install
We can see that the unzipped xampp-linux-x64-5.5.30-3-installer.run file has no execution permission, first of all need to grant its execution permission, I give it 775 permission here
Chmod 775 xampp-linux-x64-5.5.30-3-installer.run
After the preceding command is executed, the execution permission is granted,
Run the following command:
./Xampp-linux-x64-5.5.30-3-installer.run to enter installation steps such,
Here is our prompt, we Enter Y to go to the next step, there will still be a prompt in the next step, we Enter Y, then prompt to press the "Enter" key to continue the installation, and then Enter Y, start installation, as shown in figure
The installation directory/opt/lampp is displayed at the top, which is the default installation directory. Wait until installation is complete
4. modify the configuration file
After the installation is complete, go to the/opt/lampp file and you will see many files, which proves that the installation is successful.
After the installation may not be accessible, this time you need to modify the configuration file, find the httpd-xampp.conf under the/opt/lampp/etx/extra directory, modify this file, find the following code
# New XAMPP security concept#<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))"> Require local ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var</LocationMatch>
Comment out Require local and replace it with Require all granted. Then you can access it externally,
5. Set a password
After the above configuration file is passed, you can access it, but you cannot log on to the database, you need to set a password.
In the/opt/lampp directory, execute./lampp security and a message is displayed, prompting you to set the password for lampp, ftp, and mysql. After the setting is complete, you can log on.
Click "phpMyAdmin" in the upper right corner. You can go in and the installation is successful. The default apache port is 80.
In addition, you can download tar.gz files on the Internet. If this type of file is used, you can decompress it directly under linux. Other configurations are consistent with the above
Some commands (under the/opt/lampp directory)
Start xampp service./lampp start
Stop xampp service./lampp stop
Restart the xampp service./lampp restart
Uninstall xampp, stop the xampp service, delete the lampp folder under/opt, and run rm-rf lampp under/opt to delete the xampp service.
If any error exists, please note that
Thank you!