---
title: "Apache安装后无服务 以及 the requested operation has failed"
author: "feng88724"
date: "2009-10-15T21:37:55Z"
tags: ["Apache", "IIS", "PHP"]
slug: "apache-the-requested-operation-has-failed"
draft: false
lastmod: "2009-10-15T22:25:54Z"
id: 491817
url: "https://feng88724.iteye.com/blog/491817"
---

可能很多在安装Apache与php的配置过程，遇到了此问题。


1.首先Apache安装无服务解决方法：

命令行进入apache目录下的bin ，运行如下指令即可注册服务，如：

D:\Program Files\Apache Software Foundation\Apache2.2\bin> httpd.exe -k install -n apache2.2

 

2. the requested operation has failed错误解决方法：

在找到httpd.conf文件，修改Listen 80为没被占用的端口
也有可能是http.conf文件中配置错误
另外还有一个原因，也是比较容易忽略的原因，就是php的版本

注意php 5.3 VC6版本是for Apache, VC9版本是for IIS。

如果还有错，使用调试指令启动Apache，看看错误信息吧！
