Apache the requested operation has failed ошибка

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.

asked Jun 24, 2014 at 9:57

testing's user avatar

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.

answered Mar 23, 2018 at 22:53

M.S Shohan's user avatar

1

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

Community's user avatar

answered Jun 13, 2016 at 23:58

kupaff's user avatar

kupaffkupaff

3294 silver badges5 bronze badges

0

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 :)

answered Sep 12, 2019 at 12:46

Helmet_Gaming's user avatar

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

answered Sep 24, 2014 at 11:21

shrey's user avatar

shreyshrey

8331 gold badge7 silver badges15 bronze badges

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.

answered Sep 29, 2014 at 12:04

saj's user avatar

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>

answered May 13, 2015 at 19:03

succeed's user avatar

succeedsucceed

8441 gold badge11 silver badges28 bronze badges

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

answered Oct 4, 2015 at 18:40

user3155354's user avatar

user3155354user3155354

631 gold badge1 silver badge11 bronze badges

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.

answered Jun 5, 2017 at 16:57

dhaval shah's user avatar

I’ve tried closing World Wide Web services, changing a lot of ports and surfing many forums, and eventually I looked in to Logs=>Apache (error.log) files.

1

I saw in this error:

PHP Fatal error: Directive ‘asp_tags’ is no longer available in PHP in Unknown on line 0

2

Then I opened php.ini files in XAMPP. Find with ctrl+f asp_tags=On line and turn it to Off.
All of it then worked.

3

David Buck's user avatar

David Buck

3,75335 gold badges31 silver badges35 bronze badges

answered Oct 13, 2020 at 10:13

Enjoy_Kovboy's user avatar

It occurs sometimes because of the availability of ports. To make it work you can change the port from 80 to 8080 (first check if the 8080 port is free)

now go to the Apache installation folder then the conf folder.
Open the httpd.conf file on a text editor (in my case it is Notepad++)

search for Listen 80
Replace it with Listen 8080

Now restart the Apache again! and hit http://localhost:8080

answered Jul 19 at 9:53

Sagor Chowdhuri's user avatar

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.

answered Jun 10, 2016 at 16:32

Ludus H's user avatar

Ludus HLudus H

2392 silver badges15 bronze badges

Страницы 1 2 3 4 5 Далее

Чтобы отправить ответ, вы должны войти или зарегистрироваться

Лента темы в RSS

Сообщения с 1 по 25 из 112

1 2010-06-22 23:45:31

  • krivetko…
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2010-06-22
  • Сообщений: 3

Тема: Ошибка «the requested operation has failed! «

При запуске, апач  выдает ошибку «the requested operation has failed! » что посоветуете?

2 Ответ от Hanut 2010-06-23 10:50:35

  • Hanut
  • Hanut
  • Модератор
  • На форуме
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,726

Re: Ошибка «the requested operation has failed! «

krivetko…
Смотрите записи в журнале ошибок (error.log). Если там пусто, то попробуйте запустить ярлык «\Apache HTTP Server 2.2\Configure Apache Server\Test Configuration» в меню Пуск.

3 Ответ от krivetko… 2010-06-23 22:07:05

  • krivetko…
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2010-06-22
  • Сообщений: 3

Re: Ошибка «the requested operation has failed! «

в журнале ошибок написано «Ошибка» ну я не удивился, морально уже был готов… урруру)) а в Test Configuration syntex написано — error on line 133

4 Ответ от Hanut 2010-06-24 11:36:57

  • Hanut
  • Hanut
  • Модератор
  • На форуме
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,726

Re: Ошибка «the requested operation has failed! «

krivetko…
Покажите строку 133 httpd.conf

5 Ответ от krivetko… 2010-06-28 17:34:58

  • krivetko…
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2010-06-22
  • Сообщений: 3

Re: Ошибка «the requested operation has failed! «

спасибо, устранил, надо было просто ***@lokalhost дописать. вот теперь другая (_ )( _) стоял денвер, видать криво поставился, я его благополучно снес, терь ставлю заново, а в ответ только первоначальное окно загрузки и все. Что делать хз помогите плиз.

6 Ответ от Hanut 2010-06-29 00:08:10

  • Hanut
  • Hanut
  • Модератор
  • На форуме
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,726

Re: Ошибка «the requested operation has failed! «

krivetko…
По установке Денвера помочь не смогу, но надо подумать что может блокировать установку.

7 Ответ от Aleksandr_A 2010-08-26 01:05:05

  • Aleksandr_A
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2010-08-26
  • Сообщений: 10

Re: Ошибка «the requested operation has failed! «

krivetko… сказал:

При запуске, апач  выдает ошибку «the requested operation has failed! » что посоветуете?

Попробовал через Test Configurator, вышло следующее:

httpd.exe: Syntax error on line 205 of D:/apache/conf/httpd.conf: </Directory> without matching <Directory> section
Note the errors or messages above, and press the <Esc> key to exit.

Апач не запускается

далее с 205 строки

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.html index.htm index.shtml index.php
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch «^\.ht»>
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host’s errors will be logged there and not here.
#
ErrorLog «D:/apache/error.log»

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat «%h %l %u %t \»%r\» %>s %b \»%{Referer}i\» \»%{User-Agent}i\»» combined
    LogFormat «%h %l %u %t \»%r\» %>s %b» common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat «%h %l %u %t \»%r\» %>s %b \»%{Referer}i\» \»%{User-Agent}i\» %I %O» combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
   CustomLog «D:/apache/access.log» common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    #CustomLog «logs/access.log» combined
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server’s namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.somenet.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing «/» apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ «D:/apache/cgi-bin/»

</IfModule>

<IfModule cgid_module>
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock logs/cgisock
</IfModule>

#
# «D:/apache/cgi-bin» should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory «D:/apache/cgi-bin»>
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

помогите пожалуйста разобраться

8 Ответ от DmitryV 2010-08-26 06:26:50 (изменено: DmitryV, 2010-08-26 06:41:28)

  • DmitryV
  • Пенсионер
  • Неактивен
  • Откуда: Санкт-Петербург, Россия
  • Зарегистрирован: 2010-07-31
  • Сообщений: 558

Re: Ошибка «the requested operation has failed! «

Aleksandr_A

Aleksandr_A сказал:

</Directory>

выше покажите код, Вам говарит что Ошибка на строке 205. а не ниже что у Вас нет <Directory> до </Directory>

Aleksandr_A сказал:

Syntax error on line 205 of D:/apache/conf/httpd.conf:  </Directory> without matching <Directory> section

если вы используете Directory то проверьте что есть начинающий тег <Directory> и конечный </Directory>

9 Ответ от Aleksandr_A 2010-08-26 11:06:30

  • Aleksandr_A
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2010-08-26
  • Сообщений: 10

Re: Ошибка «the requested operation has failed! «

DmitryV сказал:

Aleksandr_A

Aleksandr_A сказал:

</Directory>

выше покажите код, Вам говарит что Ошибка на строке 205. а не ниже что у Вас нет <Directory> до </Directory>

Aleksandr_A сказал:

Syntax error on line 205 of D:/apache/conf/httpd.conf:  </Directory> without matching <Directory> section

если вы используете Directory то проверьте что есть начинающий тег <Directory> и конечный </Directory>

Выкладываю код до 205 строки

#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They’re here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned. 
#
# Configuration and logfile names: If the filenames you specify for many
# of the server’s control files begin with «/» (or «drive:/» for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with «/», the value of ServerRoot is prepended — so «logs/foo.log»
# with ServerRoot set to «D:/apache» will be interpreted by the
# server as «D:/apache/logs/foo.log».
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., «c:/apache» instead of «c:\apache»).
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.

#
# ServerRoot: The top of the directory tree under which the server’s
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot «D:/apache»

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule’ lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l’) do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_lock_module modules/mod_dav_lock.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule dumpio_module modules/mod_dumpio.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule logio_module modules/mod_logio.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule ssl_module modules/mod_ssl.so
#LoadModule status_module modules/mod_status.so
#LoadModule substitute_module modules/mod_substitute.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule version_module modules/mod_version.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule php5_module «D:/php/php5apache2_2.dll»
PHPIniDir «D:/php»
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch. 
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon

</IfModule>
</IfModule>

# ‘Main’ server configuration
#
# The directives in this section set up the values used by the ‘main’
# server, which responds to any requests that aren’t handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin webmaster@somenet.com

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn’t have a registered DNS name, enter its IP address here.
#
ServerName localhost:80

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot «D:/apache/htdocs»

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the «default» to be a very restrictive set of
# features. 
#
<Directory />
   Options Includes Indexes FollowSymLinks
   AllowOverride All
   Allow from all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled — so if something’s not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#

10 Ответ от DmitryV 2010-08-26 11:30:24 (изменено: DmitryV, 2010-08-26 11:38:46)

  • DmitryV
  • Пенсионер
  • Неактивен
  • Откуда: Санкт-Петербург, Россия
  • Зарегистрирован: 2010-07-31
  • Сообщений: 558

Re: Ошибка «the requested operation has failed! «

Так 205 строчка идет ниже этого текста? Вы показали до 203 строки, дайте ваш кусок файла с 200 по 210 строки, если на ней после этого текста </Directory> и нет перед этим <Directory> то закоментируйте, проще выложите весь Ваш конфиг ссылкой закачав его на файловый обменник я его Вам исправлю, или свяжитесь со мной через скайп я Вам помогу с настройками сервера.

PS: и

без порта пишите.

11 Ответ от Aleksandr_A 2010-08-26 11:46:20

  • Aleksandr_A
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2010-08-26
  • Сообщений: 10

Re: Ошибка «the requested operation has failed! «

DmitryV сказал:

Так 205 строчка идет ниже этого текста? Вы показали до 203 строки, дайте ваш кусок файла с 200 по 210 строки, если на ней после этого текста </Directory> и нет перед этим <Directory> то закоментируйте, проще выложите весь Ваш конфиг ссылкой закачав его на файловый обменник я его Вам исправлю, или свяжитесь со мной через скайп я Вам помогу с настройками сервера.

PS: и

без порта пишите.

вот ссылка на gigafile http://www.gigafile.ru/qsr22pjvt9ny.html

12 Ответ от DmitryV 2010-08-26 11:50:36 (изменено: DmitryV, 2010-08-26 11:56:16)

  • DmitryV
  • Пенсионер
  • Неактивен
  • Откуда: Санкт-Петербург, Россия
  • Зарегистрирован: 2010-07-31
  • Сообщений: 558

Re: Ошибка «the requested operation has failed! «

Пожалуйста перезалейте на http://www.fayloobmennik.net/ или http://www.sharemania.ru/  с вашего не дает скачать без турбо доступа.

13 Ответ от Aleksandr_A 2010-08-26 12:03:46

  • Aleksandr_A
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2010-08-26
  • Сообщений: 10

Re: Ошибка «the requested operation has failed! «

14 Ответ от DmitryV 2010-08-26 12:08:24

  • DmitryV
  • Пенсионер
  • Неактивен
  • Откуда: Санкт-Петербург, Россия
  • Зарегистрирован: 2010-07-31
  • Сообщений: 558

Re: Ошибка «the requested operation has failed! «

Aleksandr_A

Вот отредактировал — http://www.fayloobmennik.net/110985

Как и писал у вас на 205 строчке был тег </Directory> он лишний.

15 Ответ от Aleksandr_A 2010-08-26 12:21:59

  • Aleksandr_A
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2010-08-26
  • Сообщений: 10

Re: Ошибка «the requested operation has failed! «

Спасибо, апач запустился, конфигуратор говорит Syntax Ok!

16 Ответ от DmitryV 2010-08-26 12:27:50 (изменено: DmitryV, 2010-08-26 12:33:27)

  • DmitryV
  • Пенсионер
  • Неактивен
  • Откуда: Санкт-Петербург, Россия
  • Зарегистрирован: 2010-07-31
  • Сообщений: 558

Re: Ошибка «the requested operation has failed! «

Aleksandr_A
если Вы не планируете что бы ваш сервер был доступен из вне отредактируйте строку

#Listen 12.34.56.78:80
Listen 80

замените на

#Listen 12.34.56.78:80
Listen 127.0.0.1:80

Listen директива настраивает Apache на более чем один IP адрес или порт; по умолчанию он отвечает на запросы на всех интерфейсах IP, если вы планируете только локальное использование не стоит запускать Apache на всех интерфейсах IP Вашего компьютера.

17 Ответ от Aleksandr_A 2010-08-26 12:38:16

  • Aleksandr_A
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2010-08-26
  • Сообщений: 10

Re: Ошибка «the requested operation has failed! «

DmitryV сказал:

Aleksandr_A
если Вы не планируете что бы ваш сервер был доступен из вне отредактируйте строку

#Listen 12.34.56.78:80
Listen 80

замените на

#Listen 12.34.56.78:80
Listen 127.0.0.1:80

Listen директива настраивает Apache на более чем один IP адрес или порт; по умолчанию он отвечает на запросы на всех интерфейсах IP, если вы планируете только локальное использование не стоит запускать Apache на всех интерфейсах IP Вашего компьютера.

Спасибо, исправил.

18 Ответ от Slavik 2010-11-11 00:55:25

  • Slavik
  • Новичок
  • Неактивен
  • Зарегистрирован: 2010-11-11
  • Сообщений: 1

Re: Ошибка «the requested operation has failed! «

У меня выдаёт такую же ошибку, когда включаю Старт…. А когда запускаю через программную панель, в окне пишет- <OS 10013> An attampt was made to access a soket in in way forbidden by its access permission. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Помогите пожалуйста, потратил уже часов 30 и ничего не добился… sad

19 Ответ от Hanut 2010-11-11 01:46:27

  • Hanut
  • Hanut
  • Модератор
  • На форуме
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,726

Re: Ошибка «the requested operation has failed! «

Slavik сказал:

Помогите пожалуйста, потратил уже часов 30 и ничего не добился

Возможно какая-то программа заняла 80 порт. Для начала отключите Скайп, если он установлен, и попробуйте запустить Apache.

Если Скайп не установлен, то поищите программу сидящую на 80 порту введя в командной строке (cmd) следующее:

Если не получится, то опишите операционную систему и версии установленных программ. Желательно имена скаченных дистрибутивов.

20 Ответ от Ann_s 2011-02-04 22:44:00

  • Ann_s
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2011-02-04
  • Сообщений: 5

Re: Ошибка «the requested operation has failed! «

Здравствуйте!
такая же проблема. в error.log куча ошибок
при просмотре Test Configuration пишет:

21 Ответ от Ann_s 2011-02-04 22:47:00

  • Ann_s
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2011-02-04
  • Сообщений: 5

Re: Ошибка «the requested operation has failed! «

«syntax error on line 792 «C:/../../httpd.conf»».посоветуйте что-нить. заранее благодарна

22 Ответ от Hanut 2011-02-04 22:52:23

  • Hanut
  • Hanut
  • Модератор
  • На форуме
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,726

Re: Ошибка «the requested operation has failed! «

Ann_s сказал:

«syntax error on line 792 «C:/../../httpd.conf»».посоветуйте что-нить. заранее благодарна

Найдите в конфигурационном файле Apache (httpd.conf) строку 792 и покажите как она выглядит.

23 Ответ от Ann_s 2011-02-04 23:02:13

  • Ann_s
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2011-02-04
  • Сообщений: 5

Re: Ошибка «the requested operation has failed! «

Hanut сказал:

Ann_s сказал:

«syntax error on line 792 «C:/../../httpd.conf»».посоветуйте что-нить. заранее благодарна

Найдите в конфигурационном файле Apache (httpd.conf) строку 792 и покажите как она выглядит.

792 строка: AddType application/x-httpd-php.php

24 Ответ от Hanut 2011-02-04 23:08:35

  • Hanut
  • Hanut
  • Модератор
  • На форуме
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,726

Re: Ошибка «the requested operation has failed! «

Ann_s сказал:

792 строка: AddType application/x-httpd-php.php

Не хватает пробела. Должно быть так:

AddType application/x-httpd-php .php

25 Ответ от Ann_s 2011-02-04 23:23:16

  • Ann_s
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2011-02-04
  • Сообщений: 5

Re: Ошибка «the requested operation has failed! «

Hanut сказал:

Ann_s сказал:

792 строка: AddType application/x-httpd-php.php

Не хватает пробела. Должно быть так:

AddType application/x-httpd-php .php

спасибо большое!заработало! smile
и еще такой вопрос : apache 2 работает, а apache2.2 выдает ту же ошибку «the requested..»
это можно как-нить исправить тоже?или необязательно?

Страницы 1 2 3 4 5 Далее

Чтобы отправить ответ, вы должны войти или зарегистрироваться

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.

asked Jun 24, 2014 at 9:57

testing's user avatar

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.

answered Mar 23, 2018 at 22:53

M.S Shohan's user avatar

1

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

Community's user avatar

answered Jun 13, 2016 at 23:58

kupaff's user avatar

kupaffkupaff

3294 silver badges5 bronze badges

0

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 :)

answered Sep 12, 2019 at 12:46

Helmet_Gaming's user avatar

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

answered Sep 24, 2014 at 11:21

shrey's user avatar

shreyshrey

8331 gold badge7 silver badges15 bronze badges

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.

answered Sep 29, 2014 at 12:04

saj's user avatar

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>

answered May 13, 2015 at 19:03

succeed's user avatar

succeedsucceed

8441 gold badge11 silver badges28 bronze badges

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

answered Oct 4, 2015 at 18:40

user3155354's user avatar

user3155354user3155354

631 gold badge1 silver badge11 bronze badges

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.

answered Jun 5, 2017 at 16:57

dhaval shah's user avatar

I’ve tried closing World Wide Web services, changing a lot of ports and surfing many forums, and eventually I looked in to Logs=>Apache (error.log) files.

1

I saw in this error:

PHP Fatal error: Directive ‘asp_tags’ is no longer available in PHP in Unknown on line 0

2

Then I opened php.ini files in XAMPP. Find with ctrl+f asp_tags=On line and turn it to Off.
All of it then worked.

3

David Buck's user avatar

David Buck

3,75335 gold badges31 silver badges35 bronze badges

answered Oct 13, 2020 at 10:13

Enjoy_Kovboy's user avatar

It occurs sometimes because of the availability of ports. To make it work you can change the port from 80 to 8080 (first check if the 8080 port is free)

now go to the Apache installation folder then the conf folder.
Open the httpd.conf file on a text editor (in my case it is Notepad++)

search for Listen 80
Replace it with Listen 8080

Now restart the Apache again! and hit http://localhost:8080

answered Jul 19 at 9:53

Sagor Chowdhuri's user avatar

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.

answered Jun 10, 2016 at 16:32

Ludus H's user avatar

Ludus HLudus H

2392 silver badges15 bronze badges

Whenever I try to start apache server on my local development computer I get prompted an error message as follows:

The requested operation has failed

httpd.conf was not tampered with. How do I set it up to work?

Chris S's user avatar

Chris S

78k11 gold badges124 silver badges217 bronze badges

asked Feb 4, 2010 at 15:59

3

This is usually caused by one of two problems:

  1. You already have something running on Port 80. It’s most common that your development box has IIS installed on it, and IIS is using port 80. You can solve this issue by any of:

    • stopping the IIS service («World Wide Web Publishing Service»)
    • changing the binding on the IIS site
    • uninstall IIS (or remove the Feature in Vista/2008 or newer OSes)
  2. The Apache service is disabled. Open services.msc and check the Apache service, make sure it’s not disabled. It should be set to Manual or Automatic start-up, depending on your environment.

answered Jun 5, 2013 at 13:26

Chris S's user avatar

Chris SChris S

78k11 gold badges124 silver badges217 bronze badges

1

Check the path in services.msc relating to Apache (default is Apache2.2 I think) to see if it matches path to your httpd.exe.

That fixed it for me.

answered Feb 21, 2010 at 11:57

Matt's user avatar

MattMatt

3222 gold badges3 silver badges12 bronze badges

2

if apache is not starting and getting error «Requested operation failed»

go to the command prompt : services.msc
search for Apache> right click and select properties.
In the General tab one startup type drop down is there. Change it to Automatic and click Apply.
Then Start button will get enabled.

answered Apr 4, 2013 at 7:56

Muhammed Shihabudeen Labba A's user avatar

2

I followed your instructions on how to install Apache and they worked fine. The server started without problem. Then I installed PHP and restarted Apache. It gave the “Requested Operation Failed” error. Any ideas? Thanks for the work you did.
Greg

A ‘Requested Operation Failed’ error from Apache generally means something is wrong with the configuration file – httpd.conf. It may also result because another program is using port 80.

Sponsored Links

Requested Operation Failed because of httpd.conf

Firstly, make sure that you’ve edited the Apache httpd.conf file properly. Any stray characters will completely ruin the server configuration and prevent it from starting, resulting in a Requested Operation Filed error. Check and double-check the modifications you’ve made to the configuration file. I also suggest rebooting your computer.

Remember you can test the Apache configuration through “Programs” -> “Apache HTTP Server 2.2” -> “Configure Apache Server” -> “Test Configuration“. If things are fine, a terminal window should quickly appear and then disappear.

Conflict between two programs – port 80 usage

The “Requested Operation Failed ” error may also be because of another program using port 80. A case in point is the popular video conferencing program, Skype. To get around this problem, change the port that Skype uses – “Tools” -> “Options” -> “Advanced” -> “Connection” and uncheck “Use port 80 and 443 as alternatives for incoming connections“.

Firewalls and anti-virus programs (Norton) can also be prevent Apache web server from starting up properly.

Conclusion: It seems you have made a mistake while editing the Apache httpd.conf file because of which the web server throws a ‘Requested Operation Failed’ error; remember, it worked fine the first time and failed after PHP was installed.

Related articles

  • Forbidden – you don’t have permission to access file on this server: Apache error
  • Apache server cannot load php5apache2_2.dll file

Понравилась статья? Поделить с друзьями:
  • Apache ошибка 405
  • Apache ошибка 403
  • Apache ошибка 400
  • Apache отключить вывод ошибок
  • Apache вывод ошибок php