我使用的是XAMPP,我可以启动Apache,但是MySQL(phpMyAdmin)启动!

当我开始的时候,我得到这个错误;

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

我搜索了一下,在Config->Service and Port Setting中更改了Apache的端口.我有过;

Service name: Apache 2.4
Main port: 122
SSL port: 444

我还卸载了Skype(Windows 8/10/Metro版本).什么都没用.在我的httpd.conf份文件中;

Listen 122
ServerName localhost:122

我从apache_start.bat开始,然后得到;

(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions.  : AH00072: make_sock: could not bind to address [::]:445
(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions.  : AH00072: make_sock: could not bind to address 0.0.0.0:445
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

Please note that all the log files don’t exists!

推荐答案

Update: 15th May, 2018:

最新的Windows 10更新(重新)激活了World Wide Web Publishing Service(德语:WWW-Publishingdienst).这可能取决于您在配置之后可以进行的更新时 Select 的选项.

Update: 4th August, 2015:

如果你已经完成了Windows 10的干净安装,你可能没有Word Wide Web Publishing Service.在这种情况下,简单的WAMP/XAMPP安装应该可以正常工作.

如果没有,请try 安装100,然后重新安装WAMP/XAMPP.


我在WAMP上也遇到了类似的问题.在Windows 10 TP中,Word Wide Web Publishing Service是预装的.这与IIS有关,如果不需要,可以将其删除.

这会阻塞端口80,使Apache行为异常.您可以执行以下操作,然后重试.

  • 转到开始,键入services.msc
  • 在服务窗口中向下滚动以查找World Wide Web Publishing Service.
  • 右键点击它, Select Stop.

这将使端口80可用,重新启动WAMP/XAMPP将使您启动并运行!

还有其他方法可以解决这个问题.见100.

Php相关问答推荐

如何使用URL链接(mdl)切换选项卡

如何让PHP变量跨越多个脚本调用?

允许在WooCommerce管理员优惠券列表中显示自定义优惠券类型

在WooCommerce中的本地收件发货方式下添加一个 Select 字段

免费送货柜台,考虑到折扣码

将一个按钮添加到WooCommerce产品的管理视图中,该按钮链接到一个自定义的WebHook,并在末尾附加产品ID

服务器迁移后无法上载文件-可能存在权限问题

使用ESI的Symfony Sulu清漆

根据WooCommerce Cart小计阈值自动应用优惠券

如何按类别过滤自定义帖子类型

在WooCommercestore 页面上显示库存产品属性的值

Mockery在模拟Redis连接时抛出错误:Mockery\Exception\BadMethodCallException

添加不存在的订单元数据以扩展WooCommerce管理订单搜索

WooCommerce 中一件免费产品的数量折扣

根据页面的最后修订日期设置 MediaWiki 内部链接的样式

Woocommerce API 的 PHP Curl 附加参数

用于检测此模式的正则表达式:something;something=something,something=something... 未知次数

来自命令行的 PHP 没有给出正确的结果

如何通过本地主机在同一台 PC 上同时运行 Microsoft IIS 和 WAMP

fopen 功能不断向我发送我重新加载网页时已发布的重复版本的表单