1、使用PhpStorm创建一个项目phpstudy,项目路径选择你的Apache目录下的htdocs目录下(项目路径很重要)
2、File-->setting-->Languages & Frameworks --> PHP 下的CLI Interpreter 后面的“...”选择你的PHP安装目录下的php.exe
3、Build,Execution,Deployment --> Deployment下选择“+” 添加,选择In Place,在Connection下的web server url 填写http://localhost:8090/phpstudy(phpstudy是访问的项目名称),切换到Mapping,Local Path下填写D:\software\Apache24\htdocs\phpstudy
然后