本篇教程為配置 PHPStorm 本地服務器,以方便程序調試。
本地服務器工具:XAMPP for windows 7.1.1-0 / Apache 2.4.25 ( Win32 ) / PHP 7.1.1
PHPStorm 版本:2016.3.2
配置 PHP 解釋器
File > Setting > Languages&Frameworks > PHP

PHP language level: 選擇適合的 PHP 版本
CLI Interpreter :點擊更多(…)

在 CLI Interpreters 中設置:①添加項目;②給項目添加名稱,如 PHP_xampp;③在 PHP executable 中找到 xampp/php/ 目錄中的 php.exe 文件;④點擊 OK 完成配置。
配置 Apache 服務器
File > Setting > Build,Execution,Deployment > Deployment

①點擊“+”添加服務器;②給服務器起個名字,例如“Apache_xampp”;③類型選擇“ In place ”;④點擊 OK 保存。

保存好 Apache_xampp 的初步設置后,選擇 “ Mappings ”,然后找到 xampp/htdocs 中當前開發的 Project 路徑,OK保存。
作者:Wallys
鏈接:https://www.jianshu.com/p/12cdab15b83f
來源:簡書
簡書著作權歸作者所有,任何形式的轉載都請聯系作者獲得授權並注明出處。