PHP development environment quickly build a, Linux under the rapid construction of PHP development environment 1. Installation
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 Link: https://www.apachefriends.org/download.html 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.jetbrains.com/phpstorm/download/#section =linux
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: http://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><HTMLLang= "en"><Head> <MetaCharSet= "UTF-8"> <title>PHP Small Demo</title></Head><Body><formAction= "demo.php"Method= "POST"> <TableBorder= "1"> <TR> <TD>Name:</TD> <TD><inputtype= "text"name= "Name1"></TD> </TR> <TR> <TDcolspan= "2"Align= "Center"><inputtype= "Submit"value= "Submit"></TD> </TR> </Table></form></Body></HTML>
(2) Create demo.php
<! DOCTYPE html>echo "hi! ";?></body>
(3) In form form fill in Data Click submit button, will jump to demo.php page
Quickly build PHP development environment under Linux