ubuntu下装xampp apache无法启动了,求助高手指点

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu下装xampp apache无法启动了,求助高手指点相关的知识,希望对你有一定的参考价值。

点击右侧的Netstat查看下80和443是不是被占用了
1.80Port被占用的情况(这是最常见的)两步解决
1)\XAMPP\apache\conf\ 这个目录下的httpd.conf 文件中 所有80换成82(或88等随意)
2)\XAMPP\apache\conf\extra\ 这个目录下的 httpd-vhosts.conf 所有80换成82(或88等随意)
如此这般80被占就解决了

2.443被占情况
\XAMPP\apache\conf\extra\ 这个目录下的 httpd-ssl.conf 所有443换成445(或其他等随意)
参考技术A 1、运行-cmd,然后输入netstat -ano,回车;
2、查看本地地址中包含xx.xx.xx.xx:80的那一行的pid,为几个数字,把这几个数字记下来;
3、启动“任务管理器”——“进程”,在工具栏——“选择列”前面的框打上勾;
4、然后查看与刚才那个pid对应的是哪个程序,很容易就会找到,就是它占用了80端口;
5、直接将其停止或者使用优化大师等工具使之开机不启动。

Apache xampp 无法启动

【中文标题】Apache xampp 无法启动【英文标题】:Apache xampp does not start 【发布时间】:2018-02-28 20:38:34 【问题描述】:

我遇到了 xampp 和 Apache 以及 Apache 无法启动的老问题。 这是一台运行 xampp-win32-5.6.31-0-VC11 的 Windows 10 机器。我也试过 7.1.9-0-VC14 有同样的问题。 问题是:

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

xampp 上的日志文件为空。 我在配置文件(在互联网上找到)中将端口 80 更改为 8080 和 443 更改为 4433。我检查了 netstat 工具(在 xampp 和 powershell 上)。 xampp 上的 netstat 在端口 80、8080、443 或 4433 上没有显示任何内容。 powershell 上的 netstat -aon 给出了一个长输出,这里只有“80”:

TCP    192.168.88.125:49203   185.22.69.180:80       TIME_WAIT       0
TCP    192.168.88.125:65508   185.22.69.180:80       TIME_WAIT       0

还有这里唯一的“443”:

TCP    10.145.128.214:64112   10.144.187.242:443     TIME_WAIT       0
TCP    192.168.88.125:49320   40.77.229.18:443       ESTABLISHED     6728
TCP    192.168.88.125:49694   40.77.229.47:443       ESTABLISHED     6728
TCP    192.168.88.125:63719   2.20.161.124:443       CLOSE_WAIT      10168
TCP    192.168.88.125:64019   151.101.65.69:443      ESTABLISHED     2080

因此,在 xampps 上的 netstat 或 powershell 上的 netstat 上都不会出现 8080 或 4433。

有什么想法可能会出错吗? 顺便说一句:我没有管理员权限。但我知道具有相同权限的人能够运行 xampp。 我能够以非常接近管理员权限的方式运行安装程序——我可以准确地找出这些权限是什么。 我确实使用这些权限运行了 xampp 安装程序。

【问题讨论】:

【参考方案1】:

我无法添加评论,所以在回答部分提问。

您是否在系统上运行 Skype 或任何代理?

【讨论】:

Skype 正在运行,但我无法对其进行配置。根据 netstat 视图,端口 80、端口 8080、端口 443 和端口 4433 都不会被阻塞,如上所示。端口已在配置文件中配置为 8080 和 4433。 8080端口好像没问题,上面运行了一个zeppelin安装(注意:我没有同时运行zeppelin server和xampp apache)。

以上是关于ubuntu下装xampp apache无法启动了,求助高手指点的主要内容,如果未能解决你的问题,请参考以下文章

windows2003下装的apache,但是现在httpd.exe给禁止启动了,怎么开启?

安装xampp,apache无法启动

无法在 XAMPP 上启动 Apache

无法在 ubuntu 中启动 phpmyadmin

Apache xampp 无法启动

xampp 无法在 ubuntu 12.04 中启动?