Xampp配置本地網域名稱及常見錯誤解決

2022-05-03 04:09:07 字數 1791 閱讀 6638

本地網域名稱配置

1、計算機-->c盤-->windows-->system32-->drivers-->etc-->hosts

127.0.0.1       localhost//設定你要配置的本地網域名稱

2、計算機-->xampp-->apache-->conf-->extra-->httpd-vhosts.conf

serveradmin localhost

documentroot "d:\www\chexian"(專案路徑)

servername localhost

errorlog "logs/dummy-host2.example.com-error.log"

customlog "logs/dummy-host2.example.com-access.log" common

3、apache的配置

4、如何掃***看本地頁面

127.0.0.1       localhost

換成你電腦的ip位址即可

127.0.0.1       192.168.1.153 用ip位址才能在區域網內瀏覽

xampp錯誤: apache shutdown unexpectedly解決辦法

這是wopus的第一篇xampp的文章:使用xampp在電腦中執行wordpress–安裝篇;

xampp安裝好之後啟動,但有些使用者在啟動apache的時候會出現:

16:50:25 [apache] status change detected: running

16:50:26 [apache] status change detected: stopped

16:50:26 [apache] error: apache shutdown unexpectedly.

16:50:26 [apache] this may be due to a blocked port, missing dependencies,

16:50:26 [apache] improper privileges, a crash, or a shutdown by another method.

16:50:26 [apache] press the logs button to view error logs and check

16:50:26 [apache] the windows event viewer for more clues

16:50:26 [apache] if you need more help, copy and post this

16:50:26 [apache] entire log window on the forums

出現這個錯誤的原因是,xampp的設定的常用埠,包含http和https的埠都被占用了,解決辦法:

1,開啟xampp的控制面板,找到:apache的config檔案:

2,先開啟 apache(httpd.conf),找到:listen 80 替換成:listen 8080;找到:servername localhost:80 替換成:servername localhost:8080;儲存。

3,再開啟apache(httpd-ssl.conf),找到:listen 443 替換成:listen 4433;找到:和 servername localhost:443 替換成:和 servername localhost:4433;儲存。

4,關閉xampp,重新開啟,再啟動apache就不會有問題了。

本地網域名稱啟動配置

1.啟用本地iis 控制面板 程式和功能 啟用或關閉windows功能 2.本地host配置 c windows system32 drivers etc hosts 127.0.0.1 manager.guodong.cn 這裡先把公共後台注釋掉,採用線上環境 127.0.0.1 sms.guod...

PHP 在xampp中為專案訪問配置本地網域名稱的方法

好多程式設計師們喜歡使用localhost 專案名訪問專案 或者 使用127.0.0.1進行專案訪問,有的時候在利用某些專案開發的時候,由於前期專案開發時一些或者資源的路徑預設儲存的都是本地的路徑,當部署到伺服器上的時候,發現路徑不會,好多或者資源都找不到了或者看不到了,為了避免這種情況,今天教大家...

Apache配置虛擬主機 設定本地網域名稱

廢話不多少說下面開始正文。要求 1.首先你必須安裝了apache,並也能正常執行。2.你必須能找到hosts httpd.conf httpd vhosts.conf這三個檔案的位置。hosts檔案的位置很好找 windows c windows system32 drivers etc資料夾下面。...