xamp开启服务时出现如下情况:

XAMPP: Starting Apache...fail. 
XAMPP:  Another web server with SSL is already running.

一开始是以为端口占用问题,使用lsof -i:80命令 和 netstat -lnp | grep 80 命令查找端口占用情况,发现没有应用占用80端口。。

又把xampp的配置文件修改,改为监听88端口,开启服务还是失败。

于是重启我的linux系统,无效。

查看logs文件夹中的error_log文件,发现如下内容

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
AH00015: Unable to open logs
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
AH00015: Unable to open logs
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
AH00015: Unable to open logs

使用lsof - i:443命令,罪魁祸首是 vmhost 的进程名在占用443端口,但是443又有什么用呢?

在网上找到一个办法,配置文件/opt/lampp/etc/extra/httpd-ssl.conf的端口改为其它,我改成了8443,但是依然无效。。

于是直接修改vmware的配置,最后成功

vmware配置修改方法如下:

 

VMware Workstation有个共享虚拟机的服务,占用了443端口。

  对于单机安装虚拟机来说,这个功能没有用处,禁用掉就可以了。操作步骤如下:

  1、打开VMware Workstation,点击菜单中的“编辑-首选项”;

xamp:Another web server with SSL is already running

  2、找到左侧功能列表中的“共享虚拟机”,选择后,在右侧界面中点击“更改设置”;

xamp:Another web server with SSL is already running

  3、这个时候,本来是disabled的“禁用共享”按钮就被**了,点击“禁用共享”按钮,就可以将这个功能禁用了。

xamp:Another web server with SSL is already running

  4、如果还想使用此功能,可以将443端口修改成446或者其他端口都可以。

 

至于为什么直接修改配置文件/opt/lampp/etc/extra/httpd-ssl.conf,,目前还不清楚

https://blog.csdn.net/zhanghao143lina/article/details/79566666

 

相关文章: