phpstorm配置php運行地址
1.phpstorm配置
- 默認所有服務器文件在 wamp中的www文件夾中 , 點擊www directory 能看到. 如果被修改,查尋Dircotory 前面 DocumentRoot 查看配置文件, 確認路徑.
- 把文件夾,創建在服務器的目錄當中。
- 在瀏覽器當中,查看文件 http://localhost/day2-code/
- 到phpstorm當中,進行配置 setting ->deployment
- 點擊綠色添加,把文件地址,貼入進去。

PS: wamp 解釋
W: windows 操作系統
A: apache 提供網頁服務的應用程序
M: mysql 數據庫
P: php 編程語言
問題1.PHP Interpreter is not configured

- 1.當右上角彈出這個警告時,表示phpstrom沒有獲取到PHP服務器,點擊藍色鏈接手動配置服務器。

2.配置Interpreter選項,點擊后面的方塊配置PHP。然后點擊左上角的加號添加PHP,選擇Other Local。
3.在PHP executable 中添加wamp路徑,例如:D:\soft\wamp\bin\php\php5.3.10\php.exe
4.配置成功后,會顯示PHP版本號。最后將External Libraries配置一下,項目就部署完成了。
問題2 本地搭建wamp,輸入 http://127.0.0.1 訪問正常,當輸入http://localhost/ ,apache 出現You don't have permission to access/on this server.的提示

- 1.找到httpd.conf,用記事本打開httpd.conf,
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
- 然后將
Deny from all
改為:Allow from all ,然后重新啟動所有服務。
- 2.還有將下面將
Deny from all
改為:Allow from all ,然后重新啟動所有服務。
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>