[英]Another web server is already running. XAMPP apache [UBUNTU]
I installed XAMPP in my Ubuntu version.我在我的 Ubuntu 版本中安装了 XAMPP。 I start apache with:我开始阿帕奇:
sudo /opt/lampp/lampp start
and I read in my console this error:我在我的控制台中读到这个错误:
Another web server is already running
So I think to modify the port's values httpd.conf
and httpd-ssl.conf
, in details I have mofidy port:所以我想修改端口的值httpd.conf
和httpd-ssl.conf
,详细我有 mofidy 端口:
80--->1580 (httpd.conf)
443-->4443 (httpd-ssl.conf)
I closed apache with:我关闭了apache:
sudo /etc/init.d/apache2 stop
And After I do:在我这样做之后:
sudo /opt/lampp/lampp start
But I obtain:但我得到:
[APACHE] Another web server is already running [APACHE] 另一个网络服务器已经在运行
Anyone can help me?任何人都可以帮助我吗?
Here's how i solved it on Pop OS:这是我在 Pop OS 上解决它的方法:
Run sudo netstat -nap | grep:80
运行sudo netstat -nap | grep:80
sudo netstat -nap | grep:80
to get the pid of what's running on port 80 sudo netstat -nap | grep:80
获取在端口 80 上运行的进程的 pid
You should get an output similar to:您应该得到类似于以下内容的输出:
tcp6 0 0:::80:::* LISTEN 1166/apache2 tcp6 0 0:::80:::* 收听 1166/apache2
Note the pid.注意 pid。 In this case apache2 is running on pid 1166在这种情况下,apache2 在 pid 1166上运行
Run sudo kill 1166
.运行sudo kill 1166
。 Be sure to replace 1166 with the actual pid from the output of command 1.请务必将 1166 替换为命令 1 输出中的实际 pid。
Start apache again sudo /opt/lampp/lampp start
.再次启动 apache sudo /opt/lampp/lampp start
。 This time it should start with no problems.这次应该没有问题了。
sudo /etc/init.d/apache2 stop sudo /etc/init.d/apache2 停止
sudo /etc/init.d/mysql stop sudo /etc/init.d/mysql 停止
sudo /etc/init.d/proftpd stop sudo /etc/init.d/proftpd 停止
Then restart然后重启
sudo /opt/lampp/lampp start sudo /opt/lampp/lampp 开始
You can try:你可以试试:
sudo su
Type your password:输入您的密码:
/etc/init.d/apache2 stop
[ ok ] Stopping apache2 (via systemctl): apache2.service. [确定]停止apache2(通过systemctl):apache2.service。
After that, you can try to run it again by typing:之后,您可以尝试通过键入再次运行它:
sudo /opt/lampp/xampp start
Starting XAMPP for Linux 7.2.9-0...正在为 Linux 7.2.9-0 启动 XAMPP...
XAMPP: Starting Apache...ok. XAMPP:启动 Apache...好的。
XAMPP: Starting MySQL...ok. XAMPP:启动 MySQL...好的。
XAMPP: Starting ProFTPD...ok. XAMPP:启动 ProFTPD...好的。
I had such a problem, I tried everything.我遇到了这样的问题,我尝试了一切。 Finally, I disabled ssl for Apache and it worked.最后,我为 Apache禁用了 ssl并且它起作用了。
[root@localhost lampp]# /opt/lampp/xampp disablessl
I am getting the same problem ( another web server already runing ) 我遇到了同样的问题( 另一个Web服务器已在运行 )
write this code in terminal 在终端中编写此代码
/opt/lampp/xampp disablessl
then check for the apache 然后检查 apache
sudo /opt/lampp/xampp start
Starting XAMPP for Linux 7.2.5-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...already running.
XAMPP: Starting ProFTPD...already running.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.