Remover:
Options FollowSymLinks
AllowOverride None
Order Deny,Allow
Deny from all
depois de instalar e iniciar o apache2 não consigo abrir o site e recebi o erro " Proibido Você não tem permissão para acessar / neste servidor. "Eu tentei algumas opções diferentes no httpd.conf, mas nada me ajudou a resolver este problema.
Todas as permissões para cada diretório são "drwxr-xr-x". O diretório / var / www contém um nome de arquivo index.html com as mesmas permissões. Por favor, não admira, a hora no log de erros não está correta. Eu não tenho ideia do problema, espero que alguém possa me ajudar.
meu httpd.conf:
ServerRoot "/etc/apache2"
Listen 80
<IfModule !mpm_netware_module>
User daemon
Group daemon
</IfModule>
ServerAdmin [email protected]
DocumentRoot "/var/www"
<Directory />
Options FollowSymLinks
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
<Directory "/var/www">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
ErrorLog /var/apache2/logs/error_log
LogLevel warn
<Directory "/usr/share/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
TypesConfig /etc/apache2/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
meu error_log:
[Sat Jan 01 00:50:26 2000] [notice] caught SIGTERM, shutting down
[Sat Jan 01 00:50:33 2000] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Jan 01 00:50:34 2000] [notice] Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.8j configured -- resuming normal operations
[Sat Jan 01 00:50:36 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:37 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:37 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:37 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:38 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:38 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
Remover:
Options FollowSymLinks
AllowOverride None
Order Deny,Allow
Deny from all
Você verificou o sistema de arquivos físico para garantir que / var e / var / www tenham permissões abertas o suficiente para o usuário do apache ler / acessar arquivos?
$ ls -ld /var /var/www
drwxr-xr-x. 23 root root 4096 Jun 27 2010 /var
drwxr-xr-x. 6 root root 4096 Oct 27 07:29 /var/www
Certifique-se de que é kosher.
Tags apache-2.2