[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: Не работает Apache
antonhristovsky
Здравствуйте. У меня перестал работать Apache после переустановки) Вот что пишет:
Not Found

The requested URL /index.php/id1 was not found on this server.

Что это может быть?



Спустя 4 минуты, 47 секунд (6.03.2012 - 20:44) h234 написал(а):
может в htaccess дело?!

Спустя 12 секунд (6.03.2012 - 20:44) Visman написал(а):
Ты пытаешься открыть папку index.php/ ?

Спустя 6 минут, 27 секунд (6.03.2012 - 20:51) antonhristovsky написал(а):
я пытаюсь открыть "kohana/id1"
h234
а что может быть в htaccess?

Спустя 3 минуты, 26 секунд (6.03.2012 - 20:54) ADiel написал(а):
mod_rewrite включен?
Allow override прописан?

Спустя 12 минут, 43 секунды (6.03.2012 - 21:07) antonhristovsky написал(а):
mod_rewrite включен) да)
<Directory "d:/Sites/Spisok">
AllowOverride All
# Options None
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>

Спустя 14 секунд (6.03.2012 - 21:07) Visman написал(а):
antonhristovsky, покажи содержимое файла .htaccess

Спустя 1 минута, 5 секунд (6.03.2012 - 21:08) antonhristovsky написал(а):
Visman
# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /

# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>

# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]

Спустя 3 минуты, 7 секунд (6.03.2012 - 21:11) Visman написал(а):
Это index.php/$0 я считаю неверной записью!
Как в index.php обрабатываются пришедшие данные? Т.е., что действительно юзер хотел открыть на сайте?

Спустя 2 минуты, 19 секунд (6.03.2012 - 21:14) antonhristovsky написал(а):
Удалил эту строку - RewriteRule .* index.php/$0 [PT]. В результате удалилось только index с текста ошибки)

Спустя 2 минуты, 13 секунд (6.03.2012 - 21:16) Visman написал(а):
Я разве сказал ее удалять? Я сказал, что правило преобразование вероятно неверное.
Цитата (Visman @ 7.03.2012 - 02:11)
Как в index.php обрабатываются пришедшие данные? Т.е., что действительно юзер хотел открыть на сайте?

По этому поводу что можешь сказать?
От него и правило на реврайт нужно писать.

Спустя 54 минуты, 42 секунды (6.03.2012 - 22:11) antonhristovsky написал(а):
Я первый раз когда настраивал в .htaccess никакие изменения не проводил:(

Спустя 5 часов, 44 минуты, 22 секунды (7.03.2012 - 03:55) Invis1ble написал(а):
так попробуй
#RewriteRule .* index.php/$0 [PT]
RewriteRule .* index.php [L]

Спустя 1 день, 9 часов, 9 минут, 21 секунда (8.03.2012 - 13:04) antonhristovsky написал(а):
Invis1ble
Теперь вот это выводит:
<?php

/**
* The directory in which your application specific resources are located.
* The application directory must contain the bootstrap.php file.
*
*
@see http://kohanaframework.org/guide/about.install#application
*/
$application = 'application';

/**
* The directory in which your modules are located.
*
*
@see http://kohanaframework.org/guide/about.install#modules
*/
$modules = 'modules';

/**
* The directory in which the Kohana resources are located. The system
* directory must contain the classes/kohana.php file.
*
*
@see http://kohanaframework.org/guide/about.install#system
*/
$system = 'system';

/**
* The default extension of resource files. If you change this, all resources
* must be renamed to use the new extension.
*
*
@see http://kohanaframework.org/guide/about.install#ext
*/
define('EXT', '.php');

/**
* Set the PHP error reporting level. If you set this in php.ini, you remove this.
*
@see http://php.net/error_reporting
*
* When developing your application, it is highly recommended to enable notices
* and strict warnings. Enable them by using: E_ALL | E_STRICT
*
* In a production environment, it is safe to ignore notices and strict warnings.
* Disable them by using: E_ALL ^ E_NOTICE
*
* When using a legacy application with PHP >= 5.3, it is recommended to disable
* deprecated notices. Disable with: E_ALL & ~E_DEPRECATED
*/

error_reporting(E_ALL | E_STRICT);

/**
* End of standard configuration! Changing any of the code below should only be
* attempted by those with a working knowledge of Kohana internals.
*
*
@see http://kohanaframework.org/guide/using.configuration
*/

// Set the full path to the docroot
define('DOCROOT', realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR);

// Make the application relative to the docroot, for symlink'd index.php
if ( ! is_dir($application) AND is_dir(DOCROOT.$application))
$application = DOCROOT.$application;

// Make the modules relative to the docroot, for symlink'd index.php
if ( ! is_dir($modules) AND is_dir(DOCROOT.$modules))
$modules = DOCROOT.$modules;

// Make the system relative to the docroot, for symlink'd index.php
if ( ! is_dir($system) AND is_dir(DOCROOT.$system))
$system = DOCROOT.$system;

// Define the absolute paths for configured directories
define('APPPATH', realpath($application).DIRECTORY_SEPARATOR);
define('MODPATH', realpath($modules).DIRECTORY_SEPARATOR);
define('SYSPATH', realpath($system).DIRECTORY_SEPARATOR);

// Clean up the configuration vars
unset($application, $modules, $system);

if (file_exists('install'.EXT))
{
// Load the installation check
return include 'install'.EXT;
}

/**
* Define the start time of the application, used for profiling.
*/

if ( ! defined('KOHANA_START_TIME'))
{
define('KOHANA_START_TIME', microtime(TRUE));
}

/**
* Define the memory usage at the start of the application, used for profiling.
*/

if ( ! defined('KOHANA_START_MEMORY'))
{
define('KOHANA_START_MEMORY', memory_get_usage());
}

// Bootstrap the application
require APPPATH.'bootstrap'.EXT;

/**
* Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO'].
* If no source is specified, the URI will be automatically detected.
*/

echo Request::factory()
->
execute()
->
send_headers()
->
body();

Спустя 12 минут, 22 секунды (8.03.2012 - 13:17) Visman написал(а):
Дело не в htaccess.

Спустя 2 минуты, 37 секунд (8.03.2012 - 13:19) Invis1ble написал(а):
код как текст выводит что-ли?
попробуй в .htaccess добавить
AddType application/x-httpd-php .php
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.