Quickly build a php development environment in Linux and build php development in linux
Php development environment quick Setup 1. Quick setup of php development environment in Linux 1. InstallationXAMPP for Linux
XAMPP (Apache + MySQL + PHP + PERL)Is a powerful Integrated Software Package for website creation.XAMPPQuick setupPHPDevelopment environment. Download link: https://www.apachefriends.org/download.html go to download page selectXAMPP for LinuxDownload
Start the terminal and enter the command cd/download the path saved by xampp. My save path is/home/coderose/download. Change the installation permission of the installer and enter the command chmod 755 xampp-linux-*-installer. run (Note: The asterisk indicates that you download the XAMPP version number ). Run the installer and run./xampp-linux-*-installer. run the command: sudo/opt/lampp start.
(Note: the cd command is used to switch the working directory to dirname. Ls command: list all files in the directory. Chomd command: Modify file permissions)
2. Install PhpStorm
PhpStorm is a lightweight and convenient php ide designed to improve user efficiency, deeply understand user code, provide intelligent Code Completion, fast navigation, and instant error check.
Download link: http://www.jetbrains.com/phpstorm/download/#section=linux
After the download is complete, open the terminal and enter the command: cd/home/coderose/download (go to the directory where the downloaded file is located)
Enter the command: tar-xvzf PhpStorm-2016.3.3.tar.gz (decompress and change the file name to PhpStorm)
Enter the command: cd/home/coderose/download/PhpStorm/bin (go to the bin directory under the decompressed PhpStorm file)
Enter the command:./phpstorm. sh (installation)
3. Activate the php ide that is ready for use in the world
Open PhpStorm and select Activation code. Enter the code obtained on the: http://idea.lanyus.com in the column. Obtain the registration code, paste it, and copy it. Click Activate to Activate the service ($199 in software !)
4. Create the first PHP demo
(1) Open PhpStorm :( 1mocreate A demo.html
<! DOCTYPE html>
(2) create demo. php
<! DOCTYPE html>
(3) enter data in form and click Submit to go To the demo. php page.