Quickly build a php development environment in Linux and build php development in linux

Source: Internet
Author: User
Tags php development environment

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.

 

  

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.