Считывание файла .htaccess

Тема закрыта
408
.

Проблема считывания файла htaccess на локальном сервере.
Создал виртуальный хост, заполнив его так:

Настройки виртуального хоста (+/-)

<VirtualHost *:80>
ServerAdmin admin@test.com
ServerName test.com
ServerAlias www.test.com
DocumentRoot /var/www/test.com/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Вот содержание htaccess файла.
.htaccess (+/-)

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

Менял файл default
/etc/apache2/sites-available/default (+/-)

NameVirtualHost *
<virtualhost *>
ServerAdmin admin@site.com

DocumentRoot /var/www/
<directory>
Options FollowSymLinks
AllowOverride None
</directory>
<directory /var/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</directory>
</virtualhost>

Ничего не помогает :-(
Что это может быть еще?
.

Сервер перезагружал после каждого шага :-)

.
Логи (+/-)

[Sun Oct 11 14:38:17.535878 2015] [core:alert] [pid 18019] [client 127.0.0.1:47302] /var/www/rating.local/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Sun Oct 11 14:38:17.709721 2015] [core:alert] [pid 18021] [client 127.0.0.1:47303] /var/www/rating.local/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://rating.local/
.

судя по тексту модуль реврайта не подключен

.

Проблема решена...
Отсутствовала ссылка у apache на mod_rewrite, как я понял

Запускать от администратора (+/-)

ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
.

Тему можно закрывать :-)

Всего: 6