2015年9月25日 星期五

Localhost 無法顯示解決方法

Localhost 無法顯示解決方法
Appserv, XAMPP



安裝好 Xampp 時,
馬上要來看看結果,
打上
http://localhost/
卻沒有顯示....天哪.....


Xampp 安裝完執行錯誤

上午 08:59:43  [Apache] Error: Apache shutdown unexpectedly.
上午 08:59:43  [Apache] This may be due to a blocked port, missing dependencies,
上午 08:59:43  [Apache] improper privileges, a crash, or a shutdown by another method.
上午 08:59:43  [Apache] Press the Logs button to view error logs and check
上午 08:59:43  [Apache] the Windows Event Viewer for more clues
上午 08:59:43  [Apache] If you need more help, copy and post this
上午 08:59:43  [Apache] entire log window on the forums


一般而言,
佔用 port 80, 443 多半為 skype,
而我的,則多了 vmware 也會佔用,
經過一番研究與設定,
因測試 xampp 是在本機執行,
用以測試網站功能為主,
並未對外開放,
所以,將 port 改到其他位址就成了解決方案。


以下為研究流程與解決方案詳解



修改 port 流程

首先修改 port 80,
點右上 config/Service and Port Setting




將 80 改為


將 80 改為 7777



再度運行 xampp ,仍顯示錯誤, port 443 遭佔用


再次點右上 config/Service and Port Setting


將 port 443 改為


將 port 443 改為 4433


順利運行了





其他修正項目

修正 hpptd.conf

位置 C:\xampp\apache\conf\hpptd.conf
將 80 改為 7777

搜尋找到 80


改為 7777



找到 80


改為 7777





修正 hpptd-ssl.conf


位置 C:\xampp\apache\conf\extra\hpptd-ssl.conf
將 443 改為 4433

搜尋 Listen 443



改為 4433


搜尋 443



改為 4433





修正後執行結果

修正完後要執行了,
網址列輸入 localhost 是不會有畫面的,

改了之後,
http://localhost

要修正改成
http://localhost:7777/

會轉址成
http://localhost:7777/dashboard/

畫面就會顯示出來了





更多教學,請參閱 XAMPP教學


相關文章
Localhost 無法顯示解決方法
[Appserv]Windows找不到localhost解決方法


Localhost 無法顯示解決方法
http://sbonny.blogspot.com/2015/09/localhost-not-show-solution.html

馬上按讚 加入 [兔兔電腦教室] 粉絲團

沒有留言:

加入Google+ Facebook 馬上按讚 加入兔兔電腦教室粉絲團

 

站群搜尋

含主站,論壇,部落格
自訂搜尋