1。配置file -settings
在PHP選項中點選CLI Interpreter 選擇 php可執行位置 然後確認保存
2。配置apache默認路徑
選擇file-- Build,Execution,Development:
選擇Development , 點加號添加一個server 。 name 寫apache type 選額inplace。
connection選項中的web server root URl 添加80
mappings 選項中localpath 選擇 /var/www/html
點擊apply默認保存
3。更改apache默認選項
打開xmapp
點擊 manage servers
選擇 Apache web server
點擊 configre ,選擇open conf file。
DocumentRoot改成 /var/www/html
查找deny 註銷掉 Require all denied
寫入 Allow from all
forexample:
<Directory />
#AllowOverride none
#Require all denied
#Order deny,all
Allow from all
</Directory>
保存
4。添加數據庫
點擊View--》 toolwindow --》 database--》點擊+號 --》選擇datasource--》mysql--》輸入User password(database 可以不選擇默認)
5。更改mysql參數
點擊 xmapp --》 選擇MySQL Database --》選擇config--》選擇open conf File --》 裏面的password 選項以及user 選項可進行對應修改--》
末尾添加skip-grant-tables