Error starting Apache / xampp command line: AH00436: There is no installed service with the name "Apache2.4"

I installed the Apache server on Windows 7 Pro with Xampp distribution. Apache starts up fine from the XAMPP control panel, but I want to be able to manage it from the command line. When I try to run it from the command line, I get the following error:

C:\>httpd -k start [Fri Jun 14 13:21:59.055815 2013] [mpm_winnt:error] [pid 6344:tid 144] (OS 2)The system cannot find the file specified. : AH00436: No installed service named "Apache2.4".

I tried changing the Listen port in httpd.conf. It does not change anything. Any clues?

Thanks.

+11
source share
8 answers

I had exactly the same problem with "AH00436: There is no installed service named" Apache2.4 "" after I downloaded Apache 2.4 for Windows and tried to start it for the first time.

The solution was very simple. You will receive an error message when you try to manually start the web server using "httpd -k start", but the service has not yet been defined.

just run "httpd -k install" and the windows service is added to the registry. after that, "httpd -k start" works without an error message.

+26
source

I just got a similar error message while executing the same command, but in my case I just installed wamp from http://www.wampserver.com/en/

C: \ wampserver \ bin \ apache \ apache2.4.9 \ bin> httpd -k start [Mon 29 September 14: 27: 05.203039 2014] [mpm_winnt: error] [pid 10720: tid 424] (OS 2) The system cannot find specified file. : AH00436: A service named "Apache2.4" is not installed.

I found that when I used the "-n" switch on the command line to include the Apache web server service name, it would work.

C: \ wampserver \ bin \ apache \ apache2.4.9 \ bin> httpd -n wampapache64 -k start

Therefore, it seems to me that if the service name is not enabled using the "-n" switch on the command line, it is assumed that the name of the service to start is "Apache2.4". In my case, I did not have a service called Apache2.4, so the command failed. I really have a wampapache64 service, so when I specified this service name on the command line, it started without errors.

+5
source

I solved the problem by installing apache service. For apache, when I went to Apache -> Service, I couldnโ€™t even start the service because these lines were disabled ... so I installed the service, the line below the horizontal rule line.

Apparently, my apache did not allow access on my computer ... (This is when a window pops up after installing the service with the request "Allow access" for apache on the computer)

Hope this helps.

Update I use wamp, not xampp.

+1
source

Here is the solution for your above error:

Change the ServerRoot and DocumentRoot directives in the httpd.conf file along the default path (c: \ Apache24) to the zip installation path (current path to extract the zip file of apache24)

ServerRoot "D: \ httpd-2.4.4-win32 \ Apache24"

DocumentRoot "D: \ httpd-2.4.4-win32 \ Apache24 \ htdocs"

After that, restart the server and try to open the default page http://example.com : Please let me know your status on this

Thank you Amarnath Paul and Bhaskar

0
source

I had the same problem and solved it in two steps:

  • First of all, make sure Apache 2.4 is installed as a service. You can do this by running the Xampp control panel as an administrator and clicking the icon in the "service" column.

  • By default, Apache uses 2 ports: 80 and 443. You must be sure that these ports are free. In my case, I had port 443 (SSL). You can change this by changing the Listen port to conf / httpd.conf (for the standard port) and conf / extra / httpd-ssl.conf (for the SSL port).

Good luck Hey.

0
source

If you installed Skype, make sure it uses the "alternative ports", since it will occupy port 80. If you leave Skype and try to start Wamp, this may work. This was my problem when trying to manually start the httpd service and get this error.

0
source

The same problem happened to me. When I check using httpd.exe -e warn this shows an error.

Usually only one use of each socket address is allowed (protocol / network address / port): AH00072: make_sock: cannot be associated with the address [::]: 80

Usually only one use of each socket address is allowed (protocol / network address / port): AH00072: make_sock: cannot be associated with address 0.0.0.0:80

So the error in my case was a few Listen entries along with Listen 80 in httpd.config . I just comment on #Listen 80 and restart the service, and the problem is resolved.

0
source

1) in the Xampp control panel -> config -> Apache (httpd.conf)

Listen 80

ServerName localhost:80

<Directory/> AllowOverride none Require all denied </Directory>

<Directory "C: /xampp/htdocs">... Require all granted </Directory>

<Files ".ht*"> Require all denied </Files>

<Directory "C: /xampp/cgi-bin"> AllowOverride All Options None Require all granted </Directory>

2) in the Xampp control panel -> config -> Apache (httpd-ssl.conf)

Listen 443

<VirtualHost _default_:443>

ServerName localhost:443

3) in the Xampp control panel -> config -> Apache (httpd-xampp.conf)

<Directory "C: /xampp/php"> AllowOverride None Options None **Require all denied** <Files "php-cgi.exe"> **Require all granted** </Files> </Directory>

<IfModule alias_module>

Alias/licenses "C: /xampp/licenses/"

<Directory "C: /xampp/licenses"> Options +Indexes <IfModule autoindex_color_module> DirectoryIndexTextColor "#000000" DirectoryIndexBGColor "#f8e8a0" DirectoryIndexLinkColor "#bb3902" DirectoryIndexVLinkColor "#bb3902" DirectoryIndexALinkColor "#bb3902" </IfModule> **Require all granted** ErrorDocument 403/error/XAMPP_FORBIDDEN.html.var </Directory>

Alias/phpmyadmin "C: /xampp/phpMyAdmin/"

<Directory "C: /xampp/phpMyAdmin"> AllowOverride AuthConfig **Require all granted** ErrorDocument 403/error/XAMPP_FORBIDDEN.html.var </Directory>

Alias/webalizer "C: /xampp/webalizer/"

<Directory "C: /xampp/webalizer"> <IfModule php7_module> <Files "webalizer.php"> php_admin_flag safe_mode off </Files> </IfModule> AllowOverride AuthConfig **Require all granted** ErrorDocument 403/error/XAMPP_FORBIDDEN.html.var </Directory>

</IfModule>

4) Locate cmd.exe and right-click to select run as administrator.

5) Enter cd C:\xampp\apache\bin (installation path for Xampp)

6) Enter httpd -k install

7) Enter httpd -k start

8) Launch Apache

0
source

Source: https://habr.com/ru/post/947337/


All Articles