Apache不从XAMPP控制面板运行 [英] Apache is not running from XAMPP Control Panel

查看:166
本文介绍了Apache不从XAMPP控制面板运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了XAMPP在Windows 7上成功(XAMPP-win32-1.8.2-0-VC9-Installer.exe的)。但不幸的是,从XAMPP控制面板运行Apache时发现了以下错误:

I have installed XAMPP (xampp-win32-1.8.2-0-VC9-installer.exe) on Windows 7 successfully. But unfortunately, the following error was found during running Apache from XAMPP Control Panel:

下午5点38分38秒[阿帕奇]错误:Apache的意外关闭。
下午5时38分38秒[阿帕奇]这可能是由于阻塞端口,缺少的依赖,
下午5时38分38秒[阿帕奇]不当特权,崩溃,或者通过其他方法关闭。
下午5时38分38秒[阿帕奇] preSS日志按钮来查看错误日志和检查
下午5时38分38秒[阿帕奇] Windows事件查看器的更多线索
下午5时38分38秒[阿帕奇]如果你需要更多的帮助,复制和发布此
下午5时38分38秒[阿帕奇]在论坛上整个日志窗口

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

推荐答案

有这个问题很多可能的答案。最常见的和最有可能的是,你正在运行另一个程序是阻止端口80或443。如果你已经安装Skype,那么你已经找到了你的问题!改变Apache的端口设置为81和Apache会工作。有一个很好的教程上要检查这一点,你可以通过点击开始菜单,然后键入CMD打开你的命令行,输入命令

There are many possible answers for this problem. The most common and most likely is that you're running another program which is blocking port 80 or 443. If you've installed Skype, then you've found your problem! Change apache's port settings to 81 and apache will work. There's a good tutorial on that To check this you can open up your command line by clicking the start menu, and typing 'cmd', and enter the command

    netstat -nab

这港岛线返回程序的列表,将隐约类似于这种模式

this wil return a list of programs that will vaguely resemble this pattern

    [someprogram.exe]
    UDP     [fe80::numbers:numbers:numbers:numbers%numbers]:portnumber

您需要找到一个行(或线)在截至:80,为了启动Apache终止它们。如果没有线在截至:80,有更多的事情可以做。

You need to find a line (or lines) ending in :80 and terminate them in order to start apache. If there is no line ending in :80, there are more things you can do.

首先,导航到XAMPP的目录(默认为c:\\ XAMPP),然后双击apache_start.bat。这将打开一个COMAND行并返回关于为什么阿帕奇无法运行更详细的错误。最主要的是,在寻找,你可以通过编辑你的httpd.conf或的httpd-ssl.conf中的文件创建了语法错误。这是很容易做到,如果你已经编辑它,是一个新的用户。

First, navigate to xampp's directory (default is c:\xampp) and double click apache_start.bat. This will open up a comand line and return more detailed errors about why apache can't run. Mostly, be looking for syntax errors that you could've created by editing your httpd.conf, or httpd-ssl.conf files. This is very easy to do if you've edited it and are a new user.

如果还是失败,你最后的希望是通过单击日志选项卡上的Apache的行中的XAMPP控制面板,点击错误日志检查Apache的错误日志。

If still this fails, your last hope is to check the apache error log by clicking on the logs tab in apache's row in the xampp control panel and clicking error log.

如果没有这事,你们就不要放弃!你有这个!

If none of this works, don't give up! You got this!

编辑:如果您更改的Apache的端口,你也将进入httpd.conf文件(位于XAMPP /阿帕奇/ conf目录)和近线184​​,替换

If you change the port of apache, you will also have to go into httpd.conf (located in xampp/apache/conf) and near line 184, replace

服务器名本地主机:80

服务器名本地主机:81

也可以在本地主机的URL中指定端口81,即

It is also possible to specify port 81 in the url of your localhost, i.e.

本地主机:81 / my_project.php

localhost:81/my_project.php

这篇关于Apache不从XAMPP控制面板运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆