Apache ошибка при запуске приложения 0xc000007b

I am setting up Apache 2.4 on 64-bit Windows Server 2008 R2. I downloaded the 32-bit zip from Apache Lounge and unzipped, also installed VC10 SP1.

Then, when I tried to run httpd.exe, I got an error:
The application failed to initialize properly(0xc000007b)

The same thing worked on my 64-bit Win7.

Any insights?


EDIT

Ran Depency Walker on httpd.exe. Missing dependencies are:

  • IESHIMS.DLL
  • MF.DLL
  • MFPLAT.DLL
  • MFREADWRITE.DLL
  • WLANAPI.DLL

IESHIMS.DLL: This is also missing in my Win7 httpd. Don’t think is the problem.
WLANAPI.DLL: Go to Control Panel > Administrative Tools > Server Manager > Features (left panel) > Add Feature > check Wireless LAN Services to enable it. After that, wlanapi.dll is in the system32 folder.
The rest: These are related to «Media Foundation», but I don’t know how to install/enable.
(edit: Some say installing «Desktop Experience» will include Media Foundation, will test)


EDIT2

Apache 2.2 from apache.org is also missing those dlls but runs perfectly fine on the server!!

So, it’s not a dependency problem…

19 / 16 / 1

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

Сообщений: 252

1

05.06.2012, 22:04. Показов 5385. Ответов 1


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

Устанавливал Apache как написано в «Инструментарий веб-разработчика».
Но когда дошел до этого пункта: C:Apache2binhttpd.exe -k install
Выбивает такую ошибку:

Ошибка при запуске приложение (0x000007b). Для выхода из приложения нажмите на кнопку «ОК».

Никто не подскажет как это решить?

P.S. Винда Windows 7 x64

Добавлено через 6 часов 13 минут
Может быть эта ошибка выводиться потому, что система толком голая? Т.к. я позавчера снес ее и новую установил. Драйвера вроде все поставил на железо.



0



Programming

Эксперт

94731 / 64177 / 26122

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

Сообщений: 116,782

05.06.2012, 22:04

1

680 / 330 / 5

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

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

06.06.2012, 20:20

2

смотрите логи apache — что там написано по этому поводу

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

Винда Windows 7 x64

апач какой — х64 или х32?



0



Windows 7 64bit, администратор, DrWeb.
Open Server 5.2.2
При конфигурации модулей (Apache 2.2 , php 5.4) все работает
безупречно.
При попытке перезапуска с модулями Apache 2.4, php 5.5 происходит
сбой при запуске Apache 2.4

httpd.exe
Ошибка при запуске приложения
0xc000007b

man.log:

<code>
2014-12-19 17:11:44 ———————————————
2014-12-19 17:11:44 Начало процедуры запуска сервера
2014-12-19 17:11:44 Создание виртуального диска
2014-12-19 17:11:44 Обновление Hosts файла
2014-12-19 17:11:44 Обновление конфигурации MySQL-5.5
2014-12-19 17:11:44 Обновление конфигурации Sendmail
2014-12-19 17:11:44 Обновление конфигурации PHP-5.5
2014-12-19 17:11:45 Обновление конфигурации PHPMyAdmin
2014-12-19 17:11:45 Обновление конфигурации Apache-2.4
2014-12-19 17:11:45 Запуск MySQL-5.5
2014-12-19 17:11:45 Запуск Apache-2.4
2014-12-19 17:11:45 Проверка состояния сервера
2014-12-19 17:12:18 Не удалось запустить Apache-2.4
2014-12-19 17:12:18 Сбой запуска!
2014-12-19 17:12:18 ———————————————
2014-12-19 17:12:18 Начало процедуры остановки сервера
2014-12-19 17:12:19 Остановка системных модулей
2014-12-19 17:12:19 Отключение виртуального диска
2014-12-19 17:12:19 Сервер успешно остановлен за 0,749 секунд!
</code>

error.log — отсутствует.

profile:

<code>
[main]
start=30
allow=0
autowait=0
emformat=txt
maxmemcache=64
cgiprocess=6
pginitencode=UTF8
pginitlocale=Russian_Russia.1251
ip=127.0.0.1
http_log=1
mysql_log=0
postgresql_log=0
mongodb_log=0
dns_log=0
memcache_log=0
redis_log=0
debugmail=0
mysqlcharset=utf8_general_ci
phpdriver=»PHP-5.5″
httpdriver=»Apache-2.4″
mysql_driver=»MySQL-5.5″
pg_driver=none
mongo_driver=none
memcachedriver=none
redisdriver=none
dnsdriver=none
httpcharset=notset
logreadsize=256
showversion=0
astart=0
crdisk=2
crpath=0
crdomain=0
showfvr=0
showprogs=1
hdomains=0
balloon=1
favorite=0
showswitch=1
debugmode=0
stext=1
sbrowser=1
email=0
vdisk=W
selfhosts=0
webdir=»domains»
browser=»C:MaxthonPortableBinMaxthon.exe»
textred=»C:Program Files (x86)Notepad++notepad++.exe»
filebrowser=»»
sfilebrowser=0
fzone=none
maxrequests=0
folders=»public_html wwwhtdocs www http htdocs docs web httpdocs public html site»

[ports]
mysqlport=3306
postgresqlport=5432
mongodbport=27017
httpport=80
httpsport=443
httpbackport=8080
ftpport=21
sftpport=990
phpport=9000
redisport=6379
memcacheport=11211

[ftp]
ftp=0
ftpcommandtimeout=600
ftpconnecttimeout=60

[sendmail]
smtp_server=»»
smtp_port=»»
auth_username=»»
auth_password=»»
smtp_ssl=0
pop3_server=»»
pop3_username=»»
pop3_password=»»
force_sender=»»
</code>

Переустановил систему, и тут началось. Php беру от openserver, в переменные среды прописал, при запуске через консоль выдает эту ошибку 53e1f77ac60347aebd1a1369883f7367.png как это побороть? Подскажите…


  • Вопрос задан

    более трёх лет назад

  • 1530 просмотров

The main problem, of course, is that a DLL file is missing, or, even more likely, corrupt. If this is the case, then I have some pretty good ideas (especially if you’ve downloaded and installed a DLL manually!)…

TLDR: Delete every manually copy/pasted DLL you’ve done, uninstall old redistributable installs, and reinstall new redistributables for both 32-bit and 64-bit installs.

What To Do

This solution of copying/pasting missing DLL’s into system32, etc., used to work since I can remember in the 1990’s, but it doesn’t seem to work anymore (2020). So if you run into this problem recently, I suggest:

  • Within windowssystem32 and windowsSysWOW64, delete all files that match ms*.dll, that the operating system will allow you delete as admin.
  • Uninstall all Visual C++ Redistributables that you have with Windows. This prevents the «You already have this!» dialogue showing up upon reinstall, as detailed in the next step when we re-install.
  • Reinstall the 2015-2019 Visual C++ Redistributable from a regularly available download site. If this does not work, download and install the others, but personally, the 2015-2019 covered everything for me. Regardless of your machine, install both x32 and x64 packages! (All Download Links: Collected VC++ Download Links; MSVCR120.dll Fix; MFC140U.dll Fix.)

How You Know It’s Working

There’s a lot of variation in coders experiencing this, so, the idea that there’s one single, possible solution is often discarded, but let’s be positive!

  • If deleting the matching ms*.dll files worked, then you will no longer get an error about error code 0xc000007b. Instead, you’ll get a message about a missing .dll. This tells you that you’re hitting the right code path!
  • If installing the redistributable works, then certain popular, DLL files should appear in the above-mentioned system32 and SysWO64 folders. For instance: MSVCR120.dll, MSVCR140.dll, MSVCR100.dll, MSVCP100.dll, MSVCP120.dll, MSVCP140.dll, and friends.

Last, Possible Best Chances

Sometimes things don’t work according to plan (as we all in the Windows world know). You can also try the following!

  • Open the «Turn Windows Features on or off» tab in Windows (supported in Windows 8-10). Uncheck the .NET Framework installations. You’ll see a small installation go by.
  • Restart the system. Go to the above feature again, recheck .NET Framework, and click «okay». If this works, you’ll see a «installing and updating .NET framework» message that takes maybe a minute or so to go by. Once this is done, I recommend a reboot again.

Good luck!

Понравилась статья? Поделить с друзьями:
  • Apache не удалось запустить службу код ошибки 1
  • Apache не запускается ошибок нет
  • Apache как служба ошибка 1
  • Apache выдает ошибку при запуске
  • Apache вывод ошибок в браузер