включаю в .htaccess
RewriteEngine on(пока что просто только это)
и при попытке запустить index.php (он есть!) - сервер выдает
Forbidden
You don't have permission to access /IRBIS-core/ on this server.
Кто знает, в чем причина?
ЗЫ. Пробовал гуглить, ничего не нашел ((
Спустя 53 минуты, 18 секунд (17.12.2010 - 21:02) koala написал(а):
Цитата |
You don't have permission to access |
Ну это связано с правами, раз он тебя не пускает. Права проверял?
Спустя 3 минуты, 52 секунды (17.12.2010 - 21:06) Invis1ble написал(а):
koala
У меня мастдай )
У меня мастдай )
Спустя 16 минут, 6 секунд (17.12.2010 - 21:22) koala написал(а):
Invis1ble, у меня такое было на лини, но тогда я с реврайтом не тестировал. Проблема решилась установкой прав 775 на папку www.
Спустя 3 минуты, 46 секунд (17.12.2010 - 21:26) Invis1ble написал(а):
Вот на всякий случай весь .htaccess:
AddDefaultCharset UTF-8
php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
php_flag register_globals Off
ErrorDocument 401 /IRBIS-core/401.html
ErrorDocument 403 /IRBIS-core/403.html
ErrorDocument 404 /IRBIS-core/404.html
Options -Indexes
# php_value error_reporting 2047
# php_value error_log "С:/www/html/IRBIS-core/log/error.log"
# php_flag log_errors on
# php_flag display_errors off
#если закоментить эту строку - все нормально
RewriteEngine on
#RewriteCond %{REQUEST_URI} !^/favicon.ico
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.php?route=$1 [L,QSA]
Спустя 4 минуты, 40 секунд (17.12.2010 - 21:30) koala написал(а):
Цитата |
#разрешаем заходить на сервер всем Allow from all Deny from local AddDefaultCharset UTF-8 php_flag magic_quotes_gpc Off php_flag magic_quotes_runtime Off php_flag register_globals Off ErrorDocument 401 /IRBIS-core/401.html ErrorDocument 403 /IRBIS-core/403.html ErrorDocument 404 /IRBIS-core/404.html Options -Indexes # php_value error_reporting 2047 # php_value error_log "С:/www/html/IRBIS-core/log/error.log" # php_flag log_errors on # php_flag display_errors off #если закоментить эту строку - все нормально RewriteEngine on #RewriteCond %{REQUEST_URI} !^/favicon.ico #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteRule ^(.*)$ index.php?route=$1 [L,QSA] |
Не знаю, может поможет. Попробую так же без строки Deny from local.
Спустя 6 минут, 7 секунд (17.12.2010 - 21:36) Invis1ble написал(а):
koala
не помогло
не помогло
Спустя 3 минуты, 43 секунды (17.12.2010 - 21:40) koala написал(а):
Invis1ble, помог чем смог, извини =((
Спустя 6 минут, 24 секунды (17.12.2010 - 21:47) Invis1ble написал(а):
koala
извиняю
извиняю

Спустя 1 день, 23 минуты, 29 секунд (18.12.2010 - 22:10) alex12060 написал(а):
Открой лог апача и кинь сюда.
А так, в принципе, поставь права на папки 0755
И если у тебя линукс, то наверное с правами доступа на файлы косяки.
А так, в принципе, поставь права на папки 0755
И если у тебя линукс, то наверное с правами доступа на файлы косяки.
Спустя 46 секунд (18.12.2010 - 22:11) alex12060 написал(а):
* Именно файл error.log
Спустя 25 минут, 28 секунд (18.12.2010 - 22:36) Invis1ble написал(а):
alex12060
Цитата |
поставь права на папки 0755 |
я уже написал, что у меня винда
Цитата |
Открой лог апача и кинь сюда |
вот все строки, относящиеся к проблеме:
[Sat Dec 18 21:30:17 2010] [error] [client 127.0.0.1] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: c:/www/html/irbis-core
[Sat Dec 18 21:30:17 2010] [error] [client 127.0.0.1] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: c:/www/html/irbis-core/403.html
.... в конфиге включить что-то нужно? Подскажи, если знаешь, что именно и каким образом
Спустя 1 час, 42 секунды (18.12.2010 - 23:37) alex12060 написал(а):
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
Найди это в конфиге апача
Если нет, то вставь
После этого:
DocumentRoot "G:/htdocs"
И еще это проверь:
<Directory "G:/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
Спустя 53 минуты, 24 секунды (19.12.2010 - 00:30) Invis1ble написал(а):
alex12060
Цитата |
<Directory "G:/htdocs"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important.Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> |
есть вот такое:
<Directory "C:/Program Files/Apache Group/Apache/htdocs">
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
Цитата |
<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory> |
и вот такой блок:
<Directory "C:/Program Files/Apache Group/Apache/htdocs/manual">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Спустя 11 минут, 19 секунд (19.12.2010 - 00:42) Invis1ble написал(а):
alex12060
Все, сделал, спасибо за помощь:
Все, сделал, спасибо за помощь:
Цитата |
Options FollowSymLinks |
эту строку нужно было только добавить в блок <Directory "...">
++
++
_____________
Профессиональная разработка на заказ
Я на GitHub | второй профиль