Autor Zpráva
Batrachus
Profil
Ahoj, snažím se nakonfigurovat Apache 2.2 na Windows XP tak, aby na něm běželo PHP 5.3.6

Při spuštění mi vyhodí následující hlášku:

Cannot load php5apache2_2.dll into Apache: Uvedená \xe1 procedura nebyla nalezena

Tahle chyba se bohužel nedá vygooglit.

Nevíte, proč to nejde? Hledal jsem na internetu různé návody na instalaci, trochu se lišily, ale tak nějak jsem z nich vydedukoval, co mám dělat a udělal jsem to. Takže, nevíte, kde může být problém?
Davex
Profil
Příčin může být několik a pro nalezení té správné se musí prohledat logy.

1) Je nějaká chyba v Systémovém Event Logu?
2) Je nainstalovaná správná verze knihovny VC++ 2008?
3) Zaznamenal Apache nějakou chybu do souboru error.log?
4) Stáhl jsi správnou verzi PHP Thread Safe?
5) Je správná verze knihovny php5ts.dll v místě, kde jí OS může najít? (Např. ve stejném adresáři jako je binárka httpd.exe ...\Apache\bin, nebo v adresáři zadaném v proměnné PATH, nebo v adresáři %windir%\system32)
Batrachus
Profil
1) Cože?
2) Ano (asi)
3)
Starting the Apache2.2 service
The Apache2.2 service is running.
] Apache/2.2.17 (Win32) configured -- resuming normal operations
[Fri Apr 29 18:34:35 2011] [notice] Server built: Oct 18 2010 01:58:12
[Fri Apr 29 18:34:35 2011] [notice] Parent: Created child process 3908
[Fri Apr 29 18:34:35 2011] [notice] Child 3908: Child process is running
[Fri Apr 29 18:34:35 2011] [notice] Child 3908: Acquired the start mutex.
[Fri Apr 29 18:34:35 2011] [notice] Child 3908: Starting 64 worker threads.
[Fri Apr 29 18:34:35 2011] [notice] Child 3908: Starting thread to listen on port 80.
[Fri Apr 29 18:34:44 2011] [error] [client 127.0.0.1] File does not exist: C:/server/prog/apache/htdocs/favicon.ico
[Fri Apr 29 18:35:06 2011] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Apr 29 18:35:06 2011] [notice] Child 3908: Exit event signaled. Child process is ending.
httpd.exe: Syntax error on line 486 of C:/server/prog/apache/conf/httpd.conf: Cannot load C:/server/prog/php/ext/php5apache2.dll into server: Uveden\xfd modul nebyl nalezen.  
[Fri Apr 29 18:35:06 2011] [warn] (OS 995)Vstupně-výstupní operace byla přerušena buď z důvodu ukončení podprocesu, nebo na žádost aplikace.  : winnt_accept: Asynchronous AcceptEx failed.
[Fri Apr 29 18:35:07 2011] [notice] Child 3908: Released the start mutex
[Fri Apr 29 18:35:08 2011] [notice] Child 3908: All worker threads have exited.
[Fri Apr 29 18:35:08 2011] [notice] Child 3908: Child process is exiting
Starting the Apache2.2 service
The Apache2.2 service is running.
pid file C:/server/prog/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Apr 29 18:36:04 2011] [notice] Apache/2.2.17 (Win32) configured -- resuming normal operations
[Fri Apr 29 18:36:04 2011] [notice] Server built: Oct 18 2010 01:58:12
[Fri Apr 29 18:36:04 2011] [notice] Parent: Created child process 1500
[Fri Apr 29 18:36:04 2011] [notice] Child 1500: Child process is running
[Fri Apr 29 18:36:04 2011] [notice] Child 1500: Acquired the start mutex.
[Fri Apr 29 18:36:04 2011] [notice] Child 1500: Starting 64 worker threads.
[Fri Apr 29 18:36:04 2011] [notice] Child 1500: Starting thread to listen on port 80.
[Fri Apr 29 18:36:08 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/server/www/
[Fri Apr 29 18:36:16 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/server/www/index.php
[Fri Apr 29 18:37:38 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/server/www/
[Fri Apr 29 18:37:40 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/server/www/
[Fri Apr 29 18:37:53 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/server/www/
[Fri Apr 29 18:37:55 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/server/www/
[Fri Apr 29 18:38:00 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Apr 29 18:38:00 2011] [notice] Child 1500: Exit event signaled. Child process is ending.
[Fri Apr 29 18:38:01 2011] [notice] Child 1500: Released the start mutex
[Fri Apr 29 18:38:02 2011] [notice] Child 1500: All worker threads have exited.
[Fri Apr 29 18:38:02 2011] [notice] Child 1500: Child process is exiting
[Fri Apr 29 18:38:02 2011] [notice] Parent: Child process exited successfully.
[Fri Apr 29 18:38:08 2011] [notice] Apache/2.2.17 (Win32) configured -- resuming normal operations
[Fri Apr 29 18:38:08 2011] [notice] Server built: Oct 18 2010 01:58:12
[Fri Apr 29 18:38:08 2011] [notice] Parent: Created child process 2160
[Fri Apr 29 18:38:08 2011] [notice] Child 2160: Child process is running
[Fri Apr 29 18:38:08 2011] [notice] Child 2160: Acquired the start mutex.
[Fri Apr 29 18:38:08 2011] [notice] Child 2160: Starting 64 worker threads.
[Fri Apr 29 18:38:08 2011] [notice] Child 2160: Starting thread to listen on port 80.
[Fri Apr 29 18:38:12 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/server/www/
[Fri Apr 29 18:38:29 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Apr 29 18:38:29 2011] [notice] Child 2160: Exit event signaled. Child process is ending.
[Fri Apr 29 18:38:30 2011] [notice] Child 2160: Released the start mutex
[Fri Apr 29 18:38:31 2011] [notice] Child 2160: All worker threads have exited.
[Fri Apr 29 18:38:31 2011] [notice] Child 2160: Child process is exiting
[Fri Apr 29 18:38:31 2011] [notice] Parent: Child process exited successfully.
[Fri Apr 29 18:38:35 2011] [notice] Apache/2.2.17 (Win32) configured -- resuming normal operations
[Fri Apr 29 18:38:35 2011] [notice] Server built: Oct 18 2010 01:58:12
[Fri Apr 29 18:38:35 2011] [notice] Parent: Created child process 1052
[Fri Apr 29 18:38:35 2011] [notice] Child 1052: Child process is running
[Fri Apr 29 18:38:35 2011] [notice] Child 1052: Acquired the start mutex.
[Fri Apr 29 18:38:35 2011] [notice] Child 1052: Starting 64 worker threads.
[Fri Apr 29 18:38:35 2011] [notice] Child 1052: Starting thread to listen on port 80.
[Fri Apr 29 18:38:38 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/server/www/
[Fri Apr 29 18:38:39 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/server/www/
[Fri Apr 29 18:38:53 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/server/www/index.html
[Fri Apr 29 18:40:32 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Apr 29 18:40:32 2011] [notice] Child 1052: Exit event signaled. Child process is ending.
[Fri Apr 29 18:40:33 2011] [notice] Child 1052: Released the start mutex
[Fri Apr 29 18:40:34 2011] [notice] Child 1052: All worker threads have exited.
[Fri Apr 29 18:40:34 2011] [notice] Child 1052: Child process is exiting
[Fri Apr 29 18:40:34 2011] [notice] Parent: Child process exited successfully.
[Fri Apr 29 18:40:36 2011] [notice] Apache/2.2.17 (Win32) configured -- resuming normal operations
[Fri Apr 29 18:40:36 2011] [notice] Server built: Oct 18 2010 01:58:12
[Fri Apr 29 18:40:36 2011] [notice] Parent: Created child process 3712
[Fri Apr 29 18:40:36 2011] [notice] Child 3712: Child process is running
[Fri Apr 29 18:40:36 2011] [notice] Child 3712: Acquired the start mutex.
[Fri Apr 29 18:40:36 2011] [notice] Child 3712: Starting 64 worker threads.
[Fri Apr 29 18:40:36 2011] [notice] Child 3712: Starting thread to listen on port 80.
[Fri Apr 29 18:40:39 2011] [error] [client 127.0.0.1] File does not exist: C:/server/www/styl.css, referer: http://localhost/index.html
[Fri Apr 29 18:40:52 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Apr 29 18:40:52 2011] [notice] Child 3712: Exit event signaled. Child process is ending.
[Fri Apr 29 18:40:53 2011] [notice] Child 3712: Released the start mutex
[Fri Apr 29 18:40:54 2011] [notice] Child 3712: All worker threads have exited.
[Fri Apr 29 18:40:54 2011] [notice] Child 3712: Child process is exiting
[Fri Apr 29 18:40:54 2011] [notice] Parent: Child process exited successfully.


4) Ano
5) Ano

Stále to ale nefunguje.
Davex
Profil
Batrachus:
1) Cože?
Ve Windows XP: Správa počítače » Systémové nástroje » Prohlížeč událostí » Systém. Bývají tam chyby od SideBySide, že chybí knihovna Microsoft.VC90.CRT.

2) Ano (asi)
Musíš si být jistý. Nedávno to tím bylo - cannot load php5apache2_2.dll.

Stále to ale nefunguje.
To znamená co? Podle logu Apache běží.
Batrachus
Profil
1) Našel jsem tam cosi jako tohle:

The Apache service named reported the following error:
>>> httpd.exe: Syntax error on line 489 of C:/server/prog/apache/conf/httpd.conf: Cannot load C:/server/prog/php/ext/php5apache2_2.dll into server: Uveden\xe1 procedura nebyla nalezena. .

Další informace získáte v Centru pro nápovědu a pomoc na http://go.microsoft.com/fwlink/events.asp.

2) Jak mám zjistit, jestli mám nainstalovanou tu správnou verzi? Včera jsem zkoušel instalovat tu vcredist_x86.exe z toho M$ webu. Nefungovalo. Mám postupně instalovat jednu po druhé a zkoušet, kdy to funguje?

3) Během toho 29. dubna jsem po nějakou dobu zkoušel měnit soubor httpd.conf. Buďto to ale nefungovalo nebo to fungovalo bez PHP. Proto se tam objevuje, že to běží. Že to stále nefunguje znamená, že je to pořád ta samá chyba.
Davex
Profil
Apache si stěžuje na syntaktickou chybu, takže je možná špatně cesta k souboru C:/server/prog/php/ext/php5apache2_2.dll. Odhaduji, že by tam nemělo být to ext/, ale bez znalosti konkrétní situace se to nedá tvrdit s jistotou.
Batrachus
Profil
Cesta je na 100% správně.

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm: