1. 程式人生 > >mac的虛擬機器上安裝wampserver,mac訪問虛擬機器伺服器

mac的虛擬機器上安裝wampserver,mac訪問虛擬機器伺服器

其中遇到很多問題:

1,You don't have permission to access /index.php on this server(這個不是防火牆問題,好像是修改deny from all 為 allow from all 就可以解決)

2,the requested URL / was not found on this server(未解決)

以下未進行測試,自己也不急著使用,暫停留待以後需要用到再說偷笑

解決方法:檢查Apache下的httpd.conf 的DocumentRoot 和Directory 的路徑是的正確,

若路徑正確;則檢視httpd:conf 下的Include conf/extra/httpd-vhosts.conf 

將Include conf/extra/httpd-vhosts.conf改為#Include conf/extra/httpd-vhosts.conf ;重啟服務訪問即可;