Quick build of PHP development environment
I. Quickly build PHP development environment under Linux
1. Installing XAMPP for Linux
XAMPP (Apache+mysql+php+perl) is a powerful built-in integration package that uses XAMPP to quickly build a PHP development environment. Download: http://www.php.cn/xiazai/gongju/91 Go to download interface select XAMPP for Linux download
Start Terminal input Command cd/download xampp saved path. My save path is:/home/coderose/download. To change setup permissions for the installer, enter the command: chmod 755 Xampp-linux-*-installer.run (Note: The asterisk represents the version number you downloaded XAMPP). Run Setup Input command:./xampp-linux-*-installer.run after the installation is successful, use the command: SUDO/OPT/LAMPP/LAMPP start.
(Note: cd command: Used to switch working directory to dirname.) ls command: Lists directories under so file. CHOMD Command: Modify file permissions)
2. Installing Phpstorm
Phpstorm is a lightweight and convenient PHP IDE designed to improve user efficiency, provide a deep understanding of the user's coding, offer smart code completion, quick navigation, and instant error checking.
Download Link: http://www.php.cn/xiazai/gongju/122
When the download is complete, open the Terminal input command: cd/home/coderose/download (go to the directory where the download file is located)
Input command: Tar-xvzf phpstorm-2016.3.3.tar.gz (after decompression, change file name to Phpstorm)
Input command: cd/home/coderose/download/phpstorm/bin (go to the bin directory under Extract file Phpstorm)
Input command:./phpstorm.sh (Install)
3. Activating a PHP IDE that is ready for use in the world
Open phpstorm and select Activation Code. One column, enter the code code obtained on the: idea.lanyus.com. Get the registration code paste copy. Click Activate Activation (199 dollar software to get it, flattered!) )
4. Create the first PHP Mini Demo
(1) Open phpstorm: (1) Create a demo.html
<! DOCTYPE html>
(2) Create demo.php
<! DOCTYPE html>
(3) In form form fill in Data Click submit button, will jump to demo.php page