View previous topic :: View next topic |
Author |
Message |
Gyrus Apprentice


Joined: 02 May 2004 Posts: 273 Location: Italy-Arezzo
|
Posted: Thu May 20, 2004 10:38 pm Post subject: Apache e UserDir ---> Forbidden [RISOLTO] |
|
|
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 :
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 |
|
 |
FonderiaDigitale Veteran


Joined: 06 Nov 2003 Posts: 1710 Location: Rome, Italy
|
Posted: Fri May 21, 2004 5:44 am Post subject: |
|
|
_________________ Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica
|
|
Back to top |
|
 |
Gyrus Apprentice


Joined: 02 May 2004 Posts: 273 Location: Italy-Arezzo
|
Posted: Fri May 21, 2004 9:02 am Post subject: |
|
|
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 |
|
 |
randomaze Bodhisattva


Joined: 21 Oct 2003 Posts: 9985
|
Posted: Fri May 21, 2004 9:38 am Post subject: |
|
|
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 |
|
 |
Gyrus Apprentice


Joined: 02 May 2004 Posts: 273 Location: Italy-Arezzo
|
Posted: Fri May 21, 2004 10:04 am Post subject: |
|
|
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 |
|
 |
randomaze Bodhisattva


Joined: 21 Oct 2003 Posts: 9985
|
Posted: Fri May 21, 2004 10:08 am Post subject: |
|
|
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 |
|
 |
Gyrus Apprentice


Joined: 02 May 2004 Posts: 273 Location: Italy-Arezzo
|
Posted: Fri May 21, 2004 10:23 am Post subject: |
|
|
Nulla ancora forbidden ........  |
|
Back to top |
|
 |
randomaze Bodhisattva


Joined: 21 Oct 2003 Posts: 9985
|
Posted: Fri May 21, 2004 10:29 am Post subject: |
|
|
Gyrus wrote: | Nulla ancora forbidden ........  |
Se metti una pagina html la vedi? _________________ Ciao da me! |
|
Back to top |
|
 |
Gyrus Apprentice


Joined: 02 May 2004 Posts: 273 Location: Italy-Arezzo
|
Posted: Sat May 22, 2004 3:23 pm Post subject: |
|
|
Ho trovato l'inghippo !!!
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 |
|
 |
Kind_of_blue Guru


Joined: 10 Oct 2004 Posts: 485
|
Posted: Mon Nov 08, 2004 4:00 pm Post subject: |
|
|
stesso identico problema |
|
Back to top |
|
 |
|