Не удалось запустить службу апач код ошибки 1

There is some other program listening on port 80, usual suspects are

  1. Skype (Listens on port 80)
  2. NOD32 (Add Apache to the IMON exceptions’ list for it to allow apache to bind)
  3. Some other antivirus (Same as above)

Way to correct it is either shutting down the program that’s using the port 80 or configure it to use a different port or configure Apache to listen on a different port with the Listen directive in httpd.conf. In the case of antivirus configure the antivirus to allow Apache to bind on the port you have chosen.

Way to diagnose which app, if any, has bound to port 80 is run the netstat with those options, look for :80 next to the local IP address (second column) and find the PID (last column). Then, on the task manager you can find which process has the PID you got in the previous step. (You might need to add the PID column on the task manager)

C:\Users\vinko>netstat -ao -p tcp

Conexiones activas

  Proto  Dirección local          Dirección remota        Estado           PID
  TCP    127.0.0.1:1110         127.0.0.1:51373        TIME_WAIT       0
  TCP    127.0.0.1:1110         127.0.0.1:51379        TIME_WAIT       0
  TCP    127.0.0.1:1110         127.0.0.1:51381        ESTABLISHED     388
  TCP    127.0.0.1:1110         127.0.0.1:51382        TIME_WAIT       0
  TCP    127.0.0.1:1110         127.0.0.1:51479        TIME_WAIT       0
  TCP    127.0.0.1:1110         127.0.0.1:51481        TIME_WAIT       0
  TCP    127.0.0.1:1110         127.0.0.1:51483        TIME_WAIT       0
  TCP    127.0.0.1:1110         127.0.0.1:51485        ESTABLISHED     388
  TCP    127.0.0.1:1110         127.0.0.1:51487        TIME_WAIT       0
  TCP    127.0.0.1:1110         127.0.0.1:51489        ESTABLISHED     388
  TCP    127.0.0.1:51381        127.0.0.1:1110         ESTABLISHED     5168
  TCP    127.0.0.1:51485        127.0.0.1:1110         ESTABLISHED     5168
  TCP    127.0.0.1:51489        127.0.0.1:1110         ESTABLISHED     5168
  TCP    127.0.0.1:59264        127.0.0.1:59265        ESTABLISHED     5168
  TCP    127.0.0.1:59265        127.0.0.1:59264        ESTABLISHED     5168
  TCP    127.0.0.1:59268        127.0.0.1:59269        ESTABLISHED     5168
  TCP    127.0.0.1:59269        127.0.0.1:59268        ESTABLISHED     5168
  TCP    192.168.1.34:51278     192.168.1.33:445       ESTABLISHED     4
  TCP    192.168.1.34:51383     67.199.15.132:80       ESTABLISHED     388
  TCP    192.168.1.34:51486     66.102.9.18:80         ESTABLISHED     388
  TCP    192.168.1.34:51490     74.125.4.20:80         ESTABLISHED     388

If you want to Disable Skype from listening on port 80 and 443, you can follow the link http://www.mydigitallife.info/disable-skype-from-using-opening-and-listening-on-port-80-and-443-on-local-computer/

I installed Apache on Windows 7 (localhost) and it worked fine. Then I went to download some other stuff and later noticed that the Apache server stopped. I went to command prompt (as administrator) and typed

net start apache2

It says «The Apache2 service is starting.» But before it finishes, I get the error

A service specific error occurred: 1.

It says that you can type in «NET HELPMSG 3547» for more info, but that doesn’t help at all.

Things I have tried:

  1. Quit Google Drive Sync
  2. Quit any and all programs using port 80 (port my server is on)
  3. Tried changing the port of the server and got same error message, so I don’t think it has anything to do with something else being in the port

None of those things have worked. I am confused at why it worked earlier, but now it won’t work.

random's user avatar

random

14.6k9 gold badges54 silver badges58 bronze badges

asked Jun 10, 2014 at 21:48

user2297366's user avatar

2

You should check the Event Viewer for whatever shows up in the Windows Logs. Under the Application section there should be a list of errors with more details about what was exactly going wrong.

Recent example found:

The Apache service named reported the following error:
>>> Syntax error on line 523 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf:

In the above example it was because a referenced drive was no longer on the system and Apache could not find it.

You can usually (at least in Windows Vista) find Event Viewer along the lines of:

Control Panel → Administrative Tools → Event Viewer

This should highlight any thing touching the system that you may have overlooked and provide further details and hints about what to tweak or change instead of just uninstalling everything.

answered Dec 19, 2015 at 18:06

random's user avatar

randomrandom

14.6k9 gold badges54 silver badges58 bronze badges

2

Apache server wouldn’t start after I downloaded coldfusion and added it to the server. I just uninstalled apache and coldfusion and reinstalled apache and it works fine now. The official error was that I added an extension(coldfusion) to apache and for some reason apache didn’t recognize it.

answered Jun 12, 2014 at 18:39

user2297366's user avatar

user2297366user2297366

1793 gold badges4 silver badges9 bronze badges

1

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

I have installed xampp. When i open xampp control panel, mysql and filezilla services are running, but not apache. When i click to start apache it gives me this

ERROR:error:apache service not started [-1]

I have even blocked firewalls for this.

Why this is happeneing and how can i start apache services.I have installed xampp in my E: directory.

Simon Dugré's user avatar

Simon Dugré

18k11 gold badges57 silver badges73 bronze badges

asked Apr 30, 2011 at 3:09

saplingPro's user avatar

saplingProsaplingPro

20.8k53 gold badges137 silver badges196 bronze badges

here is the steps which will make apache work normally without such errors

  1. Firstly, make sure that Apache is stopped
  2. Make sure, Svc check box is unchecked
  3. Now! go to your XAMPP Folder (C:\xampp\apache\ – I installed the xampp in C:)
  4. Now! double click on “apache_uninstallservice.bat” which is available in apache folder.
  5. After above step, now open your XAMPP Control Panel again and click on Start button which is beside Apache, and make sure that you will not check the Svc checkbox provided.

such errors my happen in old operation systems for example win XP or Vista…
and the latest versions of xampp may not have the corresponding configurations

kazinix's user avatar

kazinix

29k33 gold badges107 silver badges157 bronze badges

answered Jun 9, 2012 at 19:40

encoder's user avatar

I found this page looking for a solution to this problem after downloading xampp lite.

I solved this as follow:

The installed service for apache from xampp uses the standalone installation path for apache; c:\program files\apache2.x\...etc and not the local path in xampp folder.
Just modify all registry keys that include the wrong path for apache service in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Apache2.x and it should work.

Bot's user avatar

Bot

11.9k11 gold badges76 silver badges131 bronze badges

answered Jun 27, 2012 at 22:57

amma's user avatar

ammaamma

212 bronze badges

There could be many causes.

Make sure you have no other applications using the port that apache is using. From the XAMPP control panel there is a button you can press to run a tool to check which ports are in use. Applications which I know to conflict with Apache are Skype and Panda Media; there could be others.

answered Apr 30, 2011 at 3:20

Extrakun's user avatar

ExtrakunExtrakun

19.1k21 gold badges82 silver badges129 bronze badges

2

Unselect the Svc box in the XAMPP control panel and try to restart it. Should work.

answered Jun 19, 2012 at 10:02

Enri2due's user avatar

Perform the steps below to resolve this issue.

To refresh the Webtrends Apache HTTP configuration:
1. Ensure the Webtrends — MySQL (or MS SQL system database) and the Webtrends — User interface service are running. If the User interface has not started, you will be unable to proceed until they do.

2. Open the following file in a text editor:

\Webtrends\common\apache\conf\httpd.conf

3. Find the line that reads similar to the following:

#Listen 12.34.56.78:80.

4. On the line below, paste the following:

Listen 7099

5. Find the a line similar to «ServerName pdxfasteenn02:» (pdxfasteenn02 should be the name of the Webtrends server).

6. Replace it with the following:

ServerName pdxfasteenn02:7099

Ensure both the Listen line and the ServerName line do not contain a ‘#’.

7. Save the httpd.conf file.

8. Open a command prompt and navigate to the following folder:

Webtrends\common\apache\bin

9. Type the following, and then press enter:

apache.exe

The command window may appear as if it has hung or locked up but this is the expected behavior.

10. Open the Windows Services snap-in and verify that Apache is started.

11. If necessary, start the Tomcat service.

Do not stop and then start Webtrends — User interface service. If you do, it will overwrite the changes made to the httpd.conf file with faulty data.

12. Log into Webtrends and click Administration > System Management > Hosts > UI Server.

13. If the box for «Enable HTTP» is not checked, check it. If it is checked, uncheck and then recheck it, also check or uncheck the box for Enable Tomcat logging (making this change will force a write to the configuration file; you can go back and undo the Tomcat logging change later).

14. In the «Apache Port» box, type 7099, and then click Save.

15. If you are prompted to restart the Webtrends services, click Restart Services.

The Apache service should now start normally. If you made a change to the Tomcat logging settings in step 13, go back and undo that change now.

33 / 7 / 2

Регистрация: 27.05.2011

Сообщений: 174

1

22.01.2012, 01:30. Показов 112718. Ответов 18


Студворк — интернет-сервис помощи студентам

Операционка Windows XP. Пробовал разные инсталляшки, везде одинаковая ошибка. Установка проходит успешно, но служба Apache не может запуститься. Если запускать через Apache Monitor, то пишет

The requested operation has failed!

А если через Администрирование/Службы, то выдает

Не удалось запустить службу Apache2.2 на Локальный компьютер. Дополнительные сведения содержатся в журнале системных событий. Если эта служба разработана не в Майкрософт, обратитесь к разработчику службы, и сообщите специфический для этой службы код ошибки 1.



0



680 / 330 / 5

Регистрация: 01.03.2010

Сообщений: 1,387

22.01.2012, 12:43

2

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

Дополнительные сведения содержатся в журнале системных событий

идем в логи апача и смотрим что там за сведения
обычно логи храняться в инсталлированной директории апача в папке logs, но все зависит от ваших настроек.



1



33 / 7 / 2

Регистрация: 27.05.2011

Сообщений: 174

22.01.2012, 23:44

 [ТС]

3

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

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

Есть файл install.log, но там я не вижу сообщений об ошибке.



0



217 / 157 / 30

Регистрация: 11.05.2010

Сообщений: 614

23.01.2012, 01:20

4

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

Дополнительные сведения содержатся в журнале системных событий.

идём в журнал событий виндовса, смотрим что там.
как-то так: панель управления/администрирование/просмотр событий



1



33 / 7 / 2

Регистрация: 27.05.2011

Сообщений: 174

23.01.2012, 01:35

 [ТС]

5

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

типа: панель управления/администрирование/просмотр событий

Ошибка, источник Apache Service, Событие 3299
Нашел на одном форуме такой ответ

[решено] Apache не запускается. Event id 3299
В общем проблема оказалась в некорректно заданом файле «httpd_vhosts.txt» (Virtual Host). Я поправил, перезагрузил сервак и Апачи запустился!!
Всем большое спасибо за идеи!

Только у меня такой файл не нашелся. Не пойму, что делать?



0



Почетный модератор

11324 / 4296 / 443

Регистрация: 12.06.2008

Сообщений: 12,378

23.01.2012, 11:11

6

В папке апача есть папка logs… там посмотри файл error.log
Если и это не поможет, тогда Пуск — все программы — Apache HTTP Server — Configure Apache Server — Test Configuration… появится чёрное окно, в котором он напишет, что именно ему не нравится в конфиге. Если это окно только мелькнёт и сразу исчезнет, значит в конфиге он проблем не видит. Тогда в error.log должна быть какая-то запись. Скорее всего, 80 порт уже используется другим приложением (часто Skype его использует).



1



33 / 7 / 2

Регистрация: 27.05.2011

Сообщений: 174

23.01.2012, 19:35

 [ТС]

7

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

В папке апача есть папка logs… там посмотри файл error.log

Нашел. Вот его содержимое, только я ничего не понимаю. Когда загрузилась винда апач монитор показывал, что сервис запущен, я сделал стоп, а старт уже не получается.

httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[Mon Jan 23 17:11:12 2012] [notice] Apache/2.2.21 (Win32) configured — resuming normal operations
[Mon Jan 23 17:11:12 2012] [notice] Server built: Sep 9 2011 10:26:10
[Mon Jan 23 17:11:12 2012] [notice] Parent: Created child process 1808
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[Mon Jan 23 17:11:12 2012] [notice] Child 1808: Child process is running
[Mon Jan 23 17:11:12 2012] [notice] Child 1808: Acquired the start mutex.
[Mon Jan 23 17:11:12 2012] [notice] Child 1808: Starting 64 worker threads.
[Mon Jan 23 17:11:12 2012] [notice] Child 1808: Starting thread to listen on port 80.
[Mon Jan 23 17:12:12 2012] [notice] Parent: Received shutdown signal — Shutting down the server.
[Mon Jan 23 17:12:12 2012] [notice] Child 1808: Exit event signaled. Child process is ending.
[Mon Jan 23 17:12:13 2012] [notice] Child 1808: Released the start mutex
[Mon Jan 23 17:12:14 2012] [notice] Child 1808: All worker threads have exited.
[Mon Jan 23 17:12:14 2012] [notice] Child 1808: Child process is exiting
[Mon Jan 23 17:12:14 2012] [notice] Parent: Child process exited successfully.



0



680 / 330 / 5

Регистрация: 01.03.2010

Сообщений: 1,387

24.01.2012, 09:40

8

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

обычно логи храняться в инсталлированной директории апача в папке logs

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

В папке апача есть папка logs

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

Нашел.

не понимаю, какая разница между этими сообщениями, ввиду которой вы не могли найти логи?
Смотрите кто у вас на 80 порту сидит
netstat -an
в консоли



0



33 / 7 / 2

Регистрация: 27.05.2011

Сообщений: 174

24.01.2012, 13:03

 [ТС]

9

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

не понимаю, какая разница между этими сообщениями, ввиду которой вы не могли найти логи?

Разница в том, что не было файла error.log. На 80-м порте что-то определенно сидит, только как Вам это пересказать? Куча адресов. 0.0.0.0:80. 127.0.0.1 не на 80-м. Апач монитор показывает, что апач запущен, но если его остановить, то он не запустится.



0



680 / 330 / 5

Регистрация: 01.03.2010

Сообщений: 1,387

24.01.2012, 16:43

10

tcpview вам в помощь.



0



33 / 7 / 2

Регистрация: 27.05.2011

Сообщений: 174

24.01.2012, 16:49

 [ТС]

11

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

tcpview вам в помощь.

А как он мне поможет?



0



680 / 330 / 5

Регистрация: 01.03.2010

Сообщений: 1,387

24.01.2012, 17:04

12

скачиваете его, к примеру от сюда инструкции там же



0



33 / 7 / 2

Регистрация: 27.05.2011

Сообщений: 174

24.01.2012, 17:11

 [ТС]

13

Вижу 4 процесса httpd.exe (запущен денвер, запустился почему-то) PID 3280, протокол TCP, local port — у одного http, 2 https и у одного 8648



0



33 / 7 / 2

Регистрация: 27.05.2011

Сообщений: 174

02.02.2012, 23:06

 [ТС]

14

Нашел процесс MsDepSvc.exe (NETWORK SERVICE) из-за которого не запускался веб-сервер. Если этот процесс завершить, то денвер стартует нормально. Только я не вижу его в Администрирование / Службы. Как найти где он запускается, чтобы его отключить? И что это вообще за служба?



0



680 / 330 / 5

Регистрация: 01.03.2010

Сообщений: 1,387

03.02.2012, 02:28

15

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

MsDepSvc.exe

что-то относящееся к IIS.



0



6 / 6 / 1

Регистрация: 30.11.2010

Сообщений: 58

03.02.2012, 10:47

16

параметр Listen 80 в httpd.conf меняй на 81 или любой другой порт и будет тебе счастье.
Или убивай все, что хавает под себя 80 порт — скайп, например, подминает его всегда)



0



0 / 0 / 0

Регистрация: 27.12.2014

Сообщений: 5

24.05.2015, 10:43

17

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

Скорее всего, 80 порт уже используется другим приложением (часто Skype его использует).

Спасибо, закрыл скайп, всё работает!



0



0 / 0 / 0

Регистрация: 16.03.2016

Сообщений: 1

16.03.2016, 20:10

18

при запуске апатча выдает ошибку «the requested operation has failed» !
В логах ошибок видно :

[Wed Mar 16 18:07:59.540866 2016] [mpm_winnt:notice] [pid 816:tid 456] AH00422: Parent: Received shutdown signal — Shutting down the server.
[Wed Mar 16 18:08:01.542980 2016] [mpm_winnt:notice] [pid 2708:tid 396] AH00364: Child: All worker threads have exited.
[Wed Mar 16 18:08:01.559981 2016] [mpm_winnt:notice] [pid 816:tid 456] AH00430: Parent: Child process 2708 exited successfully.
[Wed Mar 16 18:08:17.774359 2016] [mpm_winnt:notice] [pid 5524:tid 496] AH00455: Apache/2.4.18 (Win32) configured — resuming normal operations
[Wed Mar 16 18:08:17.775359 2016] [mpm_winnt:notice] [pid 5524:tid 496] AH00456: Apache Lounge VC11 Server built: Dec 11 2015 11:26:53
[Wed Mar 16 18:08:17.775359 2016] [core:notice] [pid 5524:tid 496] AH00094: Command line: ‘D:\\USR\\apache\\bin\\httpd.exe -d D:/USR/apache’
[Wed Mar 16 18:08:17.792360 2016] [mpm_winnt:notice] [pid 5524:tid 496] AH00418: Parent: Created child process 4236

а перед этим когда запускал апатч с командной строки после ввода команды :

D:\USR\apache\bin\httpd.exe -k install

после этого появляется надпись :

[Wed Mar 16 19:07:56.559409 2016] [mpm_winnt:error] [pid 5620:tid 428] AH00433: Apache2.4: Service is already installed.

Все запускалось и открывалось от имени админитсратора !
Зарание спасибо за помощь !
Форум облазил Весь и не смог найти ничего толкового !(возможно плохо искал)



0



0 / 0 / 0

Регистрация: 03.04.2020

Сообщений: 1

03.04.2020, 15:11

19

Ребята, сам искал ответ на этот вопрос и оказалось что он до жути прост!
Оказывается незапуск сервиса Apach-а каким-то образом (причина для меня вопще не важна) зависит от названия самого процесса. При установка Apach-а я назвал процесс Apache2.4, а нужно Apache24

Лекарство такое:
E:\Apache24\bin> httpd.exe -k install -n Apache24



0



IT_Exp

Эксперт

87844 / 49110 / 22898

Регистрация: 17.06.2006

Сообщений: 92,604

03.04.2020, 15:11

19

Понравилась статья? Поделить с друзьями:

Интересное по теме:

  • Не удалось запустить службу автонастройки wlan ошибка 1747
  • Не удалось запустить службу автонастройки wlan ошибка 1068
  • Не удалось запустить службу zabbix agent ошибка 1053
  • Не удалось запустить службу wuauserv ошибка 2
  • Не удалось запустить службу windows search ошибка 2

  • Добавить комментарий

    ;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: