192.168.102.78 - - [19/May/2011:15:58:45 +0400] "GET / HTTP/1.1" 200 1556
192.168.102.78 - - [19/May/2011:15:58:45 +0400] "GET /apache_pb.gif HTTP/1.1" 200 2326
192.168.102.78 - - [19/May/2011:16:00:30 +0400] "GET / HTTP/1.1" 200 562
192.168.102.78 - - [19/May/2011:16:00:31 +0400] "GET /index.php HTTP/1.1" 500 -
192.168.102.78 - - [19/May/2011:16:05:51 +0400] "GET /index.php HTTP/1.1" 500 -
192.168.102.78 - - [19/May/2011:16:06:28 +0400] "GET /index.php HTTP/1.1" 500 -
192.168.102.78 - - [19/May/2011:16:08:19 +0400] "GET /index.php HTTP/1.1" 500 -
192.168.102.78 - - [19/May/2011:16:49:03 +0400] "OPTIONS / HTTP/1.1" 500 -
192.168.102.78 - - [19/May/2011:16:49:03 +0400] "OPTIONS / HTTP/1.1" 500 -
192.168.102.78 - - [19/May/2011:16:49:03 +0400] "OPTIONS / HTTP/1.1" 500 -
192.168.102.78 - - [19/May/2011:16:49:03 +0400] "OPTIONS / HTTP/1.1" 500 -
192.168.102.78 - - [19/May/2011:16:49:03 +0400] "OPTIONS / HTTP/1.1" 500 -
192.168.102.78 - - [19/May/2011:16:49:03 +0400] "OPTIONS / HTTP/1.1" 500 -
Web-сервер не обрабатывает php файлы
На win server 2003 (компьютер находится в домене) установил apache 2.2 и php 5.2 Связал их, всё запустилось, html страницы показываются нормально, а при обращении к php файлу выдаёт 500 ошибку.
Такое выдаёт даже при простейшем php файле с одним php_info()
С чем это может быть связано?
П.С. В вложении конфиги апача и пхп.
Заранее спасибо.
[ATTACH]5146[/ATTACH]
что поменяли то в конфигах от оригинальных?
PHPIniDir "c:/php"
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
раскоментил mod_rewrite и добавил в directoryindex index.php
вот что написано в access.log
Код:
и error.log
Код:
Installing the Apache2 service
The Apache2 service is successfully installed.
Starting the Apache2 service
The Apache2 service is running.
ce] Apache/2.0.64 (Win32) configured -- resuming normal operations
[Thu May 19 15:53:34 2011] [notice] Server built: Oct 18 2010 01:36:23
[Thu May 19 15:53:34 2011] [notice] Parent: Created child process 348
[Thu May 19 15:53:34 2011] [notice] Child 348: Child process is running
[Thu May 19 15:53:34 2011] [notice] Child 348: Acquired the start mutex.
[Thu May 19 15:53:34 2011] [notice] Child 348: Starting 250 worker threads.
[Thu May 19 15:56:28 2011] [notice] Parent: Received restart signal -- Restarting the server.
[Thu May 19 15:56:28 2011] [notice] Child 348: Exit event signaled. Child process is ending.
Syntax error on line 966 of C:/Apache2/conf/httpd.conf:
Cannot load C:/Apache2/php5apache2.dll into server: \xcd\xe5 \xed\xe0\xe9\xe4\xe5\xed \xf3\xea\xe0\xe7\xe0\xed\xed\xfb\xe9 \xec\xee\xe4\xf3\xeb\xfc.
[Thu May 19 15:56:28 2011] [warn] (OS 995)Операция ввода/вывода была прервана из-за завершения потока команд или по запросу приложения. : winnt_accept: Asynchronous AcceptEx failed.
[Thu May 19 15:56:29 2011] [notice] Child 348: Released the start mutex
[Thu May 19 15:56:30 2011] [notice] Child 348: All worker threads have exited.
[Thu May 19 15:56:30 2011] [notice] Child 348: Child process is exiting
[Thu May 19 15:58:37 2011] [warn] pid file C:/Apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu May 19 15:58:38 2011] [notice] Apache/2.0.64 (Win32) PHP/5.2.17 configured -- resuming normal operations
[Thu May 19 15:58:38 2011] [notice] Server built: Oct 18 2010 01:36:23
[Thu May 19 15:58:38 2011] [notice] Parent: Created child process 3400
[Thu May 19 15:58:38 2011] [notice] Child 3400: Child process is running
[Thu May 19 15:58:38 2011] [notice] Child 3400: Acquired the start mutex.
[Thu May 19 15:58:38 2011] [notice] Child 3400: Starting 250 worker threads.
[Thu May 19 16:06:23 2011] [notice] Parent: Received restart signal -- Restarting the server.
[Thu May 19 16:06:23 2011] [notice] Child 3400: Exit event signaled. Child process is ending.
[Thu May 19 16:06:23 2011] [notice] Apache/2.0.64 (Win32) PHP/5.2.17 configured -- resuming normal operations
[Thu May 19 16:06:23 2011] [notice] Server built: Oct 18 2010 01:36:23
[Thu May 19 16:06:23 2011] [notice] Parent: Created child process 2252
[Thu May 19 16:06:24 2011] [notice] Child 2252: Child process is running
[Thu May 19 16:06:24 2011] [notice] Child 3400: Released the start mutex
[Thu May 19 16:06:24 2011] [notice] Child 2252: Acquired the start mutex.
[Thu May 19 16:06:24 2011] [notice] Child 2252: Starting 250 worker threads.
[Thu May 19 16:06:25 2011] [notice] Child 3400: All worker threads have exited.
[Thu May 19 16:06:25 2011] [notice] Child 3400: Child process is exiting
[Thu May 19 16:14:31 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu May 19 16:14:31 2011] [notice] Child 2252: Exit event signaled. Child process is ending.
[Thu May 19 16:14:32 2011] [notice] Child 2252: Released the start mutex
[Thu May 19 16:14:33 2011] [notice] Child 2252: All worker threads have exited.
[Thu May 19 16:14:33 2011] [notice] Child 2252: Child process is exiting
[Thu May 19 16:14:33 2011] [notice] Parent: Child process exited successfully.
[Thu May 19 16:14:54 2011] [notice] Apache/2.0.64 (Win32) PHP/5.2.17 configured -- resuming normal operations
[Thu May 19 16:14:54 2011] [notice] Server built: Oct 18 2010 01:36:23
[Thu May 19 16:14:54 2011] [notice] Parent: Created child process 2212
[Thu May 19 16:14:55 2011] [notice] Child 2212: Child process is running
[Thu May 19 16:14:55 2011] [notice] Child 2212: Acquired the start mutex.
[Thu May 19 16:14:55 2011] [notice] Child 2212: Starting 250 worker threads.
The Apache2 service is successfully installed.
Starting the Apache2 service
The Apache2 service is running.
ce] Apache/2.0.64 (Win32) configured -- resuming normal operations
[Thu May 19 15:53:34 2011] [notice] Server built: Oct 18 2010 01:36:23
[Thu May 19 15:53:34 2011] [notice] Parent: Created child process 348
[Thu May 19 15:53:34 2011] [notice] Child 348: Child process is running
[Thu May 19 15:53:34 2011] [notice] Child 348: Acquired the start mutex.
[Thu May 19 15:53:34 2011] [notice] Child 348: Starting 250 worker threads.
[Thu May 19 15:56:28 2011] [notice] Parent: Received restart signal -- Restarting the server.
[Thu May 19 15:56:28 2011] [notice] Child 348: Exit event signaled. Child process is ending.
Syntax error on line 966 of C:/Apache2/conf/httpd.conf:
Cannot load C:/Apache2/php5apache2.dll into server: \xcd\xe5 \xed\xe0\xe9\xe4\xe5\xed \xf3\xea\xe0\xe7\xe0\xed\xed\xfb\xe9 \xec\xee\xe4\xf3\xeb\xfc.
[Thu May 19 15:56:28 2011] [warn] (OS 995)Операция ввода/вывода была прервана из-за завершения потока команд или по запросу приложения. : winnt_accept: Asynchronous AcceptEx failed.
[Thu May 19 15:56:29 2011] [notice] Child 348: Released the start mutex
[Thu May 19 15:56:30 2011] [notice] Child 348: All worker threads have exited.
[Thu May 19 15:56:30 2011] [notice] Child 348: Child process is exiting
[Thu May 19 15:58:37 2011] [warn] pid file C:/Apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu May 19 15:58:38 2011] [notice] Apache/2.0.64 (Win32) PHP/5.2.17 configured -- resuming normal operations
[Thu May 19 15:58:38 2011] [notice] Server built: Oct 18 2010 01:36:23
[Thu May 19 15:58:38 2011] [notice] Parent: Created child process 3400
[Thu May 19 15:58:38 2011] [notice] Child 3400: Child process is running
[Thu May 19 15:58:38 2011] [notice] Child 3400: Acquired the start mutex.
[Thu May 19 15:58:38 2011] [notice] Child 3400: Starting 250 worker threads.
[Thu May 19 16:06:23 2011] [notice] Parent: Received restart signal -- Restarting the server.
[Thu May 19 16:06:23 2011] [notice] Child 3400: Exit event signaled. Child process is ending.
[Thu May 19 16:06:23 2011] [notice] Apache/2.0.64 (Win32) PHP/5.2.17 configured -- resuming normal operations
[Thu May 19 16:06:23 2011] [notice] Server built: Oct 18 2010 01:36:23
[Thu May 19 16:06:23 2011] [notice] Parent: Created child process 2252
[Thu May 19 16:06:24 2011] [notice] Child 2252: Child process is running
[Thu May 19 16:06:24 2011] [notice] Child 3400: Released the start mutex
[Thu May 19 16:06:24 2011] [notice] Child 2252: Acquired the start mutex.
[Thu May 19 16:06:24 2011] [notice] Child 2252: Starting 250 worker threads.
[Thu May 19 16:06:25 2011] [notice] Child 3400: All worker threads have exited.
[Thu May 19 16:06:25 2011] [notice] Child 3400: Child process is exiting
[Thu May 19 16:14:31 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu May 19 16:14:31 2011] [notice] Child 2252: Exit event signaled. Child process is ending.
[Thu May 19 16:14:32 2011] [notice] Child 2252: Released the start mutex
[Thu May 19 16:14:33 2011] [notice] Child 2252: All worker threads have exited.
[Thu May 19 16:14:33 2011] [notice] Child 2252: Child process is exiting
[Thu May 19 16:14:33 2011] [notice] Parent: Child process exited successfully.
[Thu May 19 16:14:54 2011] [notice] Apache/2.0.64 (Win32) PHP/5.2.17 configured -- resuming normal operations
[Thu May 19 16:14:54 2011] [notice] Server built: Oct 18 2010 01:36:23
[Thu May 19 16:14:54 2011] [notice] Parent: Created child process 2212
[Thu May 19 16:14:55 2011] [notice] Child 2212: Child process is running
[Thu May 19 16:14:55 2011] [notice] Child 2212: Acquired the start mutex.
[Thu May 19 16:14:55 2011] [notice] Child 2212: Starting 250 worker threads.
Походу апач пытается пхп найти не в c:\php а в c:\apache2 проверь ещё раз конфиги все
Ну и "apache 2.2" а модуль грузите для апача 2, попробуйте php5apache2_2.dll
Простите забыл написать, это конфиг от апача 2.0. Пытался его поставить, ибо в одном месте человек писал, что у него апач 2.2 категорически не хотел подрубать пхп. А для апач 2.0 как раз php5apache2 и нужен
инструкции
2) Попробуй снести всё и поставить денвер
3) Попробуй php папку добавить в PATH и перепроверь все конфиги, как радикальный метод скинь пхп в папку с апачем(маразм)
1) Попробуй снести всё и поставить заново по
2) Попробуй снести всё и поставить денвер
3) Попробуй php папку добавить в PATH и перепроверь все конфиги, как радикальный метод скинь пхп в папку с апачем(маразм)