Home  >  Article  >  Backend Development  >  Configuration of PhpStorm on mac

Configuration of PhpStorm on mac

不言
不言Original
2018-04-21 15:12:0611355browse

This article introduces the configuration of PhpStorm on mac. It has certain reference value. Now I share it with you. Friends in need can refer to it.

In the Mac environment, the system itself has Apache (Apache server) and PHP are pre-installed and the merger is completed. If you don’t know how to merge, please read my blog:
https://blog.csdn.net/qq_37486501/article/details /79999059

Step 1: Create an empty project, create a new php file, and temporarily name it index.

<html><head>
    <title>PHP 测试</title></head><body><?php echo &#39;<p>Hello World</p>&#39;; ?></body></html>

Step 2: Download MAMP

mamp: Download address :https://www.mamp.info/en/downloads/

Step 3: PHP translator configuration

File->Default Setting ->Find PHP:(At this time Yours should show no interpreter)
Configuration of PhpStorm on mac
Click on the following "..."
Press command shift G: to find: /Applications/MAMP/bin/php/php7.1.12/bin/php-cgi
->Apply->OK

Step 4: Test

Configuration of PhpStorm on mac
->Google or safari can be used, it will be successful if it is displayed as shown in the picture
Configuration of PhpStorm on mac

Related recommendations:

Latest version of PhpStorm 2017 activation method

PHP environment setup (phpStudy) and integrated development tools (phpStorm) installation

The above is the detailed content of Configuration of PhpStorm on mac. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn