由于在phpeclipse中没有安装xampp ,而是使用APMServ5.2.6 下的apache,在 phpeclipse中启动apache 时,报如下错误:
[Wed Jan 09 00:07:54 2013] [error] (OS 2)系统找不到指定的文件。 : No installed service named "Apache2.2".
解决方法如下:
用于原来的apache 没有安装为服务 所以启动的时候报找不到服务。
进入到apache 的bin 目录,执行如下命令设置apache 为服务,然后重启即可。如下:
D:\mysoft\APMServ5.2.6\Apache\bin>httpd.exe -k install
Installing the Apache2.2 service
The Apache2.2 service is successfully installed.
Testing httpd.conf....Errors reported here must be corrected before the service can be started.
D:\mysoft\APMServ5.2.6\Apache\bin>httpd.exe -k start
D:\mysoft\APMServ5.2.6\Apache\bin>httpd.exe -k stop
The Apache2.2 service is stopping.The Apache2.2 service has stopped.
D:\mysoft\APMServ5.2.6\Apache\bin>
[Wed Jan 09 00:07:54 2013] [error] (OS 2)系统找不到指定的文件。 : No installed service named "Apache2.2".
解决方法如下:
用于原来的apache 没有安装为服务 所以启动的时候报找不到服务。
进入到apache 的bin 目录,执行如下命令设置apache 为服务,然后重启即可。如下:
D:\mysoft\APMServ5.2.6\Apache\bin>httpd.exe -k install
Installing the Apache2.2 service
The Apache2.2 service is successfully installed.
Testing httpd.conf....Errors reported here must be corrected before the service can be started.
D:\mysoft\APMServ5.2.6\Apache\bin>httpd.exe -k start
D:\mysoft\APMServ5.2.6\Apache\bin>httpd.exe -k stop
The Apache2.2 service is stopping.The Apache2.2 service has stopped.
D:\mysoft\APMServ5.2.6\Apache\bin>