The Requested Operation has failed- Apache error

自闭症网瘾萝莉.ら 提交于 2019-12-10 19:29:26

问题


When I'm trying to start the Apache 2.2 server it is showing the following message: The Requested Operation has failed

In command Prompt it is showing as follows:

C:\Documents and Settings\amth>net start apache2.2
The Apache2.2 service is starting.
The Apache2.2 service could not be started.

A service specific error occurred: 1.

More help is available by typing NET HELPMSG 3547.

回答1:


Open run( win + r ) in windows and then type services.msc. Search for Apache service. Double click on the service and select any startup type other than disabled. This should work like a charm.




回答2:


I have wasted a whole day on figuring out why curl_init() threw an undefined-error. Im using Windows, Apache 2.4 and PHP 7.3

After trying to:

  1. Install a fresh version of Curl As described in this post
  2. Enabe Curl in the php.ini file following this description

I still got this error.

The solution was to add the directory of the php e.g c:php/ to the PATH Variable in the Windows environment variables.

->Hit the Windows-Key and S 
-> search for "System"
-> go to advanced options(a small window shuld pop up) 
-> hit environment variables 
-> in the **bottom** box scroll until you find "PATH" 
-> select it and hit "edit" 
-> enter the php directory and close the window 
-> reboot your PC

Hopefully it will work for you too :)




回答3:


Have you done any changes in httpd.conf file ? i was also facing same problem in my case i have saved httpd.conf file as txt so due to that i was getting error




回答4:


Was getting this issue when trying to start Apache with mod_jk. As part of loadmodule in http.conf file LoadModule jk_module modules/mod_jk.so was added but in Apache2.2\modules folder mod_jk.so file was not available. Added mod_jk.so file to modules folder and apache started without any issues.




回答5:


Here is what I did - if you uninstall and reinstall apache via command prompt it

httpd -k unistall/httpd -k install

then it displays the errors

in my case the require all was missing 'granted' at the end of to look like 'require all granted'

<Directory />
    AllowOverride all

    Require all 

</Directory>



回答6:


If your lan ip changed then you would come across this error. In the httpd conf file you to rectify the following: Listen IP:Port




回答7:


Open conf folder then open httpd.conf file in your text editor. Find this line:

Listen 12.34.56.78:80

Listen 80 and change it to

Listen 12.34.56.78:80

Listen 8080

Then hit save




回答8:


I ran into the same error message on Windows Server 2008 R2. I was using SSL and realized that my signer certs, configured in ssl.conf, where placed in the wrong folders on the file system. I placed the certs in the correct spot and the service and Apache was working fine afterwards.




回答9:


In my case Apache 2.4 is worked on Win7Pro 64bit. Last week it worked fine but today I was unable to start it as usually. I tried to check logs for errors but no clue. Then I went to Control panel -> Administrative tools -> Services and found there Apache service was disabled!? Click on property, set Startup type to manual and - voila! It started like charm.



来源:https://stackoverflow.com/questions/24383633/the-requested-operation-has-failed-apache-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!