Справочник функций

Ваш аккаунт

Войти через: 
Забыли пароль?
Регистрация
Информацию о новых материалах можно получать и без регистрации:

Почтовая рассылка

Подписчиков: -1
Последний выпуск: 19.06.2015

Web-сервер не обрабатывает php файлы

42K
19 мая 2011 года
Alozar
5 / / 29.12.2008
Здравствуйте, форумчане!

На win server 2003 (компьютер находится в домене) установил apache 2.2 и php 5.2 Связал их, всё запустилось, html страницы показываются нормально, а при обращении к php файлу выдаёт 500 ошибку.
Такое выдаёт даже при простейшем php файле с одним php_info()
С чем это может быть связано?
П.С. В вложении конфиги апача и пхп.

Заранее спасибо.
[ATTACH]5146[/ATTACH]
14
19 мая 2011 года
Phodopus
3.3K / / 19.06.2008
что поменяли то в конфигах от оригинальных?
42K
20 мая 2011 года
Alozar
5 / / 29.12.2008
Добавил
PHPIniDir "c:/php"
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
раскоментил mod_rewrite и добавил в directoryindex index.php

вот что написано в access.log
Код:
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 -

и 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.
277
20 мая 2011 года
arrjj
1.7K / / 26.01.2011
"\xcd\xe5 \xed\xe0\xe9\xe4\xe5\xed \xf3\xea\xe0\xe7\xe0\xed\xed\xfb\xe9 \xec\xee\xe4\xf3\xeb\xfc" = "не найден указаный модуль", проверь, существует ли такой файл
Походу апач пытается пхп найти не в c:\php а в c:\apache2 проверь ещё раз конфиги все
Ну и "apache 2.2" а модуль грузите для апача 2, попробуйте php5apache2_2.dll
42K
20 мая 2011 года
Alozar
5 / / 29.12.2008
Фишка в том, что когда апач искал пхп в своей папке, он вообще не запускался, а тут запускается
Простите забыл написать, это конфиг от апача 2.0. Пытался его поставить, ибо в одном месте человек писал, что у него апач 2.2 категорически не хотел подрубать пхп. А для апач 2.0 как раз php5apache2 и нужен
277
20 мая 2011 года
arrjj
1.7K / / 26.01.2011
1) Попробуй снести всё и поставить заново по инструкции
2) Попробуй снести всё и поставить денвер
3) Попробуй php папку добавить в PATH и перепроверь все конфиги, как радикальный метод скинь пхп в папку с апачем(маразм)
Реклама на сайте | Обмен ссылками | Ссылки | Экспорт (RSS) | Контакты
Добавить статью | Добавить исходник | Добавить хостинг-провайдера | Добавить сайт в каталог