Ho un problemino con apache su un server ubuntu 8.10
Dopo aver risettato i repository ho installato apache2, php5, php5-cgi, php5-cli.
Ho messo la "webdir" nella directory /media/ufficio/WEB/
questi sono i permessi:
Codice: Seleziona tutto
root@Server:/etc/apache2# ls -alt /media/ufficio/WEB/
total 28
-rwxrwxrwx 1 www-data www-data 2705 2014-11-05 14:33 index.php
drwxrwxrwx 4 www-data www-data 4096 2014-11-05 14:12 .
drwxrwxrwx 3 www-data www-data 4096 2014-11-05 14:12 img
drwxrwxrwx 2 www-data www-data 4096 2014-11-05 14:12 images
drwxrwx--- 119 ufficio ufficio 12288 2014-11-05 14:09 ..
Quindi ho impostato apache2 in /etc/apache2/sites-enabled/000-default
Codice: Seleziona tutto
root@Server:/etc/apache2# cat /etc/apache2/sites-enabled/000-default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /media/ufficio/WEB/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /media/ufficio/WEB/>
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
Ma se vado nell'ip del server mi viene restituito l'errore Forbidden 403;
Così ho guardato il log per cercare errori e ho trovato questo:
Codice: Seleziona tutto
[Wed Nov 05 15:04:04 2014] [notice] Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.6 with Suhosin-Patch configured -- resuming normal operations
[Wed Nov 05 15:04:08 2014] [error] [client 192.168.1.10] (13)Permission denied: access to / denied
Sembrerebbe che il mio ip (host '192.168.1.10'), non abbia accesso...

Sapete darmi una mano?
Grazie 1000
Francesco