Apache 7024 ошибка

System:

  • Windows 10 x64 (enterprise computer with some restrictions)
  • Apache 2.4 64-bit
  • Python 3.7.1 64-bit
  • mod_wsgi (built today from github using python setup.py install)

I am working on getting an Apache server with Python on a Windows machine and I have the server configured correctly in order to get the Hello World! example from mod_wsig documentation working.

If I simply launch C:\Apache24\bin\httpd.exe, this works and I see Hello World at http://localhost:5000/

Then I wanted to get it running as a service, so I call

httpd.exe -k install

In the ApacheMonitor I start the new Apache2.4 service but I get a failed to start error. In the Windows system event log it says Event ID: 7024 with a service specific error: Incorrect function.

When I run httpd.exe -k start -n "Apache2.4" -t it says Syntax OK

What I can’t find is any more information about the service error. Nothing populates in the error.log file and I don’t know where else to look, and I am asking for any further information on how to diagnose this.

Before I started configuring Apache to use mod_wsgi, launching the service was successful, so this happened after doing that, and I haven’t configured anything else at this point.

asked Oct 24, 2018 at 21:33

Vince W.'s user avatar

9

Go to the Command Prompt move to the apache/bin folder and type

>httpd -t

This will give you more information about the error preventing Apache from start.

answered May 12, 2021 at 20:28

lisandro's user avatar

lisandrolisandro

4644 silver badges12 bronze badges

1

I was getting this error after updating my httpd.conf file. The problem was that my final xml tag in httpd.conf was unclosed </directory without the closing >.

answered Oct 5, 2021 at 13:08

stackhouse's user avatar

This days I was facing the same situation, windows 10, apache24, django app, python3.8, failing to start as service, service events showing error 7024…

So, after a lot of struggling and research, I would like to add my solution even this is an old question.

The solution was to add two environment variables, no in httpd.conf, not in python code/conf but at SO level (windows > environment variables)

PYTHONHOME = c:\your\path\to\installed\python

PYTHONPATH = c:\your\path\to\installed\virtualenv

And magic! apache now works as service and the django app is always available on localhost

answered Nov 11, 2022 at 4:49

Peter's user avatar

PeterPeter

553 silver badges10 bronze badges

Ошибка запуска АПАЧИ ☑ 0

lite777

18.10.22

15:19

Здрасвтвуйте , вин 10 в домене, локальные права админа есть, не стартует как служба

Служба «Apache2.4» завершена из-за следующей внутренней ошибки:

Неверная функция.7024

Installing the ‘Apache2.4’ service

The ‘Apache2.4’ service is successfully installed.

Testing httpd.conf….

Errors reported here must be corrected before the service can be started.

(OS 10013)╤фхырэр яюя√Єър фюёЄєяр ъ ёюъхЄє ьхЄюфюь, чряЁх∙хээ√ь яЁртрьш фюёЄєяр.  : AH00072: make_sock: could not bind to address [::]:80

(OS 10013)╤фхырэр яюя√Єър фюёЄєяр ъ ёюъхЄє ьхЄюфюь, чряЁх∙хээ√ь яЁртрьш фюёЄєяр.  : AH00072: make_sock: could not bind to address 0.0.0.0:80

AH00451: no listening sockets available, shutting down

AH00015: Unable to open logs

1

mikecool

18.10.22

15:22

ты файл конфига поправил? адреса указал?

2

lite777

18.10.22

15:25

(1) Нет , а что там нужно сделать ?

3

Йохохо

18.10.22

15:26

написано же, не может занять порт 80

netstat -anbt

4

mikecool

18.10.22

15:27

(2) зайти в httpd.conf, почитать комменты, поправить где надо

5

PR

18.10.22

15:27

6

lite777

18.10.22

15:30

возможно энидеском занят 80

7

Йохохо

18.10.22

15:31

(6) команду выполни и посмотри кем

8

lite777

18.10.22

15:33

TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       4

9

lite777

18.10.22

15:37

sysstem 4 id

10

arsik

18.10.22

15:46

(9) Попробуй зайти на http://localhost/ — что увидишь?

11

lite777

18.10.22

15:50

(10)Страница не найдена ,

12

lite777

18.10.22

15:54

Может брэндмуэр ?

13

arsik

18.10.22

16:02

(12) Нет. У тебя же порт открыт и на нем кто то сидит.

Через повершелл что покажет?

Get-NetTCPConnection -LocalPort 80

14

Kassern

18.10.22

16:03

Вполне возможно у ТС запущен IIS на 80 порту, поэтому апач идет лесом)

15

arsik

18.10.22

16:09

(14) Ну тогда бы отдельный процесс IIS был, а у него «sysstem 4 id»

16

lite777

18.10.22

16:10

LocalAddress                        LocalPort RemoteAddress                       RemotePort State       AppliedSetting OwningProcess

————                        ——— ————-                       ———- ——       ————— ————-

::                                  80        ::                                  0          Listen                     4 (13)

17

lite777

18.10.22

16:12

(13)

LocalAddress                        LocalPort RemoteAddress                       RemotePort State       AppliedSetting OwningProcess

————                        ——— ————-                       ———- ——       ————— ————-

::                                  80        ::                                  0          Listen                     4

18

arsik

18.10.22

16:16

(17) Ну так это у тебя на ipv6 висит. Система почему то там висит. Вирус наверно :)

Для начала в апаче отключи ipv6, должен завестись.

А потом уже ищи по какой такой неведомой причине у тебя порт чем то занят.

Еще попробуй в браузере вот по этому адресу сходить http://[::]/

19

Kassern

18.10.22

16:23

(18) «http://[::]/» — а что это за адрес такой?

20

arsik

18.10.22

16:26

(19) это аналог 127.0.0.1 для ipv6.

Но я погуглил и действительно IIS висит от имени системы. Так что это скорее всего он.

21

lite777

18.10.22

16:38

Товарищи ,удалил в уст прогах -удал помошник  вин, и удал стол телеграм чтоли , перезагрузился первый раз после уст апича It works! ,спасибо всем ! Вроде пошло

System:

  • Windows 10 x64 (enterprise computer with some restrictions)
  • Apache 2.4 64-bit
  • Python 3.7.1 64-bit
  • mod_wsgi (built today from github using python setup.py install)

I am working on getting an Apache server with Python on a Windows machine and I have the server configured correctly in order to get the Hello World! example from mod_wsig documentation working.

If I simply launch C:\Apache24\bin\httpd.exe, this works and I see Hello World at http://localhost:5000/

Then I wanted to get it running as a service, so I call

httpd.exe -k install

In the ApacheMonitor I start the new Apache2.4 service but I get a failed to start error. In the Windows system event log it says Event ID: 7024 with a service specific error: Incorrect function.

When I run httpd.exe -k start -n "Apache2.4" -t it says Syntax OK

What I can’t find is any more information about the service error. Nothing populates in the error.log file and I don’t know where else to look, and I am asking for any further information on how to diagnose this.

Before I started configuring Apache to use mod_wsgi, launching the service was successful, so this happened after doing that, and I haven’t configured anything else at this point.

asked Oct 24, 2018 at 21:33

Vince W.'s user avatar

9

Go to the Command Prompt move to the apache/bin folder and type

>httpd -t

This will give you more information about the error preventing Apache from start.

answered May 12, 2021 at 20:28

lisandro's user avatar

lisandrolisandro

4644 silver badges12 bronze badges

1

I was getting this error after updating my httpd.conf file. The problem was that my final xml tag in httpd.conf was unclosed </directory without the closing >.

answered Oct 5, 2021 at 13:08

stackhouse's user avatar

This days I was facing the same situation, windows 10, apache24, django app, python3.8, failing to start as service, service events showing error 7024…

So, after a lot of struggling and research, I would like to add my solution even this is an old question.

The solution was to add two environment variables, no in httpd.conf, not in python code/conf but at SO level (windows > environment variables)

PYTHONHOME = c:\your\path\to\installed\python

PYTHONPATH = c:\your\path\to\installed\virtualenv

And magic! apache now works as service and the django app is always available on localhost

answered Nov 11, 2022 at 4:49

Peter's user avatar

PeterPeter

553 silver badges10 bronze badges

Ошибка запуска АПАЧИ

Я

  

lite777

18.10.22 — 15:19

Здрасвтвуйте , вин 10 в домене, локальные права админа есть, не стартует как служба

Служба «Apache2.4» завершена из-за следующей внутренней ошибки:

Неверная функция.7024

Installing the ‘Apache2.4’ service

The ‘Apache2.4’ service is successfully installed.

Testing httpd.conf….

Errors reported here must be corrected before the service can be started.

(OS 10013)╤фхырэр яюя√Єър фюёЄєяр ъ ёюъхЄє ьхЄюфюь, чряЁх∙хээ√ь яЁртрьш фюёЄєяр.  : AH00072: make_sock: could not bind to address [::]:80

(OS 10013)╤фхырэр яюя√Єър фюёЄєяр ъ ёюъхЄє ьхЄюфюь, чряЁх∙хээ√ь яЁртрьш фюёЄєяр.  : AH00072: make_sock: could not bind to address 0.0.0.0:80

AH00451: no listening sockets available, shutting down

AH00015: Unable to open logs

  

mikecool

1 — 18.10.22 — 15:22

ты файл конфига поправил? адреса указал?

  

lite777

2 — 18.10.22 — 15:25

(1) Нет , а что там нужно сделать ?

  

Йохохо

3 — 18.10.22 — 15:26

написано же, не может занять порт 80

netstat -anbt

  

mikecool

4 — 18.10.22 — 15:27

(2) зайти в httpd.conf, почитать комменты, поправить где надо

  

PR

5 — 18.10.22 — 15:27

  

lite777

6 — 18.10.22 — 15:30

возможно энидеском занят 80

  

Йохохо

7 — 18.10.22 — 15:31

(6) команду выполни и посмотри кем

  

lite777

8 — 18.10.22 — 15:33

TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       4

  

lite777

9 — 18.10.22 — 15:37

sysstem 4 id

  

arsik

10 — 18.10.22 — 15:46

(9) Попробуй зайти на http://localhost/ — что увидишь?

  

lite777

11 — 18.10.22 — 15:50

(10)Страница не найдена ,

  

lite777

12 — 18.10.22 — 15:54

Может брэндмуэр ?

  

arsik

13 — 18.10.22 — 16:02

(12) Нет. У тебя же порт открыт и на нем кто то сидит.

Через повершелл что покажет?

Get-NetTCPConnection -LocalPort 80

  

Kassern

14 — 18.10.22 — 16:03

Вполне возможно у ТС запущен IIS на 80 порту, поэтому апач идет лесом)

  

arsik

15 — 18.10.22 — 16:09

(14) Ну тогда бы отдельный процесс IIS был, а у него «sysstem 4 id»

  

lite777

16 — 18.10.22 — 16:10

LocalAddress                        LocalPort RemoteAddress                       RemotePort State       AppliedSetting OwningProcess

————                        ——— ————-                       ———- ——       ————— ————-

::                                  80        ::                                  0          Listen                     4 (13)

  

lite777

17 — 18.10.22 — 16:12

(13)

LocalAddress                        LocalPort RemoteAddress                       RemotePort State       AppliedSetting OwningProcess

————                        ——— ————-                       ———- ——       ————— ————-

::                                  80        ::                                  0          Listen                     4

  

arsik

18 — 18.10.22 — 16:16

(17) Ну так это у тебя на ipv6 висит. Система почему то там висит. Вирус наверно :)

Для начала в апаче отключи ipv6, должен завестись.

А потом уже ищи по какой такой неведомой причине у тебя порт чем то занят.

Еще попробуй в браузере вот по этому адресу сходить http://[::]/

  

Kassern

19 — 18.10.22 — 16:23

(18) «http://[::]/» — а что это за адрес такой?

  

arsik

20 — 18.10.22 — 16:26

(19) это аналог 127.0.0.1 для ipv6.

Но я погуглил и действительно IIS висит от имени системы. Так что это скорее всего он.

  

lite777

21 — 18.10.22 — 16:38

Товарищи ,удалил в уст прогах -удал помошник  вин, и удал стол телеграм чтоли , перезагрузился первый раз после уст апича It works! ,спасибо всем ! Вроде пошло

Цитата
Сообщение от svsw
Посмотреть сообщение

lawliet93, посмотрите что пишется в error.log и в виндовый журнал

да я смотрел, но это не помогло
вот error.log

Кликните здесь для просмотра всего текста

Starting the Apache2.2 service
The Apache2.2 service is running.
rmine the server’s fully qualified domain name, using 192.168.14.48 for ServerName
[Mon Mar 18 14:26:16 2013] [notice] Apache/2.2.22 (Win32) configured — resuming normal operations
[Mon Mar 18 14:26:16 2013] [notice] Server built: Jan 28 2012 11:16:39
[Mon Mar 18 14:26:16 2013] [notice] Parent: Created child process 3576
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.48 for ServerName
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.48 for ServerName
[Mon Mar 18 14:26:17 2013] [notice] Child 3576: Child process is running
[Mon Mar 18 14:26:17 2013] [notice] Child 3576: Acquired the start mutex.
[Mon Mar 18 14:26:17 2013] [notice] Child 3576: Starting 64 worker threads.
[Mon Mar 18 14:26:17 2013] [notice] Child 3576: Starting thread to listen on port 80.
[Mon Mar 18 14:26:27 2013] [error] [client 127.0.0.1] File does not exist: C:/server/apache/htdocs/favicon.ico
[Mon Mar 18 15:40:20 2013] [warn] pid file C:/server/apache/logs/httpd.pid overwritten — Unclean shutdown of previous Apache run?
[Mon Mar 18 15:40:20 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.16 configured — resuming normal operations
[Mon Mar 18 15:40:20 2013] [notice] Server built: Jan 28 2012 11:16:39
[Mon Mar 18 15:40:20 2013] [notice] Parent: Created child process 1892
[Mon Mar 18 15:40:21 2013] [notice] Child 1892: Child process is running
[Mon Mar 18 15:40:21 2013] [notice] Child 1892: Acquired the start mutex.
[Mon Mar 18 15:40:21 2013] [notice] Child 1892: Starting 64 worker threads.
[Mon Mar 18 15:40:21 2013] [notice] Child 1892: Starting thread to listen on port 80.
[Mon Mar 18 15:43:36 2013] [error] [client 127.0.0.1] File does not exist: C:/server/www/favicon.ico
[Mon Mar 18 15:44:41 2013] [error] [client 127.0.0.1] File does not exist: C:/server/www/favicon.ico
[Mon Mar 18 22:24:05 2013] [error] [client 127.0.0.1] File does not exist: C:/server/www/favicon.ico
[Mon Mar 18 22:31:29 2013] [notice] Parent: Received shutdown signal — Shutting down the server.
[Mon Mar 18 22:31:29 2013] [notice] Child 1892: Exit event signaled. Child process is ending.
[Mon Mar 18 22:31:30 2013] [notice] Child 1892: Released the start mutex
[Mon Mar 18 22:31:31 2013] [notice] Child 1892: All worker threads have exited.
[Mon Mar 18 22:31:36 2013] [notice] Child 1892: Child process is exiting
[Mon Mar 18 22:31:36 2013] [notice] Parent: Child process exited successfully.
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.174 for ServerName
[Mon Mar 18 22:35:13 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.16 configured — resuming normal operations
[Mon Mar 18 22:35:13 2013] [notice] Server built: Jan 28 2012 11:16:39
[Mon Mar 18 22:35:13 2013] [notice] Parent: Created child process 2700
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.174 for ServerName
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.174 for ServerName
[Mon Mar 18 22:35:13 2013] [notice] Child 2700: Child process is running
[Mon Mar 18 22:35:13 2013] [notice] Child 2700: Acquired the start mutex.
[Mon Mar 18 22:35:13 2013] [notice] Child 2700: Starting 64 worker threads.
[Mon Mar 18 22:35:13 2013] [notice] Child 2700: Starting thread to listen on port 80.
[Mon Mar 18 23:08:34 2013] [error] [client 127.0.0.1] File does not exist: C:/server/www/Client
[Mon Mar 18 23:09:03 2013] [error] [client 127.0.0.1] File does not exist: C:/server/www/Client
[Mon Mar 18 23:09:06 2013] [notice] Parent: Received shutdown signal — Shutting down the server.
[Mon Mar 18 23:09:06 2013] [notice] Child 2700: Exit event signaled. Child process is ending.
[Mon Mar 18 23:09:07 2013] [notice] Child 2700: Released the start mutex
[Mon Mar 18 23:09:11 2013] [notice] Child 2700: All worker threads have exited.
[Mon Mar 18 23:09:11 2013] [notice] Child 2700: Child process is exiting
[Mon Mar 18 23:09:11 2013] [notice] Parent: Child process exited successfully.
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.254 for ServerName
[Tue Mar 19 13:45:22 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.16 configured — resuming normal operations
[Tue Mar 19 13:45:22 2013] [notice] Server built: Jan 28 2012 11:16:39
[Tue Mar 19 13:45:22 2013] [notice] Parent: Created child process 3616
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.254 for ServerName
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.254 for ServerName
[Tue Mar 19 13:45:23 2013] [notice] Child 3616: Child process is running
[Tue Mar 19 13:45:23 2013] [notice] Child 3616: Acquired the start mutex.
[Tue Mar 19 13:45:23 2013] [notice] Child 3616: Starting 64 worker threads.
[Tue Mar 19 13:45:23 2013] [notice] Child 3616: Starting thread to listen on port 80.
[Tue Mar 19 13:53:09 2013] [notice] Parent: Received shutdown signal — Shutting down the server.
[Tue Mar 19 13:53:09 2013] [notice] Child 3616: Exit event signaled. Child process is ending.
[Tue Mar 19 13:53:10 2013] [notice] Child 3616: Released the start mutex
[Tue Mar 19 13:53:11 2013] [notice] Child 3616: All worker threads have exited.
[Tue Mar 19 13:53:16 2013] [notice] Child 3616: Child process is exiting
[Tue Mar 19 13:53:16 2013] [notice] Parent: Child process exited successfully.
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.208 for ServerName
[Wed Mar 20 12:21:09 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.16 configured — resuming normal operations
[Wed Mar 20 12:21:09 2013] [notice] Server built: Jan 28 2012 11:16:39
[Wed Mar 20 12:21:09 2013] [notice] Parent: Created child process 4452
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.208 for ServerName
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.208 for ServerName
[Wed Mar 20 12:21:10 2013] [notice] Child 4452: Child process is running
[Wed Mar 20 12:21:10 2013] [notice] Child 4452: Acquired the start mutex.
[Wed Mar 20 12:21:10 2013] [notice] Child 4452: Starting 64 worker threads.
[Wed Mar 20 12:21:10 2013] [notice] Child 4452: Starting thread to listen on port 80.
[Wed Mar 20 13:31:14 2013] [error] [client 127.0.0.1] File does not exist: C:/server/www/favicon.ico
[Wed Mar 20 13:37:36 2013] [notice] Parent: Received shutdown signal — Shutting down the server.
[Wed Mar 20 13:37:36 2013] [notice] Child 4452: Exit event signaled. Child process is ending.
[Wed Mar 20 13:37:37 2013] [notice] Child 4452: Released the start mutex
[Wed Mar 20 13:37:38 2013] [notice] Child 4452: All worker threads have exited.
[Wed Mar 20 13:37:43 2013] [notice] Child 4452: Child process is exiting
[Wed Mar 20 13:37:43 2013] [notice] Parent: Child process exited successfully.
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.147 for ServerName
[Wed Mar 20 16:33:48 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.16 configured — resuming normal operations
[Wed Mar 20 16:33:48 2013] [notice] Server built: Jan 28 2012 11:16:39
[Wed Mar 20 16:33:48 2013] [notice] Parent: Created child process 4164
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.147 for ServerName
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.147 for ServerName
[Wed Mar 20 16:33:48 2013] [notice] Child 4164: Child process is running
[Wed Mar 20 16:33:48 2013] [notice] Child 4164: Acquired the start mutex.
[Wed Mar 20 16:33:48 2013] [notice] Child 4164: Starting 64 worker threads.
[Wed Mar 20 16:33:48 2013] [notice] Child 4164: Starting thread to listen on port 80.
[Wed Mar 20 17:09:07 2013] [notice] Parent: Received shutdown signal — Shutting down the server.
[Wed Mar 20 17:09:07 2013] [notice] Child 4164: Exit event signaled. Child process is ending.
[Wed Mar 20 17:09:08 2013] [notice] Child 4164: Released the start mutex
[Wed Mar 20 17:09:16 2013] [notice] Child 4164: All worker threads have exited.
[Wed Mar 20 17:09:21 2013] [notice] Child 4164: Child process is exiting
[Wed Mar 20 17:09:21 2013] [notice] Parent: Child process exited successfully.
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.201 for ServerName
[Mon Mar 25 16:25:57 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.16 configured — resuming normal operations
[Mon Mar 25 16:25:57 2013] [notice] Server built: Jan 28 2012 11:16:39
[Mon Mar 25 16:25:57 2013] [notice] Parent: Created child process 5052
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.201 for ServerName
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.14.201 for ServerName
[Mon Mar 25 16:25:57 2013] [notice] Child 5052: Child process is running
[Mon Mar 25 16:25:57 2013] [notice] Child 5052: Acquired the start mutex.
[Mon Mar 25 16:25:57 2013] [notice] Child 5052: Starting 64 worker threads.
[Mon Mar 25 16:25:57 2013] [notice] Child 5052: Starting thread to listen on port 80.

а вот что в журнале виндовса

Кликните здесь для просмотра всего текста

The Apache service named reported the following error:
>>> (OS 10013)Сделана попытка доступа к сокету методом, запрещенным правами доступа. : make_sock: could not bind to address 0.0.0.0:80 .
The Apache service named reported the following error:
>>> no listening sockets available, shutting down .
The Apache service named reported the following error:
>>> Unable to open logs .
Служба «Apache2.2» завершена из-за внутренней ошибки Неверная функция..

I am attempting to install and run apache 2.4 on my windows 7 system
I went to the apache 2.4 bin directory and ran the following:
Note: I opened the cmd window as administrator.
C:Apache24bin>httpd.exe -k install

Its output was as follows:

Installing the Apache2.4 service
The Apache2.4 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
(OS 10013)An attempt was made to access a socket in a way forbidden by its acces
s permissions.  : AH00072: make_sock: could not bind to address [::]:80
(OS 10013)An attempt was made to access a socket in a way forbidden by its acces
s permissions.  : AH00072: make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open log

So it installed apache 2.4 as a service but it could not be started. It seems like the localhost port 80 is being used. Is this what «[::]:80» means?

I then stopped both the the apache 2.0 service which I had left running and the mysql service, hoping stopping one of them might free up localhost port 80.

I also run netstat -o to see if port 80 is being used. It was not.

But, I then found that a process was using the above socket it is a process that is listening on the above socket

 TCP    [::]:80                User-PC:0              LISTENING       4

I then ran tasklist and found out that System is using pid 4. 4 is under the pid column

System                           4 Services                   0        544 K

Finally, from the failed attempt to start the service
I got an error which was recorded in windows systems events.

Log Name:      System
Source:        Service Control Manager
Date:          2/21/2013 1:58:03 PM
Event ID:      7024
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      User-PC
Description:
The Apache2.4 service terminated with service-specific error Incorrect function.

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
    <EventID Qualifiers="49152">7024</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8080000000000000</Keywords>
    <TimeCreated SystemTime="2013-02-21T18:58:03.723988900Z" />
    <EventRecordID>87756</EventRecordID>
    <Correlation />
    <Execution ProcessID="560" ThreadID="7596" />
    <Channel>System</Channel>
    <Computer>User-PC</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="param1">Apache2.4</Data>
    <Data Name="param2">%%1</Data>
  </EventData>
</Event>

The error from the attempt to start says that beacause of lack of access, make-sock could not bind to sockets which to me looked like localhost port 80. For example,

  (OS 10013)An attempt was made to access a socket in a way forbidden by its acces
    s permissions.  : AH00072: make_sock: could not bind to address [::]:80

Can anyone tell what I am doing wrong?

I am attempting to install and run apache 2.4 on my windows 7 system
I went to the apache 2.4 bin directory and ran the following:
Note: I opened the cmd window as administrator.
C:Apache24bin>httpd.exe -k install

Its output was as follows:

Installing the Apache2.4 service
The Apache2.4 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
(OS 10013)An attempt was made to access a socket in a way forbidden by its acces
s permissions.  : AH00072: make_sock: could not bind to address [::]:80
(OS 10013)An attempt was made to access a socket in a way forbidden by its acces
s permissions.  : AH00072: make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open log

So it installed apache 2.4 as a service but it could not be started. It seems like the localhost port 80 is being used. Is this what «[::]:80» means?

I then stopped both the the apache 2.0 service which I had left running and the mysql service, hoping stopping one of them might free up localhost port 80.

I also run netstat -o to see if port 80 is being used. It was not.

But, I then found that a process was using the above socket it is a process that is listening on the above socket

 TCP    [::]:80                User-PC:0              LISTENING       4

I then ran tasklist and found out that System is using pid 4. 4 is under the pid column

System                           4 Services                   0        544 K

Finally, from the failed attempt to start the service
I got an error which was recorded in windows systems events.

Log Name:      System
Source:        Service Control Manager
Date:          2/21/2013 1:58:03 PM
Event ID:      7024
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      User-PC
Description:
The Apache2.4 service terminated with service-specific error Incorrect function.

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
    <EventID Qualifiers="49152">7024</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8080000000000000</Keywords>
    <TimeCreated SystemTime="2013-02-21T18:58:03.723988900Z" />
    <EventRecordID>87756</EventRecordID>
    <Correlation />
    <Execution ProcessID="560" ThreadID="7596" />
    <Channel>System</Channel>
    <Computer>User-PC</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="param1">Apache2.4</Data>
    <Data Name="param2">%%1</Data>
  </EventData>
</Event>

The error from the attempt to start says that beacause of lack of access, make-sock could not bind to sockets which to me looked like localhost port 80. For example,

  (OS 10013)An attempt was made to access a socket in a way forbidden by its acces
    s permissions.  : AH00072: make_sock: could not bind to address [::]:80

Can anyone tell what I am doing wrong?

System:

  • Windows 10 x64 (enterprise computer with some restrictions)
  • Apache 2.4 64-bit
  • Python 3.7.1 64-bit
  • mod_wsgi (built today from github using python setup.py install)

I am working on getting an Apache server with Python on a Windows machine and I have the server configured correctly in order to get the Hello World! example from mod_wsig documentation working.

If I simply launch C:Apache24binhttpd.exe, this works and I see Hello World at http://localhost:5000/

Then I wanted to get it running as a service, so I call

httpd.exe -k install

In the ApacheMonitor I start the new Apache2.4 service but I get a failed to start error. In the Windows system event log it says Event ID: 7024 with a service specific error: Incorrect function.

When I run httpd.exe -k start -n "Apache2.4" -t it says Syntax OK

What I can’t find is any more information about the service error. Nothing populates in the error.log file and I don’t know where else to look, and I am asking for any further information on how to diagnose this.

Before I started configuring Apache to use mod_wsgi, launching the service was successful, so this happened after doing that, and I haven’t configured anything else at this point.

asked Oct 24, 2018 at 21:33

Vince W.'s user avatar

9

Go to the Command Prompt move to the apache/bin folder and type

>httpd -t

This will give you more information about the error preventing Apache from start.

answered May 12, 2021 at 20:28

lisandro's user avatar

lisandrolisandro

4253 silver badges11 bronze badges

1

I was getting this error after updating my httpd.conf file. The problem was that my final xml tag in httpd.conf was unclosed </directory without the closing >.

answered Oct 5, 2021 at 13:08

stackhouse's user avatar

This days I was facing the same situation, windows 10, apache24, django app, python3.8, failing to start as service, service events showing error 7024…

So, after a lot of struggling and research, I would like to add my solution even this is an old question.

The solution was to add two environment variables, no in httpd.conf, not in python code/conf but at SO level (windows > environment variables)

PYTHONHOME = c:yourpathtoinstalledpython

PYTHONPATH = c:yourpathtoinstalledvirtualenv

And magic! apache now works as service and the django app is always available on localhost

answered Nov 11, 2022 at 4:49

Peter's user avatar

PeterPeter

553 silver badges10 bronze badges

Столкнулся с проблемой:
после установки службы Apache Tomcat запуск этой службы прерывается ошибкой
«

Не удалось запустить службу Apache Tomcat 8.5 (для Jenki) на Локальный компьютер. Подробности содержатся в журнале системных событий. Если эта служба разработана не в Майкрософт, обратитесь к разработчику службы, и сообщите специфический для этой службы код ошибки 1.

»:

Отражение ошибки в журнале событий Windows:
«

Имя журнала: System
Источник: Service Control Manager
Код события: 7024
Уровень: Ошибка
Описание:
Служба «Apache Tomcat 8.5 (для Jenki)» завершена из-за следующей внутренней ошибки:
Неверная функция.

».

Причина оказалась в том, что при использовании скрипта (_installService.bat) установки службы в среде пользователя, под которым данный скрипт выполнялся, не были заданы переменные среды «JAVA_HOME» и «JRE_HOME», что привело к тому, что одна из настроек службы (а именно поле «Java Virtual Machine» на вкладке «Java» окна свойств службы, которое открывается с помощью копии «tomcat8w.exe») заполнилось некорректным значением «binserverjvm.dll» вместо правильного значения «C:PROGRA~1JAVAJDK1.8.0_181jrebinserverjvm.dll»:

За последние 24 часа нас посетили 10080 программистов и 790 роботов. Сейчас ищут 514 программистов …

  1. С нами с:
    26 ноя 2018
    Сообщения:
    4
    Симпатии:
    0

    В логе винды пишет что там неверна функция.
    В файле httpd.conf если отрубить
    LoadModule php7_module «C:/Program Files (x86)/Apache Software Foundation/Apache2.2/PHP/php7apache2_4.dll»

    то сервис нормально запускается

  2. Команда форума
    Модератор

    С нами с:
    25 июл 2013
    Сообщения:
    12.162
    Симпатии:
    1.770
    Адрес:
    :сердА

    Тут на всем форуме апач, отдельно установленный на винде, возможно, только у вас, боюсь.
    Но тем не менее:

    Какая функция неверная? Мб DLL битая? Мб в названии модуля ошибка? Мб еще что?

    А мб просто нужно поставить себе openserver и не париться. А хотите собирать серверное окружение руками — добро пожаловать на линукс, родную ОСь апача, нжинкса, пхп и мускуля.

  3. С нами с:
    26 ноя 2018
    Сообщения:
    4
    Симпатии:
    0

    LoadModule php7_module «C:/xampp/php/php7apache2_4.dll»

  4. Команда форума
    Модератор

    С нами с:
    25 июл 2013
    Сообщения:
    12.162
    Симпатии:
    1.770
    Адрес:
    :сердА

    и? Что это мне должно дать-сказать?
    — Добавлено —
    Не поймите неправильно, но собирать «классическое» серверное окружение на винде — плохая затея.

  5. С нами с:
    28 янв 2017
    Сообщения:
    774
    Симпатии:
    65

    запускай пых как сджиай

    тока так у меня получилось

  6. Команда форума
    Модератор

    С нами с:
    25 июл 2013
    Сообщения:
    12.162
    Симпатии:
    1.770
    Адрес:
    :сердА

    Не морочьтесь на винде с самосбором. Вот и все.

  7. С нами с:
    28 янв 2017
    Сообщения:
    774
    Симпатии:
    65

    рпзве что рпзвлеченья ради
    тк даж конфиги будут сильно отличаться

  8. Команда форума
    Модератор

    С нами с:
    25 июл 2013
    Сообщения:
    12.162
    Симпатии:
    1.770
    Адрес:
    :сердА

    Ну, с конфигами это зря. С какого перепугу им отличаться, когда софт один и тот же? Структура каталогов у апачей и прочего будет другая да, но конфиги что там что тут одинаковые.

    Другое дело, что коль записался в веб-разработчики, велкам ту линукс. Не сразу, да. Тут как с принятием неизбежного:

    1 стадия – Отрицание (Мне не нужен линукс, буду кодить на винде);
    2 стадия – Гнев (да задолбали со своим линуксом уже! Не нужен он мне, идите знаете куда, советчики хреновы?);
    3 стадия – Торг (Ну….если только разве что в виртуалке, чисто вот эксперимента ради…);
    4 стадия – Депрессия (Блэт, с опенсервером было легче, тут же черт ногу сломит…нахрена я установил линь себе на винт, е-мое…);
    5 стадия – Принятие (Линукс идеально подходит для веб-разработки, удобен в обращении, быстр и куда понятнее винды в плане сборки и эксплуатации серверного окружения!).

  9. Команда форума
    Модератор

    С нами с:
    27 сен 2007
    Сообщения:
    10.534
    Симпатии:
    623

    апач у вас 2.2 а модуль от 2.4.
    В винде же IIS есть, попробуйте работать с ним, вместо апача.

  10. Команда форума
    Модератор

    С нами с:
    25 июл 2013
    Сообщения:
    12.162
    Симпатии:
    1.770
    Адрес:
    :сердА

    Ах ты зоркий глаз!
    — Добавлено —

    Не учи людей плохому. Потом, когда в реальный мир из матрицы выйдет, заново учиться всему придется.

  11. С нами с:
    9 авг 2016
    Сообщения:
    3.620
    Симпатии:
    603

    Да можно использовать и WAMP в вэбдеве, но IIS – это перебор. Если и менять сервер, тогда уж лучше на nginx.

    Проблема ТСа, возможно, связана с этим:
    Apache2.2 vs apache2_4[.dll]
    — Добавлено —
    О, выше об этом уже написали.

Система:

  • Windows 10 x64 (корпоративный компьютер с некоторыми ограничениями)
  • Apache 2.4 64-разрядный
  • Python 3.7.1 64-разрядная
  • mod_wsgi (построен сегодня из github с использованием установки python setup.py)

Я работаю над получением сервера Apache с Python на машине Windows, и у меня правильно настроен сервер, чтобы получить пример Hello World! из документация mod_wsig.

Если я просто запустил C:Apache24binhttpd.exe, это сработает, и я увижу Hello World по адресу http: // локальный: 5000 /.

Затем я хотел запустить его как службу, поэтому позвонил

Httpd.exe -k install

В ApacheMonitor я запускаю новую службу Apache2.4, но получаю ошибку «Не удалось запустить». В журнале системных событий Windows указано Event ID: 7024 с ошибкой службы: Incorrect function.

Когда я запускаю httpd.exe -k start -n «Apache2.4» -t, он говорит: Syntax OK

Что я не могу найти, так это больше информации об ошибке службы. В файле error.log ничего не заполняется, и я не знаю, где еще искать, и прошу предоставить дополнительную информацию о том, как это диагностировать.

Прежде чем я начал настраивать Apache для использования mod_wsgi, запуск службы был успешным, поэтому это произошло после этого, и я еще ничего не настраивал.

Столкнулся с проблемой:
после установки службы Apache Tomcat запуск этой службы прерывается ошибкой
«

Не удалось запустить службу Apache Tomcat 8.5 (для Jenki) на Локальный компьютер. Подробности содержатся в журнале системных событий. Если эта служба разработана не в Майкрософт, обратитесь к разработчику службы, и сообщите специфический для этой службы код ошибки 1.

»:

Отражение ошибки в журнале событий Windows:
«

Имя журнала: System
Источник: Service Control Manager
Код события: 7024
Уровень: Ошибка
Описание:
Служба «Apache Tomcat 8.5 (для Jenki)» завершена из-за следующей внутренней ошибки:
Неверная функция.

».

Причина оказалась в том, что при использовании скрипта (_installService.bat) установки службы в среде пользователя, под которым данный скрипт выполнялся, не были заданы переменные среды «JAVA_HOME» и «JRE_HOME», что привело к тому, что одна из настроек службы (а именно поле «Java Virtual Machine» на вкладке «Java» окна свойств службы, которое открывается с помощью копии «tomcat8w.exe») заполнилось некорректным значением «bin\server\jvm.dll» вместо правильного значения «C:\PROGRA~1\JAVA\JDK1.8.0_181\jre\bin\server\jvm.dll»:

Понравилась статья? Поделить с друзьями:
  • Ap440 код ошибки мегафон
  • Anim player blender ошибка
  • Aoddriver2 sys ошибка как убрать
  • Anilabx ошибка декодирования
  • Ap initialization before microcode loading ошибка