关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。
想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。
7年前关闭。
Improve this question
我在 Windows 8.1 中安装家庭个人 LAMP 开发服务器时遇到问题。
我尝试在 Windows 8.1 上手动安装 Apache、MySQL 和 PHP。似乎 Apache 和 MySQL 都安装正确,因为我可以在 MySQL 中执行“选择数据库”,并且 localhost 说了一些大意为“如果您看到此消息,则表示 Apache 安装正确”。
当我尝试启动 Apache2 服务时,它说:
The requested operation has failed.
但是,服务在我安装后就启动了。只有在重新启动后它才开始给我这个错误并拒绝启动。
我想知道为什么这这么麻烦?我完美地遵循了说明,但它没有给我预期的结果。
规范
OPERATING SYSTEM:
Windows 8.1 64-bit
APACHE SERVER:
httpd-2.0.65-win32-x86-openssl-0.9.8y.msi
MYSQL SERVER:
mysql-installer-community-5.6.19.0.msi
PHP for Windows:
php-5.3.28-Win32-VC9-x86.msi VC9 x86 Thread Safe (2013-Dec-12 01:59:01)
一些最后的笔记
"The problem seems to by [sic] that there are numerous versions of Apache and PHP. Most combinations of them are incompatible with each other. Support does not seem to have been kept remotely up to date and the documentation is terrible. Vital information is missing and in places it seems to be inaccurate. This paper describes what worked mid 2013."
因此,至少有一个人知道并且能够表达和写出冲突。然而,我没有发现其他资源可以逐步解决这个问题,“这是你应该做的,这就是为什么”以及“不要这样做,因为”的方式。这种最接近的警告是确保您正在安装该软件的“线程安全”版本,我就是。
来源
Installing Apache 2.2.22, Php 5.3.26 and Mysql 5.6.12 Microsoft
Publisher: 3dmasters
Published: Jun 28, 2013
https://www.youtube.com/watch?v=UKbEzmMliNMInstalling Apache and PHP on Windows
Author: John McMillan
Published: July 25, 2013
http://johnrmcmillan.wordpress.com/2013/07/25/installing-apache-and-php-on-windows./
最佳答案
您正在使用 Apache 2.0 VC6 构建和 PHP 5.3 VC9 构建。这些构建至少必须匹配;您不能让 Apache VC6 加载 PHP VC9 模块/扩展。而且我什至不确定 Apache 2.0 是否可以将 PHP5 加载到 5.2 以上。
这些旧版本有原因吗?
But, the service started after I installed it just fine. Only after a reboot did it start giving me this error and refusing to start
以管理员模式打开命令行(右键cmd.exe,选择以管理员身份运行),执行:
httpd -t
httpd -k start
它会输出问题。
如果它说明无法绑定(bind)到端口 80,请检查本指南中概述的服务:
Opening Up Port 80 For Apache to Use On Windows
unless somebody can tell me unequivocally that there is absolutely no way even a seasoned programmer/computer specialist/network administrator can manually install Apache/MySQL/PHP on Windows 8.1
如果您真的想让它完全工作并针对所有边缘情况进行纠正,至少需要几天到几周的时间。否则,您应该查看 Xampp、WampServer、WampDeveloper Pro(非免费)、EasyPHP。
关于php - 在 Windows 8.1 上安装 Apache、PHP、MySQL - Apache 无法启动 - 请求的操作失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24075025/