xampp:Apache Web 服务器已停止

Ron*_*ker 1 xampp

我使用的是 Ubuntu 14.04。我已经安装了xampp。当我打开 xampp 控制面板(作为 root/另一个用户)时,所有服务在我单击“启动”时开始运行,除了 Apache WebServer。我该怎么做才能让它开始?

Jos*_*Jos 7

首先,验证该服务尚未运行:

sudo service apache2 status
Run Code Online (Sandbox Code Playgroud)

如果它正在运行,要停止它,请执行以下操作

sudo service apache2 stop
Run Code Online (Sandbox Code Playgroud)


小智 6

这对我有用

  1. 打开文件/opt/lampp/etc/httpd.conf
  2. 找到Listen 80并将其更改为其他端口(例如Listen 8000
  3. 打开文件/opt/lampp/etc/extra/httpd-ssl.conf
  4. 找到Listen 443并将其更改为其他端口(例如Listen 4431
  5. 打开文件/opt/lampp/lampp
  6. 搜索testport 80并将其替换为testport 8000。也testport 443改为testport 4431.
  7. 现在运行/opt/lampp/lampp start(现在可以运行了)。