日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

XAMPP配置httpd-vhosts.conf后无法启动

發布時間:2025/3/21 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 XAMPP配置httpd-vhosts.conf后无法启动 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

apache打開Include conf/extra/httpd-vhosts.conf,就無法起動 ?

XAMPP用于安裝部署PHP工程還是很方便的,不過今天碰到一個無法啟動apache服務器的問題。


XAMPP配置站點的文件為:httpd-vhosts.conf,配置格式如下,

<VirtualHost *:80>?

? ? ServerAdmin webmaster@dummy-host2.localhost

? ? DocumentRoot "程序帶訪問也的路徑"

? ? ServerName www.dev.com (自己命名)

? ? ErrorLog "logs/dummy-host2.localhost-error_log"

? ? CustomLog "D:/xampp_log/VendorPlatform.log" combined

? ? <Directory "程序帶訪問也的路徑">

? ?DirectoryIndex index.php index.htm index.shtml index.html (訪問頁的文件名)

? ? Options Includes FollowSymLinks ExecCGI

? ? AllowOverride All

? ? Allow from all

? ? </Directory>

</VirtualHost>

但是,我在本地配置了后總是訪問不了,

報如下錯誤:

[Apache] Error: Apache shutdown unexpectedly.

[Apache] This may be due to a blocked port, missing dependencies,?

[Apache] improper privileges, a crash, or a shutdown by another method.

[Apache] Press the Logs button to view error logs and check

[Apache] the Windows Event Viewer for more clues

[Apache] If you need more help, copy and post this

[Apache] entire log window on the forums

根據網上查了下,還修改了端口。

修改端口的操作如下,

1、修改如下兩個端口

2、打開如下兩個配置文件,將里面的1中原有端口全部修改為1中修改后的端口

修改成功后,還是訪問不了配置的站點。于是又找到一個網上的解決辦法,將 CustomLog "D:/xampp_log/VendorPlatform.log" combined這一段全部刪掉,于是可以訪問了。


轉載于:https://blog.51cto.com/yangyoushan/1886614

總結

以上是生活随笔為你收集整理的XAMPP配置httpd-vhosts.conf后无法启动的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。