Помогите настроить php+Apache

Windows 95, 98, ME и 3,11; WinNT, Win2000, WinXP, Win2003, Vista, 7
Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
help
проходил мимо

Помогите настроить php+Apache

Непрочитанное сообщение help » 2010-10-26 11:43:39

Помогите пожалуйста разобраться.Веб сервер собираю на виндовс 7.После того как поставил Апач поставил php и в httpd.conf дописал

Код: Выделить всё

PHPIniDir "C:/Web Server/php/"
LoadModule php5_module "C:/Web Server/php/php5apache2_2.dll"

Код: Выделить всё

<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>

Код: Выделить всё

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

А проблемы следующие: Apache не открывает phpinfo, иногда пишет что модуль php5apache2_2.dll не подключен иле не найден.Хотя я сделал все правильно и сам модуль лежит в нужной директории.И на по следок Apache перестал запускаться.В чем может быть проблема.Уже 20 раз перестанавливаю результат один и тот же самый.

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
FreeBSP
майор
Сообщения: 2020
Зарегистрирован: 2009-05-24 20:20:19
Откуда: Москва

Re: Помогите настроить php+Apache

Непрочитанное сообщение FreeBSP » 2010-10-26 12:10:05

логи в студию
что то типа пуск-все прогграммы-apache22-review logs-error.log
сто лет апач под виндой не ставил
Человек начинает получать первые наслаждения от знакомства с unix системами. Ему нужно помочь - дальше он сможет получать наслаждение самостоятельно ©
Ламер — не желающий самостоятельно разбираться. Не путать с новичком: ламер опасен и знает это!

help
проходил мимо

Re: Помогите настроить php+Apache

Непрочитанное сообщение help » 2010-10-26 12:18:34

Код: Выделить всё

Starting the Apache2.2 service
The Apache2.2 service is running.
rmine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:14:10 2010] [notice] Apache/2.2.16 (Win32) configured -- resuming normal operations
[Tue Oct 26 11:14:10 2010] [notice] Server built: Jul 30 2010 16:15:37
[Tue Oct 26 11:14:10 2010] [notice] Parent: Created child process 2444
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:14:10 2010] [notice] Child 2444: Child process is running
[Tue Oct 26 11:14:10 2010] [notice] Child 2444: Acquired the start mutex.
[Tue Oct 26 11:14:10 2010] [notice] Child 2444: Starting 64 worker threads.
[Tue Oct 26 11:14:10 2010] [notice] Child 2444: Starting thread to listen on port 80.
[Tue Oct 26 11:15:01 2010] [error] [client 127.0.0.1] File does not exist: C:/Web Server/httpd/htdocs/favicon.ico, referer: http://localhost/
[Tue Oct 26 11:15:02 2010] [error] [client 127.0.0.1] File does not exist: C:/Web Server/httpd/htdocs/favicon.ico, referer: http://localhost/
[Tue Oct 26 11:15:03 2010] [error] [client 127.0.0.1] File does not exist: C:/Web Server/httpd/htdocs/favicon.ico, referer: http://localhost/
[Tue Oct 26 11:15:03 2010] [error] [client 127.0.0.1] File does not exist: C:/Web Server/httpd/htdocs/favicon.ico, referer: http://localhost/
[Tue Oct 26 11:15:04 2010] [error] [client 127.0.0.1] File does not exist: C:/Web Server/httpd/htdocs/favicon.ico, referer: http://localhost/
The Apache2.2 service is restarting.
The Apache2.2 service has restarted.
arent: Received restart signal -- Restarting the server.
[Tue Oct 26 11:15:15 2010] [notice] Child 2444: Exit event signaled. Child process is ending.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:15:15 2010] [notice] Apache/2.2.16 (Win32) configured -- resuming normal operations
[Tue Oct 26 11:15:15 2010] [notice] Server built: Jul 30 2010 16:15:37
[Tue Oct 26 11:15:15 2010] [notice] Parent: Created child process 2224
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:15:16 2010] [notice] Child 2224: Child process is running
[Tue Oct 26 11:15:16 2010] [notice] Child 2224: Acquired the start mutex.
[Tue Oct 26 11:15:16 2010] [notice] Child 2224: Starting 64 worker threads.
[Tue Oct 26 11:15:16 2010] [notice] Child 2444: Released the start mutex
[Tue Oct 26 11:15:17 2010] [notice] Child 2444: All worker threads have exited.
[Tue Oct 26 11:15:17 2010] [notice] Child 2444: Child process is exiting
[Tue Oct 26 11:15:17 2010] [notice] Child 2224: Starting thread to listen on port 80.
[Tue Oct 26 11:15:20 2010] [error] [client 127.0.0.1] File does not exist: C:/Web Server/httpd/htdocs/favicon.ico, referer: http://localhost/
The Apache2.2 service is restarting.
Failed to restart the Apache2.2 service.
t: Received restart signal -- Restarting the server.
[Tue Oct 26 11:17:23 2010] [notice] Child 2224: Exit event signaled. Child process is ending.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:17:23 2010] [notice] Apache/2.2.16 (Win32) configured -- resuming normal operations
[Tue Oct 26 11:17:23 2010] [notice] Server built: Jul 30 2010 16:15:37
[Tue Oct 26 11:17:23 2010] [notice] Parent: Created child process 2140
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:17:24 2010] [notice] Child 2224: Released the start mutex
[Tue Oct 26 11:17:25 2010] [notice] Child 2224: All worker threads have exited.
[Tue Oct 26 11:17:25 2010] [notice] Child 2224: Child process is exiting
[Tue Oct 26 11:17:26 2010] [crit] (OS 1813)Указанный тип ресурса в файле образа отсутствует.  : master_main: create child process failed. Exiting.
[Tue Oct 26 11:17:56 2010] [notice] Parent: Forcing termination of child process 36 
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
Starting the Apache2.2 service
The Apache2.2 service is running.
rmine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:20:40 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
The Apache2.2 service is restarting.
Starting the Apache2.2 service
The Apache2.2 service is running.
rmine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:21:58 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Starting the Apache2.2 service
The Apache2.2 service is running.
rmine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:22:04 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Starting the Apache2.2 service
The Apache2.2 service is running.
rmine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:23:49 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:24:34 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:24:46 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:25:20 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
The Apache2.2 service is restarting.
Starting the Apache2.2 service
The Apache2.2 service is running.
rmine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:25:31 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Starting the Apache2.2 service
The Apache2.2 service is running.
rmine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:25:34 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:25:37 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:27:05 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:27:34 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Starting the Apache2.2 service
The Apache2.2 service is running.
rmine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 11:44:27 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 93.74.127.34 for ServerName
[Tue Oct 26 12:12:32 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 169.254.237.27 for ServerName
[Tue Oct 26 12:14:35 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 169.254.237.27 for ServerName
[Tue Oct 26 12:15:45 2010] [warn] pid file C:/Web Server/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

Код: Выделить всё

127.0.0.1 - - [26/Oct/2010:11:15:01 +0300] "GET / HTTP/1.1" 200 44
127.0.0.1 - - [26/Oct/2010:11:15:01 +0300] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [26/Oct/2010:11:15:02 +0300] "GET / HTTP/1.1" 200 44
127.0.0.1 - - [26/Oct/2010:11:15:02 +0300] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [26/Oct/2010:11:15:03 +0300] "GET / HTTP/1.1" 200 44
127.0.0.1 - - [26/Oct/2010:11:15:03 +0300] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [26/Oct/2010:11:15:03 +0300] "GET / HTTP/1.1" 200 44
127.0.0.1 - - [26/Oct/2010:11:15:03 +0300] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [26/Oct/2010:11:15:04 +0300] "GET / HTTP/1.1" 200 44
127.0.0.1 - - [26/Oct/2010:11:15:04 +0300] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [26/Oct/2010:11:15:20 +0300] "GET / HTTP/1.1" 200 44
127.0.0.1 - - [26/Oct/2010:11:15:20 +0300] "GET /favicon.ico HTTP/1.1" 404 209

help
проходил мимо

Re: Помогите настроить php+Apache

Непрочитанное сообщение help » 2010-10-26 12:47:32

Вот что я заметил: Установил Apache и mysql - все запускается.Только подключил php у меня появилась такая ошибка:
1.jpg

help
проходил мимо

Re: Помогите настроить php+Apache

Непрочитанное сообщение help » 2010-10-26 13:00:46

Только добавляю строчку

Код: Выделить всё

LoadModule php5_module "C:/Web Server/php/php5apache2_2.dll"
Как апач перестает стартовать

Аватара пользователя
FreeBSP
майор
Сообщения: 2020
Зарегистрирован: 2009-05-24 20:20:19
Откуда: Москва

Re: Помогите настроить php+Apache

Непрочитанное сообщение FreeBSP » 2010-10-26 13:05:47

он у тебя не стартует, это и из лога понятно
убери PHPInDir из конфига
файл точно на месте?
а еще там же в пуске было типа проверить конфиг файл

и зарегистрируйся уже =) пара минут, а пользу приночит годами =)
и попробуй местами поменять -

Код: Выделить всё

LoadModule php5_module "C:\\PHP\\php5apache.dll" 
PHPIniDir "C:\\PHP\\php.ini" 
и пых открывай так
Человек начинает получать первые наслаждения от знакомства с unix системами. Ему нужно помочь - дальше он сможет получать наслаждение самостоятельно ©
Ламер — не желающий самостоятельно разбираться. Не путать с новичком: ламер опасен и знает это!

help
проходил мимо

Re: Помогите настроить php+Apache

Непрочитанное сообщение help » 2010-10-26 13:27:20

Файл php5apache2_2.dll 100% есть в C:/Web Server/php/ дописываю

Код: Выделить всё

LoadModule php5_module "C:/Web Server/php/php5apache2_2.dll"
Как все апач не стартует.

Аватара пользователя
FreeBSP
майор
Сообщения: 2020
Зарегистрирован: 2009-05-24 20:20:19
Откуда: Москва

Re: Помогите настроить php+Apache

Непрочитанное сообщение FreeBSP » 2010-10-26 13:37:03

я уже слышал, а реакции на свой совет не услышал
и попробуй дописать так

Код: Выделить всё

LoadModule php5_module "C:\\Web Server\\php\\php5apache2_2.dll"
Человек начинает получать первые наслаждения от знакомства с unix системами. Ему нужно помочь - дальше он сможет получать наслаждение самостоятельно ©
Ламер — не желающий самостоятельно разбираться. Не путать с новичком: ламер опасен и знает это!


help
проходил мимо

Re: Помогите настроить php+Apache

Непрочитанное сообщение help » 2010-10-26 13:56:42

httpd.zip
(5.93 КБ) 96 скачиваний
Посмотри пожалуйста,просто раньше у меня при такой конфигурации все работало

Help
проходил мимо

Re: Помогите настроить php+Apache

Непрочитанное сообщение Help » 2010-10-26 14:03:53

От я плуг,сам прогнал очень сильно есть же разница между Web Server и WebServer