![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 3 Pomógł: 0 Dołączył: 10.02.2013 Ostrzeżenie: (0%) ![]() ![]() |
Witam, zainstalowałem Apache 2.2 na komputerze i chciałem dodać PHP, zrobiłem wszystko wg instrukcji na internetach i kiedy próbuje włączyć usługę przez apache monitor wyskakuje mi error "The requested operation has failed"
W logu nie ma nic na ten temat, ale wrzucam Starting the Apache2.2 service The Apache2.2 service is running. rmine the server's fully qualified domain name, using 192.168.2.101 for ServerName [Sun Feb 10 18:06:24 2013] [notice] Apache/2.2.13 (Win64) configured -- resuming normal operations [Sun Feb 10 18:06:24 2013] [notice] Server built: Aug 10 2009 15:53:42 [Sun Feb 10 18:06:24 2013] [notice] Parent: Created child process 4536 httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.2.101 for ServerName httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.2.101 for ServerName [Sun Feb 10 18:06:24 2013] [notice] Child 4536: Child process is running [Sun Feb 10 18:06:24 2013] [notice] Child 4536: Acquired the start mutex. [Sun Feb 10 18:06:24 2013] [notice] Child 4536: Starting 64 worker threads. [Sun Feb 10 18:06:24 2013] [notice] Child 4536: Starting thread to listen on port 80. [Sun Feb 10 18:12:14 2013] [error] [client 127.0.0.1] File does not exist: D:/Programy/Server/Apache 2.2/htdocs/favicon.ico [Sun Feb 10 18:12:41 2013] [notice] Parent: Received shutdown signal -- Shutting down the server. [Sun Feb 10 18:12:41 2013] [notice] Child 4536: Exit event signaled. Child process is ending. [Sun Feb 10 18:12:42 2013] [notice] Child 4536: Released the start mutex [Sun Feb 10 18:12:43 2013] [notice] Child 4536: All worker threads have exited. [Sun Feb 10 18:12:43 2013] [notice] Child 4536: Child process is exiting [Sun Feb 10 18:12:43 2013] [notice] Parent: Child process exited successfully. Siedziałem nad tym chwilę i wyszło na to, że kiedy dodaje linijkę: LoadModule php5_module "D:/Programy/Server/php 5.4/php5apache2_2.dll" AddType application/x-httpd-php .php wszystko się sypie. Ogólnie do pliku konfiguracyjnego dodaję 3 linijki, tę na górze, pod nią : AddType application/x-httpd-php .php i na samym dole dokumentu: PHPIniDir "D:/Programy/Server/php 5.4" Proszę o pomoc i pozdrawiam Marcin |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 4 298 Pomógł: 447 Dołączył: 16.11.2006 Ostrzeżenie: (0%) ![]() ![]() |
Ludzie to mają pomysły żeby instalować apache/php na windows...
Wyrzuć to wszytko i zainstaluj gotową paczkę http://www.webserv.pl |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 3 Pomógł: 0 Dołączył: 10.02.2013 Ostrzeżenie: (0%) ![]() ![]() |
A dlaczego miałbym nie instalować? Gdybym chciał jakąś gotową paczke to bym już na pewno ściągnął, potrzebuje pomocy przy tym problemie.
|
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 4 298 Pomógł: 447 Dołączył: 16.11.2006 Ostrzeżenie: (0%) ![]() ![]() |
Windows pod serwer nawet dla zabawy się nie nadaje, nie w połączeniu z apache. Te paczki powstały właśnie po to, aby nie mieć takich problemów.
Cytat LoadModule php5_module "D:/Programy/Server/php 5.4/php5apache2_2.dll" Te spacje są celowe? Edycja... Jaki system i czy bez tego apache startuje? Ten post edytował !*! 10.02.2013, 20:27:40 |
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 6 476 Pomógł: 1306 Dołączył: 6.08.2006 Skąd: Kraków Ostrzeżenie: (0%) ![]() ![]() |
@!*!: Na problem z Apache/PHP sugerujesz skorzystanie z de facto Apache'a i PHP. Przecież ewidentnie widać, że jest tu problem jedynie z konfiguracją obu narzędzi, a to da się zrobić pod Windowsem równie wygodnie co pod *nixami (przynajmniej w podstawowym zakresie, o którym tutaj mowa).
@martinpwp: Sprawdź czy samo PHP uruchamia się. Spróbuj odpalić jakiś prosty skrypt (typu hello world) z poziomu wiersza poleceń (upewnij się jedynie, że wersja konsolowa korzysta z tego samogo pliku php.ini co wersja serwerowa). Prawdopodobnie występuje problem przy wczytaniu któregoś z rozszerzeń PHP. Dodatkowo w pliku php.ini włącz dyrektywę display_startup_errors (może nazywać się jakoś inaczej, nie pamiętam w tej chwili). |
|
|
![]()
Post
#6
|
|
Grupa: Zarejestrowani Postów: 3 Pomógł: 0 Dołączył: 10.02.2013 Ostrzeżenie: (0%) ![]() ![]() |
Dzięki za szybką odpowiedź, kod PHP jest prawidłowo wyświetlany w wierszu poleceń.
|
|
|
![]()
Post
#7
|
|
Grupa: Zarejestrowani Postów: 41 Pomógł: 9 Dołączył: 8.02.2009 Ostrzeżenie: (0%) ![]() ![]() |
Odświeżę trochę temat dla innych poszukujących wiedzy.
Instalując Aache + PHP na windowsie trzeba zwrócić uwagę aby były w wersji 32 bitowej. Apache 64-bit nie wykrywa PHP 5 32-bit komunikując to w opisany powyżej sposób. Kolejną rzeczą którą możemy skopać to wersja PHP thread safe / non thread safe. Apache wymaga wersji thread safe. Paczka php do ściągnięcia ze stronki windows.php.net w wersji nts (non thread safe) nie zawiera plików php5apache2_x.dll U mnie działa prawidłowo Apache 2.4.4 Win 32-bit ssl 0.9.8 PHP 5.4.14 thread safe Win 32-bit VC9 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 2.10.2025 - 12:15 |