-
Печать
-
E-mail
- 26 января 2023
-
Автор: Сергей Кузнецов
- Просмотров: 6932
Ошибка запуска сервиса Apache 2.4 под Windows 10
Как то, в совершенно обычный день дернул один из локальных сайтов (Apache 2.4 на Windows 10) и обнаружил «пустоту» в браузере. Посмотрел в логи Apache 2.4 и обнаружил, что уже почти неделю там ничего не появлялось, а следовательно, скорее всего не стартует сервис Apache. И действительно, заглянув в диспетчер задач, увидел, что служба Apache2.4 не запущена. Попытки ее запустить ручками заканчивалась неудачей.
Поход в просмотр событий приложений в Windows принес следующие результаты:
The Apache service named reported the following error:
>>> (OS 10013)Сделана попытка доступа к сокету методом, запрещенным правами доступа. : AH00072: make_sock: could not bind to address [::]:80 .
The Apache service named reported the following error:
>>> AH00451: no listening sockets available, shutting down .
Предварительный вывод: Кто-то занял сокет до старта Apache…
И вот тут сразу встали несколько вопросов:
- Что же произошло и как?
- Как исправить?
Первым делом начал вспоминать, что же я такого ставил/обновлял за эту неделю.
- Windows 10 — обновления не устанавливались (если верить списку обновлений)
- Несколько мелких приложений, которые были сразу снесены, но это результата не принесло, хотя и сразу было предположение, что это не они…
Попытка поиска в интернете привела к относительно старым сообщениям, но вполне разумным, что какое то из приложений захвалило сокет. Наиболее часто предлагалось проверить Skype, IIS (), SQL Server Reporting Services и некоторые другие, но и это результата не принесло.
Т.о. возникла необходимость уже внимательно на все посмотреть и определить, кто же так нагло и незаметно сел на 80 порт. Для этого в командной строке толкаем:
>netstat -ao
И ее выдаче смотрим, какой процесс висит на 80 порту и видим Process ID = 4 (PID):
Имя Локальный адрес Внешний адрес Состояние PID
TCP 0.0.0.0:80 computer-name:0 LISTENING 4
Затем идем в диспетчер задач и в процессах нас ждет небольшое открытие — PID 4 — это System (C:\Windows\System32\ntoskrnl.exe — NT Kernel & System), которое «убить» не получится (Windows этого не переживет).
Выход — найти, кто же реально через «NT Kernel & System» захватил сокет. Ну, и ведь не просто так там что-то висит…
Для этого пытаемся обратиться к порту в командной строке используя telnet:
>telnet 127.0.0.1 80
Получив пустой экран (нет ни каких сообщений, следовательно telnet достучался и то, что там висит ждет от меня команды), набираю несколько любых символов, затем жму Enter и в ответ получаю вот такое:
HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 26 Jan 2023 09:25:01 GMT
Connection: close
Content-Length: 326
И вот он, виновник: Microsoft-HTTPAPI/2.0! С помощью интернета определяем, что за это отвечает почти «одноименный» файлик httpapi.dll. и с помощью команды смотрим список процессов, его использующих:
> tasklist /M httpapi.dll
И вот мы видим список реальных кандидатов. Кто-то из них через ядро захватил необходимый нам сокет.
Имя образа PID Модули
========================= ====
vmms.exe 2744 HTTPAPI.dll
svchost.exe 3120 HTTPAPI.dll
svchost.exe 3700 httpapi.dll
OneApp.IGCC.WinService.exe 5680 httpapi.dll
svchost.exe 6040 HTTPAPI.dll
svchost.exe 7536 HTTPAPI.dll
KeePass.exe 5584 httpapi.dll
w3wp.exe 13324 HTTPAPI.dll
Как же определить, кто из них?
Поочередно находим эти процессы в диспетчере задач и смотрим, что это такое. В общем, если не копать еще глубже, то просто смотрим, а что из этого относится к Web и что потенциально может повиснуть на 80 порту (порт, по умолчанию, для http серверов без SSL).
И вот, на 6040 порту видим такое наименование процесса (подозрительно уже то, что это как-то связано с IIS. Если бы внимательно просмотреть все сервисы, то можно было бы его увидеть и попробовать отключить без изысканий. Но кто же в этом огромном списке сервисов будет внимательно искать что-то подозрительное. Т.ч. пришлось сначала сократить список поиска до конкретных PID…):
- Узел службы: служба IIS (2)
А развернув его, видим две службы, одна из которых очень подозрительна (верный кандидат — «W3CVC»/»Служба веб-публикаций»):
- Служба веб-публикаций
- Служба активации Windows
Проверяем наши догадки.
- Находим в диспетчере задач в службах/сервисах службу «Служба веб-публикаций» и останавливаем ее.
- Находим в диспетчере задач в службах/сервисах службу «Apache2.4» и запускаем ее. Apache запустился — значит виновник определен правильно — это «Служба веб-публикаций»
- Находим в диспетчере задач в службах/сервисах службу «Служба веб-публикаций», идем по «Открыть в службах», находим ее и в свойствах выставляем «Ручной запуск».
- Перегружаем комп и видим, что наш Apache2.4 успешно стартует…
И так, проблема решена — Apache2.4 вернулся к обычной жизни.
Но как же такое случилось?
Ведь обновлений Windows не было. Ничего, что бы на первый взгляд, могло повлиять на подобное поведение вроде тоже не было. Так что, это останется, наверное тайной, т.к. разбираться в этом нет ни какого желания.
Доброго времени суток. Вчера столкнулся с проблемой, после обновления windows 10 перестал запускаться web сервер Apache. Первое что сделал посмотрел в службах процесс был выключен, включил. Диалоговое окно ответило мне цитирую «Не удалось запустить службу Apache 2.4 на Локальный компьютер. Ошибка 1067: Процесс неожидано завершен».
Удивился, погуглил. Нашел пост с переустановкой сервиса из реестра \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ nameservices
с запуском команды sfc /scannow
но уже после старта команды я догадался что тщетно трачу время.
В консольке написало что есть ошибки читай лог файл, а последняя строчка лога говорит что все ок. А в целом не нашел упоминание Апача в логе.
————-
2019-07-21 03:39:29, Info CSI 00000336 [SR] Verify and Repair Transaction completed. All files and registry keys listed in this transaction have been successfully repaired
————-
Позже вернул запись риестра на место, благо экспортировал ее.
Запуск с консоли апача не чего не дал и не выписал не чего … В логах апача (error.log) после старта есть запись «httpd.pid overwritten — Unclean shutdown of previous Apache run?» Что может значить я не знаю. Поиск по ключевым словам мне решений проблемы не дал. Подскажите как быть, и что сделать ? Сервачок использую для записи видеонаблюдения, а апач, с пыхом, и мусколом, для доступа к контенту. Linux лучше был бы, но возни не меньше …
error.log
[Sat Jul 20 23:55:02.437405 2019] [mpm_winnt:notice] [pid 2932:tid 760] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Sat Jul 20 23:55:04.796958 2019] [mpm_winnt:notice] [pid 3756:tid 704] AH00364: Child: All worker threads have exited.
[Sat Jul 20 23:55:18.093849 2019] [mpm_winnt:notice] [pid 2932:tid 760] AH00430: Parent: Child process 3756 exited successfully.
[Sun Jul 21 02:35:56.152534 2019] [core:warn] [pid 4152:tid 640] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
ore:warn] [pid 3552:tid 632] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jul 21 02:38:32.537338 2019] [core:warn] [pid 4132:tid 660] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
ore:warn] [pid 4436:tid 632] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jul 21 02:39:10.873452 2019] [core:warn] [pid 2792:tid 544] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jul 21 02:39:21.180445 2019] [core:warn] [pid 3972:tid 544] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
ore:warn] [pid 6884:tid 632] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jul 21 02:42:39.655080 2019] [core:warn] [pid 2880:tid 704] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jul 21 02:55:53.807741 2019] [core:warn] [pid 1088:tid 704] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jul 21 03:52:49.867302 2019] [core:warn] [pid 2908:tid 616] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jul 21 03:55:36.632698 2019] [core:warn] [pid 3896:tid 632] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
ore:warn] [pid 4124:tid 612] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
ore:warn] [pid 244:tid 628] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
ore:warn] [pid 3400:tid 660] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jul 21 15:48:51.468555 2019] [core:warn] [pid 1588:tid 632] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
[Sun Jul 21 16:18:57.792285 2019] [core:warn] [pid 5192:tid 508] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jul 21 18:12:00.361831 2019] [core:warn] [pid 6156:tid 600] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jul 21 18:18:56.846365 2019] [core:warn] [pid 2616:tid 656] AH00098: pid file C:/server/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
почему может не запускаться служба сервера Apache
☑
0
NIGHTHUNTER
02.10.21
✎
09:49
Идет такая ошибка http://joxi.ru/a2XLyRxilgPdB2 .
Ставил по видеоуроку. Вроде все должно запуститься.
1
NIGHTHUNTER
02.10.21
✎
09:53
2
Kassern
02.10.21
✎
09:57
верни httpd.conf в начальное состояние и установи апач как службу
3
ДенисЧ
02.10.21
✎
10:00
В error должны быть записи.
И вообще — такое очучуние (тм), что у тебя bind-address не прописан.
4
vde69
02.10.21
✎
10:01
xampp поставь, там все уже настроено и сбалансировано
5
ДенисЧ
02.10.21
✎
10:01
(4) А зачем ему для 1с «MySQL, интерпретатор скриптов PHP, язык программирования Perl и большое количество дополнительных библиотек, позволяющих запустить полноценный веб-сервер» ?
6
vde69
02.10.21
✎
10:05
(5) у него винда, это видно по (1) ставить апач на винду под 1с глупость, там доп проблемы всегда есть. Для 1с под виндой есть иса.
если уж он ставит апач под винду значит не только для 1с
7
Kassern
02.10.21
✎
10:06
(6) да нормально апач на винде работает, что вы так сразу то?
8
ДенисЧ
02.10.21
✎
10:07
(6) «Косой, отдай велосипед!» (с)
Ставить мускуль и пых под винду — ещё большая глупость
9
vde69
02.10.21
✎
10:09
(7) для примера: NTLM далеко не всегда работает
ну и далее по списку….
10
Kassern
02.10.21
✎
10:11
(9) и накой это ему для веб сервиса? У меня сейчас пару веб и http сервисов уже как год крутятся на апаче и без проблем в 1ской дружат)
11
vde69
02.10.21
✎
10:16
(10) я упустил момент где ТС описал, что ставит апач именно для веб сервиса…
банально на апачь есть проблемы с доменной авторизацией 1с если он и сервер 1с это разные машинки….
12
Kassern
02.10.21
✎
10:17
(11) у него до этого тема была, мол учу по видео урокам как веб сервис теребить, но ничего не получается, а следом эта тема)
13
NIGHTHUNTER
02.10.21
✎
10:37
Да ставлю апачи для 1с.
Нужно использовать IIS? Я его тоже не знаю.
Вот решил апачи ставить.
14
NIGHTHUNTER
02.10.21
✎
10:38
Можно ли откатить как то сейчас установку? И поставить заново?
15
NIGHTHUNTER
02.10.21
✎
10:40
(2) как поставить как службу ?
http://joxi.ru/Vm6GePvfRbLN12
16
NIGHTHUNTER
02.10.21
✎
10:42
апачи поставлен, но служба не запускается. Как откатиться? Повторить, если что не так вышло?
17
vde69
02.10.21
✎
10:45
18
Kassern
02.10.21
✎
10:47
(17) ахах, а следующая тема получается, что 1с рекомендует апач?) https://its.1c.ru/db/metod8dev#content:5978:hdoc
19
ДенисЧ
02.10.21
✎
10:53
(18) Да мало ли что там эта 1с рекомендует, что они в веб-серверах понимают…
20
acanta
02.10.21
✎
10:55
Фирма 1с рекомендует читать методические рекомендации фирмы 1с.
21
NIGHTHUNTER
02.10.21
✎
11:18
В текущем положенииЮ http://joxi.ru/a2XLyRxilgPGW2 .
Что мне делать?
Когда не стал запускаться, я начал делать по другому видео. Сменил структуру директорий.
Как быть сейчас? Буду рад подсказкам, направляющим к выходу из сложившейся у меня ситуации.
Хочу разобраться с веб сервисами. Научиться устанавливать — переустанавливать апачи. Сейчас вот зашел в тупик, как из него выходить?
22
Kassern
02.10.21
✎
11:29
(21) а куда апач то ставил? Там по умолчанию вроде C:\Apache24
23
Kassern
02.10.21
✎
11:29
(21) и какой путь в службе прописан?
24
vde69
02.10.21
✎
11:31
(21)
1. удали апач,
2. удали файлы апачь,
3. перезагрузи комп
4. начни все заново
25
ДенисЧ
02.10.21
✎
11:31
(21) Неправильно прописан путь к dll 1сины.
Конфиг свой выложи (httpd.conf)
26
ДенисЧ
02.10.21
✎
11:31
(24) 0. Напиши заявление по собственному.
27
Kassern
02.10.21
✎
11:33
1ску когда ставил, галочку поставил напротив веб сервисов?
28
NIGHTHUNTER
02.10.21
✎
12:02
(22) По одному уроку менял пути в директорию C:\Server и тд, буду пробовать.
(24) Как его удалить? Через установку и удаление программ? Буду разбираться. пока в процессе.
(27) Тоже посмотрю.
29
NIGHTHUNTER
02.10.21
✎
12:15
такой сейчас путь http://joxi.ru/zANbZgyC8y3pLA
(25) да он и правильный был все равно не запускалось
(25) https://cloud.mail.ru/public/b554/tzA569s36
30
ДенисЧ
02.10.21
✎
12:17
(29) «такой сейчас путь»
да ты самурай… Нас интересовало содержание файла, а не его путь…
31
NIGHTHUNTER
02.10.21
✎
12:30
(30) вот же он
32
NIGHTHUNTER
02.10.21
✎
12:31
#
# 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.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/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/access_log»
# with ServerRoot set to «/usr/local/apache2» will be interpreted by the
# server as «/usr/local/apache2/logs/access_log», whereas «/logs/access_log»
# will be interpreted as ‘/logs/access_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 specify a local disk on the
# Mutex directive, if file-based mutexes are used. If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
Define SRVROOT «c:/Server/bin/Apache24»
ServerRoot «c:/Server/bin/Apache24»
#
# Mutex: Allows you to set the mutex mechanism and mutex file directory
# for individual mutexes, or change the global defaults
#
# Uncomment and change the directory if mutexes are file-based and the default
# mutex file directory is not on a local disk or is not appropriate for some
# other reason.
#
# Mutex default:logs
#
# 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 access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.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 auth_form_module modules/mod_auth_form.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_core_module modules/mod_authn_core.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authn_socache_module modules/mod_authn_socache.so
#LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule authz_core_module modules/mod_authz_core.so
#LoadModule authz_dbd_module modules/mod_authz_dbd.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.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 brotli_module modules/mod_brotli.so
#LoadModule buffer_module modules/mod_buffer.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule cache_disk_module modules/mod_cache_disk.so
#LoadModule cache_socache_module modules/mod_cache_socache.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 data_module modules/mod_data.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 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 http2_module modules/mod_http2.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule heartbeat_module modules/mod_heartbeat.so
#LoadModule heartmonitor_module modules/mod_heartmonitor.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 lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
#LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
#LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
#LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.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_debug_module modules/mod_log_debug.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule lua_module modules/mod_lua.so
#LoadModule macro_module modules/mod_macro.so
#LoadModule md_module modules/mod_md.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_express_module modules/mod_proxy_express.so
#LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so
#LoadModule proxy_html_module modules/mod_proxy_html.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_http2_module modules/mod_proxy_http2.so
#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
#LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so
#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
#LoadModule ratelimit_module modules/mod_ratelimit.so
#LoadModule reflector_module modules/mod_reflector.so
#LoadModule remoteip_module modules/mod_remoteip.so
#LoadModule request_module modules/mod_request.so
#LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule sed_module modules/mod_sed.so
#LoadModule session_module modules/mod_session.so
#LoadModule session_cookie_module modules/mod_session_cookie.so
#LoadModule session_crypto_module modules/mod_session_crypto.so
#LoadModule session_dbd_module modules/mod_session_dbd.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
#LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
#LoadModule socache_dbm_module modules/mod_socache_dbm.so
#LoadModule socache_memcache_module modules/mod_socache_memcache.so
#LoadModule socache_redis_module modules/mod_socache_redis.so
#LoadModule socache_shmcb_module modules/mod_socache_shmcb.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 watchdog_module modules/mod_watchdog.so
#LoadModule xml2enc_module modules/mod_xml2enc.so
<IfModule unixd_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>
# ‘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 admin@example.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
#
# Deny access to the entirety of your server’s filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory />
AllowOverride none
Require all denied
</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.
#
#
# 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 «c:/Server/data/htdocs/»
<Directory «c:/Server/data/htdocs/»>
#
# Possible values for the Options directive are «None», «All»,
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that «MultiViews» must be named *explicitly* — «Options All»
# doesn’t give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be «All», «None», or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html index.htm index.php
</IfModule>
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files «.ht*»>
Require all denied
</Files>
#
# 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 «logs/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 «logs/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.example.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/ «${SRVROOT}/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 cgisock
</IfModule>
#
# «${SRVROOT}/cgi-bin» should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory «${SRVROOT}/cgi-bin»>
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule headers_module>
#
# Avoid passing HTTP_PROXY environment to CGI’s on this or any proxied
# backend servers which have lingering «httpoxy» defects.
# ‘Proxy’ request header is undefined by the IETF, not listed by IANA
#
RequestHeader unset Proxy early
</IfModule>
<IfModule mime_module>
#
# TypesConfig points to the file containing the list of mappings from
# filename extension to MIME-type.
#
TypesConfig conf/mime.types
#
# AddType allows you to add to or override the MIME configuration
# file specified in TypesConfig for specific file types.
#
#AddType application/x-gzip .tgz
#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
#
# AddHandler allows you to map certain file extensions to «handlers»:
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add «ExecCGI» to the «Options» directive.)
#
#AddHandler cgi-script .cgi
# For type maps (negotiated resources):
#AddHandler type-map var
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add «Includes» to the «Options» directive.)
#
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
</IfModule>
#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type. The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
#MIMEMagicFile conf/magic
#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 «The server made a boo boo.»
#ErrorDocument 404 /missing.html
#ErrorDocument 404 «/cgi-bin/missing_handler.pl»
#ErrorDocument 402 http://www.example.com/subscription_info.html
#
#
# MaxRanges: Maximum number of Ranges in a request before
# returning the entire resource, or one of the special
# values ‘default’, ‘none’ or ‘unlimited’.
# Default setting is to accept 200 Ranges.
#MaxRanges unlimited
#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall may be used to deliver
# files. This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
# Defaults: EnableMMAP On, EnableSendfile Off
#
#EnableMMAP off
#EnableSendfile on
# Supplemental configuration
#
# The configuration files in the conf/extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server, or you may simply copy their contents here and change as
# necessary.
# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf
# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf
# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf
# Language settings
#Include conf/extra/httpd-languages.conf
# User home directories
#Include conf/extra/httpd-userdir.conf
# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf
# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf
# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf
# Various default settings
#Include conf/extra/httpd-default.conf
# Configure mod_proxy_html to understand HTML4/XHTML1
<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule>
# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
33
ДенисЧ
02.10.21
✎
12:34
(32) И где тут хоть слово про 1с?
И да, там есть такой фрагмент ErrorLog «logs/error.log»
Что там? Обычно апач достаточно разговорчив.
34
Kassern
02.10.21
✎
12:37
(33) он еще не дошел до 1ски) Он не может просто апач поставить чтобы он как служба запустился
35
ДенисЧ
02.10.21
✎
12:37
(34) Так я тонко и намекаю на еррорлог… У него, зуб (39, мдурости предков) даю, что 80й порт занят…
36
Kassern
02.10.21
✎
12:40
посмотри еще раз в службе, какой там путь до файла библиотеки указан и проверь открыт ли у тебя 80 порт
37
Kassern
02.10.21
✎
12:41
может у тебя IIS на этом порту запущен вот апач и шлет в пеший поход.) Но судя по ошибке у тебя не верный путь к самому апачу в службе
38
Kassern
02.10.21
✎
12:44
(32) и не надо сюда такую портянку в сообщения скидывать, научитесь уже пастебином пользоваться. https://pastebin.com/5zakstpW
39
Kassern
02.10.21
✎
12:49
в крайнем случае вообще удали папку с апачем, заново скачай и распакуй по умолчанию на диске С. Далее можешь через реестр поправить ветку с твоей службой, указав что-то типа «C:\Apache24\bin\httpd.exe» -k runservice
40
Kassern
02.10.21
✎
12:49
и качай апач который именно для 1ски, а не первый попавшийся в инете.
41
DrShad
02.10.21
✎
12:56
снеси скайп, он у тебя занял 80 порт
42
МнеТолько Спросить
02.10.21
✎
14:03
(39)Если почитать инструкцию там обычно прям команда написана регистрации апача как службы, не надо трогать реестр
(40)Могу уточнить с каких пор для 1С какой-то особенный нужен апач?
43
МнеТолько Спросить
02.10.21
✎
14:04
httpd надо запустить в командной строке он сразу покажет ошибки при запуске если есть
44
Kassern
02.10.21
✎
14:17
(42) ну так а что команда то делает? Можно поставить апач как службу, все как вы пишите, а потом снести полностью папку апача и заново развернуть архив апача в этом же каталоге и служба без проблем запустится. По факту всего лишь ветка в реестре создается которая запускает экзешник апача с нужными командами, поэтому можно без проблем зайти в эту ветку и прописать правильный путь до апача
45
МнеТолько Спросить
02.10.21
✎
14:21
(44)Можно придумать еще 10 способов и получить идентичный результат. Кто ж спорит. Какой смысл лезть в реестр, если все делается штатными средствами. Мысль была в этом. А так, да хоть через задний проход зуб выдергивай, если получается нет проблемы.
46
Kassern
02.10.21
✎
14:25
(42) да прост есть разные сборки апача, с какой то была у меня проблема, скачал другую, без проблем 1ска взлетела на нем.
47
Kassern
02.10.21
✎
14:27
еще не стоит забывать про разрядность апача и 1ски
48
NIGHTHUNTER
02.10.21
✎
15:57
(33) я обнаружил только install.log в c:\server\bin\Apache24\logs\
получается ErrorLog «logs/error.log» у меня нет?
Installing Apache HTTP Server 2.x with
DomainName = example.com
ServerName = www.example.com
ServerAdmin = admin@example.com
ServerPort = 80
ServerSslPort = 443
ServerRoot = c:/Apache24
Rewrote docs/conf/extra/httpd-autoindex.conf.in
to c:/Apache24/conf/original/extra/httpd-autoindex.conf
Rewrote docs/conf/extra/httpd-default.conf.in
to c:/Apache24/conf/original/extra/httpd-default.conf
Rewrote docs/conf/extra/httpd-ssl.conf.in
to c:/Apache24/conf/original/extra/httpd-ssl.conf
Rewrote docs/conf/extra/httpd-multilang-errordoc.conf.in
to c:/Apache24/conf/original/extra/httpd-multilang-errordoc.conf
Rewrote docs/conf/extra/httpd-info.conf.in
to c:/Apache24/conf/original/extra/httpd-info.conf
Rewrote docs/conf/extra/httpd-userdir.conf.in
to c:/Apache24/conf/original/extra/httpd-userdir.conf
Rewrote docs/conf/extra/httpd-mpm.conf.in
to c:/Apache24/conf/original/extra/httpd-mpm.conf
Rewrote docs/conf/httpd.conf.in
to c:/Apache24/conf/original/httpd.conf
Rewrote docs/conf/extra/proxy-html.conf.in
to c:/Apache24/conf/original/extra/proxy-html.conf
Rewrote docs/conf/extra/httpd-vhosts.conf.in
to c:/Apache24/conf/original/extra/httpd-vhosts.conf
Rewrote docs/conf/extra/httpd-dav.conf.in
to c:/Apache24/conf/original/extra/httpd-dav.conf
Rewrote docs/conf/extra/httpd-languages.conf.in
to c:/Apache24/conf/original/extra/httpd-languages.conf
Rewrote docs/conf/extra/httpd-manual.conf.in
to c:/Apache24/conf/original/extra/httpd-manual.conf
Duplicated c:/Apache24/conf/original/extra/httpd-autoindex.conf
to c:/Apache24/conf/extra/httpd-autoindex.conf
Duplicated c:/Apache24/conf/original/extra/httpd-default.conf
to c:/Apache24/conf/extra/httpd-default.conf
Duplicated c:/Apache24/conf/original/extra/httpd-ssl.conf
to c:/Apache24/conf/extra/httpd-ssl.conf
Duplicated c:/Apache24/conf/original/extra/httpd-multilang-errordoc.conf
to c:/Apache24/conf/extra/httpd-multilang-errordoc.conf
Duplicated c:/Apache24/conf/original/extra/httpd-info.conf
to c:/Apache24/conf/extra/httpd-info.conf
Duplicated c:/Apache24/conf/original/extra/httpd-userdir.conf
to c:/Apache24/conf/extra/httpd-userdir.conf
Duplicated c:/Apache24/conf/original/extra/httpd-mpm.conf
to c:/Apache24/conf/extra/httpd-mpm.conf
Duplicated c:/Apache24/conf/original/httpd.conf
to c:/Apache24/conf/httpd.conf
Duplicated c:/Apache24/conf/original/magic
to c:/Apache24/conf/magic
Duplicated c:/Apache24/conf/original/charset.conv
to c:/Apache24/conf/charset.conv
Duplicated c:/Apache24/conf/original/extra/proxy-html.conf
to c:/Apache24/conf/extra/proxy-html.conf
Duplicated c:/Apache24/conf/original/extra/httpd-vhosts.conf
to c:/Apache24/conf/extra/httpd-vhosts.conf
Duplicated c:/Apache24/conf/original/extra/httpd-dav.conf
to c:/Apache24/conf/extra/httpd-dav.conf
Duplicated c:/Apache24/conf/original/mime.types
to c:/Apache24/conf/mime.types
Duplicated c:/Apache24/conf/original/extra/httpd-languages.conf
to c:/Apache24/conf/extra/httpd-languages.conf
Duplicated c:/Apache24/conf/original/extra/httpd-manual.conf
to c:/Apache24/conf/extra/httpd-manual.conf
переустанавливать буду
49
NIGHTHUNTER
02.10.21
✎
16:13
(36) посмотрю, но пока точно не знаю, как это определить
(40) А как определить это? Я качаю с официального сайта.
50
NIGHTHUNTER
03.10.21
✎
05:07
(24) Как мне удалить апачи? Его нет среди установки и удаления программ.
(27) Как определить что в составе 1с, можно использовать веб сервисы?
(33) А что в файле httpd.conf, должно быть написано про 1с?
(35) Как определить что порт 80 занят? Где это увидеть???
Получается нельзя использовать скайп и апачи ?
(36) В службе вижу не тот путь, исполняемого файла ((( Реестр править, или как переустановить?
У меня такой c:\Server\bin\Apache24\bin\
А там «C:\Apache24\bin\httpd.exe» -k runservice
http://joxi.ru/eAObaQlC6DYOV2
никогда толком не ставил апачи, по этому не отточенные умения и знания.
51
NIGHTHUNTER
03.10.21
✎
05:12
Итак, путь к исполняемому файлу изменил в реестре. Сейчас он стал правильный в службе.
И теперь при запуске апачи выходит ошибка, что выходила первые разы http://joxi.ru/nAyO34Buab1K0m .
52
NIGHTHUNTER
03.10.21
✎
05:24
Вот что выдала команда инсталл, видимо потому что он уже установлен.
http://joxi.ru/E2p654Vc4xZzKr
Попробую старт
53
NIGHTHUNTER
03.10.21
✎
05:25
То же самое, в службах, выбираю запустить, сразу останавливается. Пишет остановлено.
54
2mugik
03.10.21
✎
07:18
(0)ставил себе WAMP — вопросов вроде не возникало.
55
ДенисЧ
03.10.21
✎
07:19
(54) И ты на (5) ответь…
56
2mugik
03.10.21
✎
07:23
(55)Есть готовые сборки — зачем париться?
57
ДенисЧ
03.10.21
✎
07:27
(56) Ты не понял. Зачем тянуть на машину мускль и пых, если ему они не нужны?
А у ТС проблема простая, если уж с дефолтным конфигом не запускается. И её тут озвучили не один раз. Но он не понимает, что делает, без этого студенческие под(д)елки не запустить.
58
NIGHTHUNTER
03.10.21
✎
07:46
(54) Вы ставили когда, меняли настройки в конфигурационном файле?
Ставили для веб сервисов 1с ?
(5) Но может не будет лишним? Главное что бы веб сервисы можно было опробовать и запускать.
Пока я качал и ставлю апачи с официального сайта. Буду в процессе перебирать все остальное. Искать решение, что бы работало.
(57) я удалил скайп, и перегрузился, было 2 скайпа установлено. Это ме помогло.
Исправил путь к файлу в реестре. Сейчас идет ошибка http://joxi.ru/l2ZZ8O1cRL4pw2
Подскажите пожалуйста целенаправленно что делать?
59
Chai Nic
03.10.21
✎
07:48
(58) А что в журнале системных событий пишет?
60
NIGHTHUNTER
03.10.21
✎
07:49
(59) Как его открыть, скажите пожалуйста, если не трудно.
61
ДенисЧ
03.10.21
✎
07:50
(58) Замени listen 80 на, например, listen 12345 и запусти.
62
NIGHTHUNTER
03.10.21
✎
07:52
(59) Ок, панель управления, Администрирование. просмотр событий
63
NIGHTHUNTER
03.10.21
✎
07:54
(59) вот только что запустил, пишет не верная функция http://joxi.ru/4AkMw4vu0l6vKm
64
NIGHTHUNTER
03.10.21
✎
07:56
(61) поменял http://joxi.ru/Dr8De5vTJvXQjr
сохранил, сейчас пробую запустить.
65
Chai Nic
03.10.21
✎
07:56
(63) Попробуй устновить апач заново, без публикаций 1с. И проверь, запускается ли он в этом случае. И не выеживайся с путями, ставь по умолчанию в корень диска C
66
2mugik
03.10.21
✎
07:57
(58)ставил чтобы помучить мускл и пхп. но когда для 1с ставил тоже использовал какие-то готовые пакеты. В них как правило всегда идут апач+мускл+пхп. Джентельменский набор. Насколько помню либо ничего не менял либо какой-то минимум по инструкции ридми.
67
NIGHTHUNTER
03.10.21
✎
07:58
(61) Она запустилась. Ошибки нет, что была. Подскажите пожалуйста сейчас что дальше?
Как мне выйти на веб сервисы 1с ?
http://joxi.ru/ZrJbWlNCbDpYZr
68
2mugik
03.10.21
✎
08:01
(67)Выпни того кто занимает 80 порт. и поставь на него апач опять.
69
NIGHTHUNTER
03.10.21
✎
08:02
(65) А как определять с публикацией 1с или без? Я пока по инструкции только скачивал и ставил апач и все.
пока вроде запустился с правкой (64) не знаю на сколько это все корректно.
(66) Ясно.
(68) Как мне это определять? Я удалил скайп, не помогало.
70
NIGHTHUNTER
03.10.21
✎
08:02
(68) Как узнать, где посомтреть, что занимает этот 80й порт ?
71
2mugik
03.10.21
✎
08:06
(70)загугли.
72
Мимохожий Однако
03.10.21
✎
08:07
(67) Попробуй через конфигуратор опубликовать 1С. Заниматься портами нет смысла, если апач уже работает.
73
NIGHTHUNTER
03.10.21
✎
08:22
Вот он у меня самый первый 80 порт ?
http://joxi.ru/12MbKqBCw1jVBA
74
NIGHTHUNTER
03.10.21
✎
08:25
(72) Буду пробовать.
(73+) В диспетчере задач не нашел процесса с ИД 4
75
NIGHTHUNTER
03.10.21
✎
08:26
(73+) А ну вот он наверное http://joxi.ru/MAjgV4Gf1o565r
системой занят. Так ли?
76
NIGHTHUNTER
03.10.21
✎
08:28
(75+) если я правильно отслеживаю, то 80 порт занят системой? Как его освобождать?
(72) Это сейчас буду пробовать.
(61) А верно ли ставить для Апачи порт 12345 ?
77
hhhh
03.10.21
✎
09:12
(76) верно.но ставлю 81
78
NIGHTHUNTER
03.10.21
✎
11:06
(77) Как это работает? Можно ставить любое число, отвечающее за не задействованный порт?
79
NorthWind
03.10.21
✎
11:12
(78) просто. TCP-порты это целые числа с 1 по 65535. Порты с 1 по 1023 обычно зарезервированы под известные стандартные службы, поэтому их лучше не трогать. Последующие тоже могут быть зарезервированы какими-нибудь экзотическими сервисами, но использует их полтора человека, поэтому вероятность того что такой сервис будет стоять в вашей сети — крайне мала. То есть можно пользовать для своих целей. Если паче чаяния порт задействован — просто берешь другую чиселку, +1. И все.
80
NorthWind
03.10.21
✎
11:15
недостаток использования нестандартного порта в том, что к ссылкам на узел придется приписывать :[порт], например, http://myserver:12345. Что иногда забываешь делать и думаешь — ой, а чейта не работает.
81
ДенисЧ
03.10.21
✎
11:15
(79) А лучше сначала понять, какого …. порт занят и что за зараза на нём висит…
82
NorthWind
03.10.21
✎
11:17
(81) ну это понятно, только для ТС, судя по всему, высшая математика. Не поймет.
83
NIGHTHUNTER
03.10.21
✎
11:19
(80) ясно, но до этого пока не дошел ((. Пока все загадочно.
(81) Да IIS скорее на нем висит. Есть инструкции как останавливать эту службу. Когда я искал, там написано что на нем просто система.
Видимо все же есть смысл освобождать 80 порт.
84
NorthWind
03.10.21
✎
11:21
если устанавливать пытаетесь на Windows Server, то да, есть некоторая вероятность что IIS установлен и работает.
85
NIGHTHUNTER
03.10.21
✎
11:24
(84) Windows 10
86
NorthWind
03.10.21
✎
11:46
(85) тогда странно. Я ставил апач на свою машину под Win10 примерно с год назад. Все работало и под http, и под https. Стандартно там нет ничего такого, что заняло бы 80 порт.
(40) нет никаких специальных сборок под 1С. Вы с постгри путаете, вероятно. Качают любую нормально работающую сборку под винду откуда-нибудь с apachehaus или как там называются места где их выкладывают.
87
NorthWind
03.10.21
✎
11:51
единственное что — там битность, по-моему, должна совпадать у апача с 1С, которая публикуется, потому что апач загружает в свое адресное пространство 1Совский модулек. И если битность не совпадет, то ничего он не загрузит.
88
NorthWind
03.10.21
✎
11:56
Вот, кстати, годная статья, хоть и старая: https://infostart.ru/1c/articles/646384/
89
Мимохожий Однако
03.10.21
✎
12:20
(85) Так ты 1С установил или нет? Я волнуюсь )
90
vde69
03.10.21
✎
12:25
(86) апач существует в двух основных сборах, и они друг с другом не очень совместимы, плюс для каждой сборки 2 разрядности. Итого есть 4 дистрибутива… Погугли 😁
91
pechkin
03.10.21
✎
12:26
(90) и все сборки работают отлично
92
vde69
03.10.21
✎
12:40
(91) да, но но для расширений нужны длл той же версии,
Я вот например с установкой дебугера для пхп так нарвался…
93
NIGHTHUNTER
03.10.21
✎
13:11
у меня под localhost вот что открывается http://joxi.ru/a2XLyRxilgXBn2
как апачи проверять? он запущен, но кажется я его и не устанавливал
в просто распаковал дистрибутив. это и не понятно, ни иконок никаких нет
как мне проверить работу апачи? как на нем запустить веб сервис?
94
hhhh
03.10.21
✎
15:59
(93) поставь апач 2.2, чего ты паришься? Он устанавливается без проблем за 3 минуты в любых условиях и вполне тебя устроит для тестирования веб-сервисов.
95
NorthWind
03.10.21
✎
16:14
(90) ну, я как бы знаю. Есть ssl, есть no-ssl. Но к 1С это никакого отношения не имеет, все они могут с ней работать.
96
ДенисЧ
03.10.21
✎
16:42
(94) 2.2? Скажите, милейший, а вы правда до сих пор на вин 3.11 работаете?
97
hhhh
03.10.21
✎
16:50
(96) ну, поставили лет 7 назад, и прекрасно работает с веб сервисами, заменять не планируем.
98
NorthWind
03.10.21
✎
17:33
(96) а насколько часто обновляется сборка под винду? С апачем в этом плане все не вполне понятно, ведь у него это дело централизованно не хранится в каком-то одном месте… Когда мне было надо, самое свежее что я нашел — это был какой-то 2.4.х (последние цифры не помню), и он датировался чуть ли не 2013 годом… Правда, работал без каких-либо проблем, в том числе под Win10.
99
NIGHTHUNTER
04.10.21
✎
04:54
(94) Да поставил я 2.4. Ставить нужно последние версии программ же.
Например в случае с joxi, приходится использовать старую версию. Хорошо в доступности и работает.
Так как новые просто не работают (((
Апачи новый ставлю, ставится, все. Разобрался.
Сейчас хочу понять как использовать его для веб сервисов 1с. И как быть если так же IIS запущен?
100
NIGHTHUNTER
04.10.21
✎
05:04
Подскажите пожалуйста, как сейчас дальше действовать правильно. Что бы проверить публикацию веб сервисов, и начать с ними работу ?
http://joxi.ru/1A5MePyuzJqW0A
http://joxi.ru/a2XLyRxilgnd72
101
NIGHTHUNTER
04.10.21
✎
11:46
Сервер IIS остановил.
Apache настроен. Служба выполняется.
Но вводя в браузере localhost , пишет что не удается получить доступ к сайту http://joxi.ru/D2PlR54CB67Dj2
что у меня не так настроено может быть? Подскажите пожалуйтса.
102
NIGHTHUNTER
04.10.21
✎
11:55
все заработало!!!!!
http://joxi.ru/12MbKqBCw13MyA
вернул Apachi на 80 порт
IIS же остановил .
Сейчас как настраивать в 1с?
Products
Webtrends Analytics 8.0x
Issue
The copy of Apache installed by Webtrends fails to start using the services control panel, the apache.exe file, or by restarting the Webtrends – User interface service. You may also see one or more of the following error messages:
The Webtrends – Apache service terminated with service-specific error 1 (0x1).
The Apache service named reported the following error:
>>> Unable to open logs.
Starting Apache.exe manually from the bin directory may yield one or more the following errors:
The Apache service named reported the following error:
>>> no listening sockets available, shutting down.
The Apache service named reported the following error:
>>> The port number “pdxfasteenn02:” is outside the appropriate range (i.e., 1..65535).
The Apache service named reported the following error:
>>> Syntax error on line 222 of C:/Program Files/Webtrends/common/apache/conf/httpd.conf:
You have tried renaming the Apache and Tomcat directories and doing a modified installation to create them from scratch and the issue remains unresolved.
Resolution
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:
ServerNamepdxfasteenn02: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.
In a previous article, we’ve explored the issue of Apache being unable to start on macOS devices. In this article, we will be exploring the same thing, but for the Windows version of XAMPP.
What should you do if XAMPP’s Apache service does not run on your Windows machine? Read on to find out.
Update 6 April 2023: Added some new solutions to the article.
- The problem
- Possible causes and fixes
- Changing the default XAMPP Apache port
- Disabling the World Wide Publishing Service (W3PS)
- Re-installing XAMPP
- Troubleshooting using XAMPP logs
- Getting output from
apache_start.bat
- Reading Apache logs
- Getting output from
- Conclusion
1. The problem
If Apache is unable to start on your XAMPP Control Panel, you will likely see the following error shown below:
When you try to start Apache Web Server, the XAMPP Control Panel will attempt to do so, but end up failing abruptly, mentioning that “Apache shutdown unexpectedly” (like the red text shown in the photo above).
Below is a transcription of the error, with the shutdown message highlighted.
[Apache] Attempting to start Apache app...
[Apache] Status change detected: running
[Apache] Status change detected: stopped
[Apache] Error: Apache shutdown unexpectedly
[Apache] This may be due to a blocked port, missing dependencies,
[Apache] improper privileges, a crash, or a shutdown by another method.
2. Possible causes and fixes
If XAMPP’s Apache cannot start, it is very likely that your default HTTP port (80), is blocked or being used by another application. To fix that, you can explore the solutions below.
a. Changing the default XAMPP Apache port
To determine if port 80 being blocked is your actual problem, you can change the default port number for Apache and see if it fixes your issue.
To change XAMPP Apache’s port number, refer to the steps below:
- Click on the Config button next to the Apache Web server (refer to the image below), and select
httpd.conf
. - In the file, search for
Listen 80
and change it toListen 8080
. - Once done, try starting Apache on XAMPP again. If the problem was due to a blocked port, Apache should now start with no problem.
Note that if you are using any other port than 80 or 443, you will have to append the port number at the end of the URL to access the page(s) on XAMPP. For example, if Apache listens to port 8080, the URL you will have to access will be localhost:8080
instead of the default localhost
.
Note that for pre-existing virtual hosts on your XAMPP Apache, you will also need to update them to listen to port 8080 instead of 80.
If XAMPP still fails to start after changing your port, that means that the problem is not caused by a blocked port. In this case, you will want to undo the changes made to httpd.conf
, so that Apache is back to using Port 80.
b. Disabling the World Wide Web Publishing Service (W3PS)
If you are running a Windows server machine, you may have a process running called the World Wide Web Publishing Service (W3PS). The W3PS is a component of Windows’ Internet Information Services (IIS) — which is responsible for providing HTTP and HTTPS services on Windows machines — may be using port 80, thereby not allowing XAMPP Apache to connect to the same port.
Below, you can read instructions on how to either deactivate or stop the W3PS service, so that port 80 can be freed up for Apache’s use.
To deactivate the W3PS service (so that it doesn’t automatically start on your Windows device):
- Open the Control Panel.
- Select View by > Large Icons, so that all the icons in the Control Panel appear. Then, select Programs and Features.
- In the Programs and Features window, click on Turn Windows features on or off.
- In the newly-opened window, expand the Internet Information Service field, and uncheck the World Wide Web Services checkbox (see the image below).
- Once done, reboot your device, then try to start XAMPP Apache again. It should be able to run on port 80 now.
To stop the W3PS service (for this current boot) on your Windows device:
- Open the Windows Service Manager by pressing Windows ⊞ + R keys, and in the popped window, type in
services.msc
and press Enter. - Search for the World Wide Publishing Service option under the Name column and open its properties by double-clicking on it.
- In the General tab, click Startup Type and switch it to manual. Now, you are able to turn on/off W3PS manually.
- Stop the service and click OK.
- Try to start the XAMPP Apache web server again.
c. Re-installing XAMPP
If neither of the 2 fixes above worked for you, then there is likely a misconfiguration in your XAMPP installation or Apache config files. In such a case, you have 2 options:
- Read the log files to find out what happened, or;
- Re-install XAMPP (here’s the official source)
In most cases, re-installation will be the easier option. If you can uninstall it through the Add or remove programs interface, that would be best. Otherwise, if you can’t find XAMPP on Add or remove programs, you will have to find the folder where XAMPP is and manually remove the folder (it is usually found in C:\xampp
). Always uninstall through Add or remove programs (or the Control Panel) if you have the option.
If you can’t find where XAMPP is installed on your computer, you can also do a search for xampp-control.exe
on your File Explorer. The folder that contains xampp-control.exe
is where XAMPP was installed.
3. Troubleshooting using XAMPP logs
If you still have trouble starting Apache after trying the solutions above, then your issue is very specific to your machine. In such a case, you will have to consult Apache’s or XAMPP’s log files to pinpoint what the error is.
a. Getting output from apache_start.bat
Funnily enough, the XAMPP Control Panel doesn’t actually output the messages that Apache outputs. Hence, if Apache doesn’t start, you can actually try running the apache_start.bat
file in your XAMPP install folder (for most of you, it should be in C:\xampp\apache_start.bat
). This will try to start XAMPP’s Apache using the Command Prompt, and output messages that you might otherwise not see in the Control Panel.
b. Reading Apache logs
You can also read Apache’s logs (error.log
is probably the most useful one) to see if it provides you with any insight. The logs can be accessed from XAMPP Control Panel, using the Log button beside the line for the Apache module.
These logs will not be as helpful as the output from apache_start.bat
however, as these logs are usually filled up when Apache is running; but our problem here is that it can’t even start.
4. Conclusion
Having read the article and applied the described solutions, we hope you could manage to fix your problems. Of course, there can be many more problems that cause this, and many with different solutions for these problems. If you are facing one of them that is not described in the article, please leave us a comment so that we can add this to the article (and credit you). Hence, your comment will help us make this article more and more helpful to everyone.