简体   繁体   English

我的 Windows 10 升级后 Apache 无法启动

[英]Apache won't start after my Windows 10 upgrade

I upgraded from Windows 7 to Windows 10. In the Bitnami stack, MySQL is running, but I cannot start Apache as a service when Windows boots up.我从 Windows 7 升级到了 Windows 10。在 Bitnami 堆栈中,MySQL 正在运行,但我无法在 Windows 启动时将 Apache 作为服务启动。 I have tried using the Manager Tool.我曾尝试使用管理器工具。 I have tried many things, including: changed the Listen port and ServerName to 8888 and later to 8118, turned off Windows Defender, looked at files in Apache's logs directory and errors directory (and found no entries), pressed the Launch Bitnami Webstack button (and just got an empty tab).我尝试了很多事情,包括:将侦听端口和服务器名称更改为 8888,然后更改为 8118,关闭 Windows Defender,查看 Apache 的日志目录和错误目录中的文件(并没有发现任何条目),按下启动 Bitnami Webstack 按钮(刚刚得到一个空标签)。 I have Restarted Windows 10 after each change.每次更改后我都重新启动了 Windows 10。

The Application Log in the Manager Tool says: Starting Apache Web Server... Exit code: 1 Stdout:管理器工具中的应用程序日志显示:正在启动 Apache Web 服务器...退出代码:1 标准输出:

Stderr: Unable to start apache Stderr:无法启动apache

How do I get Apache to start in Windows10?如何让 Apache 在 Windows10 中启动? Is there some setting in Windows 10 that is critical to allow Apache to function? Windows 10 中是否有一些设置对于允许 Apache 运行至关重要?

This is probably because the IIS World Wide Web Publishing Service is running.这可能是因为 IIS 万维网发布服务正在运行。

You have to go to start/Execute and write services.msc你必须去启动/执行并编写 services.msc图片

Right click it and stop it.右键单击它并停止它。

Now you should be able to run Apache.现在您应该能够运行 Apache。 You can also disable the start when you right click the service/Propierties您也可以在右键单击服务/属性时禁用启动

Rubber Telly Media directed me to the solution: Rubber Telly Media 指导我解决以下问题:

I had the same problem after upgrade from older Windows 10 to 1903. I couldn't start Apache service, I would get从较旧的 Windows 10 升级到 1903 后,我遇到了同样的问题。我无法启动 Apache 服务,我会得到

error 1067.错误 1067。

I have IIS uninstalled and nothing else blocked port 80 (checked with CurrPorts ).我已经卸载了 IIS,并且没有其他任何东西阻止了端口 80(使用CurrPorts检查)。 I had to change:我不得不改变:

  1. Apache 2.4.38 to Apache 2.4.39 Apache 2.4.38 到 Apache 2.4.39
  2. PHP 7.3.1 to the latest PHP 7, 7.3.8 PHP 7.3.1 到最新的 PHP 7, 7.3.8
  3. configure php.ini again (version 7.3.7 didn't solve my problem).再次配置 php.ini(7.3.7 版没有解决我的问题)。

Make sure your PHP.ini is syntax checked, run it against php.exe in the command prompt window.确保您的 PHP.ini 已检查语法,在命令提示符窗口中针对 php.exe 运行它。 I had the same issue, it was my version of PHP or php.ini was corrupted...我遇到了同样的问题,是我的 PHP 版本或 php.ini 已损坏...

Start Apache from the command line, from apache bin using the httpd command.从命令行启动 Apache,使用 httpd 命令从 apache bin 启动。 It will give you specific details about the problem.它将为您提供有关问题的具体详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM