Virtual host setup:
ServerName test.loc ServerAdmin webmaster@test.loc DocumentRoot /home/r/www/test.loc/web ErrorLog /home/r/www/logs/test.loc/error.log CustomLog /home/r/www/logs/test.loc/access.log combined <Directory /home/r/www/test.loc/web> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> Additional server settings (except those that were by default):
## Файл персональных настроек веб-сервера Apache от Razzwan-a ## Чтобы устранить предупреждение при перезапуске Apache (хотя в целом на производительности это не отразится) ServerName test.loc ## Для того, чтобы Apache интерпретировал php и не предлагал сохранить php-файл AddType application/x-httpd-php .php .phtml ## Установка кодировки по умолчанию AddDefaultCharset UTF-8 ## Настройка базовой директории <Directory /home/r/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> Rights to the folder from which the site is loaded (/ home / r / www) 777.
It still gives an error:
[Thu Dec 10 10:52:54.723123 2015] [core:error] [pid ****] (13)Permission denied: [client 127.0.0.1:] AH00035: access to / denied (filesystem path '/home/r/www') because search permissions are missing on a component of the path [Thu Dec 10 10:52:54.792334 2015] [core:error] [pid *****] (13)Permission denied: [client 127.0.0.1:] AH00035: access to /favicon.ico denied (filesystem path '/home/r/www') because search permissions are missing on a component of the path, referer: http://test.loc:81/ Apache tried to run from the same user who owns the files of the site - no changes.
What else can you check, look? Already there are no ideas.
Allow from allto do - Mike