Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache e UserDir ---> Forbidden [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Gyrus
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 273
Location: Italy-Arezzo

PostPosted: Thu May 20, 2004 10:38 pm    Post subject: Apache e UserDir ---> Forbidden [RISOLTO] Reply with quote

Sto cercando di utilizzare la direttiva UserDir , per Apache, ma non riesco a visualizzare nessun
file .htm o .php , perche' il messaggio e sempre lo stesso:

Code:

Forbidden

You don't have permission to access /~simone/provaphp.php on this server.
Apache/2.0.48 (Gentoo/Linux) mod_ssl/2.0.48 OpenSSL/0.9.7c PHP/4.3.6 Server at GentooLinux Port 80


Ho messo la direttiva all'interno dei TAG per i virtualhost :

Code:
UserDir workspace


Con i permessi sulle cartelle sono 755.

Gyrus


Last edited by Gyrus on Sat May 22, 2004 4:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Fri May 21, 2004 5:44 am    Post subject: Reply with quote

Code:
cat error_log

_________________
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Back to top
View user's profile Send private message
Gyrus
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 273
Location: Italy-Arezzo

PostPosted: Fri May 21, 2004 9:02 am    Post subject: Reply with quote

eccolo ....

Code:
[Fri May 21 01:12:44 2004] [error] [client 10.0.0.201] client denied by server configuration: /home/simone/workspace/provaphp.php



Gyrus
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Fri May 21, 2004 9:38 am    Post subject: Reply with quote

Gyrus wrote:
eccolo ....

Code:
[Fri May 21 01:12:44 2004] [error] [client 10.0.0.201] client denied by server configuration: /home/simone/workspace/provaphp.php



Gyrus


Controlla i permessi delle directory:

Code:

#ls -l /home
#ls -l /home/simone

_________________
Ciao da me!
Back to top
View user's profile Send private message
Gyrus
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 273
Location: Italy-Arezzo

PostPosted: Fri May 21, 2004 10:04 am    Post subject: Reply with quote

E strano perche' i permessi a me sembrano corretti .....

Io da root e firefox metto l'indirizzo :
Code:

http://localhost/~simone/provaphp.php

Code:

GentooLinux workspace # ls -l /home
totale 12
drwx---r-x  12 simone users 4096 21 mag 01:27 simone

GentooLinux workspace # ls -l /home/simone
totale 12
drwxr-xr-x  2 simone users 4096 21 mag 00:15 Desktop
drwxr-xr-x  2 simone users 4096 20 mag 18:21 workspace

GentooLinux workspace # ls -l /home/simone/workspace
totale 4
-rw-r--r--  1 simone users 10  9 mag 13:14 provaphp.php
GentooLinux workspace #
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Fri May 21, 2004 10:08 am    Post subject: Reply with quote

Gyrus wrote:
Code:

GentooLinux workspace # ls -l /home
drwx---r-x  12 simone users 4096 21 mag 01:27 simone

GentooLinux workspace # ls -l /home/simone
drwxr-xr-x  2 simone users 4096 20 mag 18:21 workspace


GentooLinux workspace # ls -l /home/simone/workspace
-rw-r--r--  1 simone users 10  9 mag 13:14 provaphp.php
GentooLinux workspace #


Prova a mettere tutto il percorso a 755:
Code:

chmod g+x /home/simone
chmod a+x /home/simone/workspace/provaphp.php

_________________
Ciao da me!
Back to top
View user's profile Send private message
Gyrus
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 273
Location: Italy-Arezzo

PostPosted: Fri May 21, 2004 10:23 am    Post subject: Reply with quote

Nulla ancora forbidden ........ :cry:
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Fri May 21, 2004 10:29 am    Post subject: Reply with quote

Gyrus wrote:
Nulla ancora forbidden ........ :cry:


Se metti una pagina html la vedi?
_________________
Ciao da me!
Back to top
View user's profile Send private message
Gyrus
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 273
Location: Italy-Arezzo

PostPosted: Sat May 22, 2004 3:23 pm    Post subject: Reply with quote

Ho trovato l'inghippo !!! :lol:

In pratica la direttiva UserDir e impostata nel file di configurazione : commonapache2.conf,
e anche se io modificavo in apache2.conf , questa veniva ignorata .......

In commonapache2 la cartella utenti e : puclic_html , e se la voglio cambiare con un altra
cartella devo sostituire LaMiaCartella ad public_html, ogni volta che acompare nel file.

Funziona pero' solo per gli HTML, per il PHP sembra non funzionare ... BO !
Back to top
View user's profile Send private message
Kind_of_blue
Guru
Guru


Joined: 10 Oct 2004
Posts: 485

PostPosted: Mon Nov 08, 2004 4:00 pm    Post subject: Reply with quote

stesso identico problema
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum