The establishment of PHP development environment-the installation and use of PHPStorm

Build a PHP development environment in win10 system.

Install XAMPP

XAMPP (Apache+MySQL+PHP+PERL) is a powerful integrated website software package. Can be installed and used on windows, Linux, and Mac systems

Windows system installation

Download link: https://www.apachefriends.org/index.html

Insert picture description here
Insert picture description here
Insert picture description here

Insert picture description here

Insert picture description here

After installation, if there is no shortcut on the desktop, find it in the installation directory

Insert picture description here

This control interface will appear after opening, click start to start the corresponding service.

Insert picture description here

We can run Apache. Then find the htdocs folder in the xampp installation directory. After entering, you can delete the original files. Put in your own php code.

Insert picture description here

<?php
echo 'hello world';

Open the browser to visitlocalhost

Insert picture description here

Installation and use of phpstorm

Download link: https://www.jetbrains.com/zh-cn/phpstorm/promo/

There is a 30-day period of prostitution. Of course, the student party can apply for free, depending on Baidu. Or in other ways, everyone can figure it out.

Insert picture description here

After selecting the installation path, go to next and wait for the installation to complete.

Insert picture description here

After installation, run phpstorm. If it is the first use, you will be prompted whether to import the configuration file, just click Cancel.

Then we need to set up the PHP environment. Make sure you have installed xampp or php before this.

configure->settings

Insert picture description here

Click the place pointed by the arrow on the right to add php.

Insert picture description here

Click the + sign. If you are installing xampp, find the php folder in the xampp directory, and then select it php.exe. If you install php directly, find php.exethe location. Confirm afterwards.

Insert picture description here

After configuration, click new project to create a new project, select PHP Empty Project

Insert picture description here

Right-click the folder and choose to create a new php file.

Insert picture description here

Insert picture description here

If there is no option to run in the upper right corner, click Add configuration.

Insert picture description here

Insert picture description here

Click apply->ok

Insert picture description here

Click the triangle to run

Insert picture description here

Enter in the browser localhostto access. If the port you set is not 80, you must add the corresponding port.

If it helps you, please like and follow to arrange a wave!!!

Guess you like

Origin blog.csdn.net/qq_43058685/article/details/108629584