Ошибочка. phptest.php
Суть проблемы:
При проверке работоспособности PHP мне выдает:
Цитата:
Forbidden
You don't have permission to access /_php_/php.exe/phptest.php on this server.
You don't have permission to access /_php_/php.exe/phptest.php on this server.
Вот мои настройки в httpd
Код:
AddType application/x-httpd-php php phtml
ScriptAlias /_php_/ "C:/Server/PHP/"
Action application/x-httpd-php "/_php_/php.exe"
ScriptAlias /_php_/ "C:/Server/PHP/"
Action application/x-httpd-php "/_php_/php.exe"
Вот логи, кстати там еще ошибки:
Цитата:
[Thu Feb 09 00:50:46 2012] [notice] Apache/2.2.22 (Win32) configured -- resuming normal operations
[Thu Feb 09 00:50:46 2012] [notice] Server built: Jan 28 2012 11:16:39
[Thu Feb 09 00:50:46 2012] [notice] Parent: Created child process 4032
[Thu Feb 09 00:50:48 2012] [error] (OS 11004)Запрошенное имя верно, но данные запрошенного типа не найдены. : Could not resolve host name neebet -- ignoring!
[Thu Feb 09 00:50:51 2012] [error] (OS 11004)Запрошенное имя верно, но данные запрошенного типа не найдены. : Could not resolve host name mysite -- ignoring!
httpd.exe: Could not reliably determine the server's fully qualified domain name, using МОЙ_ИП for ServerName
[Thu Feb 09 00:50:51 2012] [warn] NameVirtualHost МОЙ_ИП:0 has no VirtualHosts
[Thu Feb 09 00:50:53 2012] [error] (OS 11004)Запрошенное имя верно, но данные запрошенного типа не найдены. : Could not resolve host name neebet -- ignoring!
[Thu Feb 09 00:50:56 2012] [error] (OS 11004)Запрошенное имя верно, но данные запрошенного типа не найдены. : Could not resolve host name mysite -- ignoring!
httpd.exe: Could not reliably determine the server's fully qualified domain name, using МОЙ_ИП for ServerName
[Thu Feb 09 00:50:56 2012] [warn] NameVirtualHost МОЙ_ИП:0 has no VirtualHosts
[Thu Feb 09 00:50:56 2012] [notice] Child 4032: Child process is running
[Thu Feb 09 00:50:56 2012] [notice] Child 4032: Acquired the start mutex.
[Thu Feb 09 00:50:56 2012] [notice] Child 4032: Starting 64 worker threads.
[Thu Feb 09 00:50:56 2012] [notice] Child 4032: Starting thread to listen on port 80.
[Thu Feb 09 00:51:04 2012] [error] [client 178.121.144.90] client denied by server configuration: C:/Server/PHP/php.exe, referer: http://МОЙ_ИП/
[Thu Feb 09 00:51:04 2012] [error] [client 178.121.144.90] File does not exist: C:/Sites/home/localhost/www/favicon.ico, referer: http://МОЙ_ИП/phptest.php
[Thu Feb 09 00:51:06 2012] [error] [client 178.121.144.90] client denied by server configuration: C:/Server/PHP/php.exe, referer: http://МОЙ_ИП/
[Thu Feb 09 00:51:06 2012] [error] [client 178.121.144.90] File does not exist: C:/Sites/home/localhost/www/favicon.ico, referer: http://МОЙ_ИП/phptest.php
[Thu Feb 09 00:51:06 2012] [error] [client 178.121.144.90] client denied by server configuration: C:/Server/PHP/php.exe, referer: http://МОЙ_ИП/
[Thu Feb 09 00:51:06 2012] [error] [client 178.121.144.90] File does not exist: C:/Sites/home/localhost/www/favicon.ico, referer: http://МОЙ_ИП/phptest.php
[Thu Feb 09 00:51:07 2012] [error] [client 178.121.144.90] client denied by server configuration: C:/Server/PHP/php.exe, referer: http://МОЙ_ИП/
[Thu Feb 09 00:51:07 2012] [error] [client 178.121.144.90] File does not exist: C:/Sites/home/localhost/www/favicon.ico, referer: http://МОЙ_ИП/phptest.php
[Thu Feb 09 00:51:07 2012] [error] [client 178.121.144.90] client denied by server configuration: C:/Server/PHP/php.exe, referer: http://МОЙ_ИП/
[Thu Feb 09 00:51:07 2012] [error] [client 178.121.144.90] File does not exist: C:/Sites/home/localhost/www/favicon.ico, referer: http://МОЙ_ИП/phptest.php
[Thu Feb 09 00:51:08 2012] [error] [client 178.121.144.90] client denied by server configuration: C:/Server/PHP/php.exe, referer: http://МОЙ_ИП/
[Thu Feb 09 00:51:08 2012] [error] [client 178.121.144.90] File does not exist: C:/Sites/home/localhost/www/favicon.ico, referer: http://МОЙ_ИП/phptest.php
[Thu Feb 09 00:50:46 2012] [notice] Server built: Jan 28 2012 11:16:39
[Thu Feb 09 00:50:46 2012] [notice] Parent: Created child process 4032
[Thu Feb 09 00:50:48 2012] [error] (OS 11004)Запрошенное имя верно, но данные запрошенного типа не найдены. : Could not resolve host name neebet -- ignoring!
[Thu Feb 09 00:50:51 2012] [error] (OS 11004)Запрошенное имя верно, но данные запрошенного типа не найдены. : Could not resolve host name mysite -- ignoring!
httpd.exe: Could not reliably determine the server's fully qualified domain name, using МОЙ_ИП for ServerName
[Thu Feb 09 00:50:51 2012] [warn] NameVirtualHost МОЙ_ИП:0 has no VirtualHosts
[Thu Feb 09 00:50:53 2012] [error] (OS 11004)Запрошенное имя верно, но данные запрошенного типа не найдены. : Could not resolve host name neebet -- ignoring!
[Thu Feb 09 00:50:56 2012] [error] (OS 11004)Запрошенное имя верно, но данные запрошенного типа не найдены. : Could not resolve host name mysite -- ignoring!
httpd.exe: Could not reliably determine the server's fully qualified domain name, using МОЙ_ИП for ServerName
[Thu Feb 09 00:50:56 2012] [warn] NameVirtualHost МОЙ_ИП:0 has no VirtualHosts
[Thu Feb 09 00:50:56 2012] [notice] Child 4032: Child process is running
[Thu Feb 09 00:50:56 2012] [notice] Child 4032: Acquired the start mutex.
[Thu Feb 09 00:50:56 2012] [notice] Child 4032: Starting 64 worker threads.
[Thu Feb 09 00:50:56 2012] [notice] Child 4032: Starting thread to listen on port 80.
[Thu Feb 09 00:51:04 2012] [error] [client 178.121.144.90] client denied by server configuration: C:/Server/PHP/php.exe, referer: http://МОЙ_ИП/
[Thu Feb 09 00:51:04 2012] [error] [client 178.121.144.90] File does not exist: C:/Sites/home/localhost/www/favicon.ico, referer: http://МОЙ_ИП/phptest.php
[Thu Feb 09 00:51:06 2012] [error] [client 178.121.144.90] client denied by server configuration: C:/Server/PHP/php.exe, referer: http://МОЙ_ИП/
[Thu Feb 09 00:51:06 2012] [error] [client 178.121.144.90] File does not exist: C:/Sites/home/localhost/www/favicon.ico, referer: http://МОЙ_ИП/phptest.php
[Thu Feb 09 00:51:06 2012] [error] [client 178.121.144.90] client denied by server configuration: C:/Server/PHP/php.exe, referer: http://МОЙ_ИП/
[Thu Feb 09 00:51:06 2012] [error] [client 178.121.144.90] File does not exist: C:/Sites/home/localhost/www/favicon.ico, referer: http://МОЙ_ИП/phptest.php
[Thu Feb 09 00:51:07 2012] [error] [client 178.121.144.90] client denied by server configuration: C:/Server/PHP/php.exe, referer: http://МОЙ_ИП/
[Thu Feb 09 00:51:07 2012] [error] [client 178.121.144.90] File does not exist: C:/Sites/home/localhost/www/favicon.ico, referer: http://МОЙ_ИП/phptest.php
[Thu Feb 09 00:51:07 2012] [error] [client 178.121.144.90] client denied by server configuration: C:/Server/PHP/php.exe, referer: http://МОЙ_ИП/
[Thu Feb 09 00:51:07 2012] [error] [client 178.121.144.90] File does not exist: C:/Sites/home/localhost/www/favicon.ico, referer: http://МОЙ_ИП/phptest.php
[Thu Feb 09 00:51:08 2012] [error] [client 178.121.144.90] client denied by server configuration: C:/Server/PHP/php.exe, referer: http://МОЙ_ИП/
[Thu Feb 09 00:51:08 2012] [error] [client 178.121.144.90] File does not exist: C:/Sites/home/localhost/www/favicon.ico, referer: http://МОЙ_ИП/phptest.php
Заранее Благодарен.
PHP тут не причем, в логе явно написано, что конфигурацией веб сервера стоит запрет. Где конкретно, ищи в конфиге. Я бы на твоем месте просто бы нормально настроил сервер использую любой мануал. А приведен как я понимаю тут не "мои настройки в httpd", а банальный .htaccess.
Цитата: alekciy
PHP тут не причем, в логе явно написано, что конфигурацией веб сервера стоит запрет. Где конкретно, ищи в конфиге. Я бы на твоем месте просто бы нормально настроил сервер использую любой мануал. А приведен как я понимаю тут не "мои настройки в httpd", а банальный .htaccess.
Вы имеете ввиду php.ini?
Цитата:
Вот мои настройки в httpd
Код:
AddType application/x-httpd-php php phtml
ScriptAlias /_php_/ "C:/Server/PHP/"
Action application/x-httpd-php "/_php_/php.exe"
ScriptAlias /_php_/ "C:/Server/PHP/"
Action application/x-httpd-php "/_php_/php.exe"
Это я часть кода скинул, а не все содержимое файла.