Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[risolto]Problemi con apache
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
alexbgl
Apprentice
Apprentice


Joined: 05 Jul 2006
Posts: 240
Location: Verona

PostPosted: Thu Jul 13, 2006 11:39 am    Post subject: [risolto]Problemi con apache Reply with quote

Ho emerso recentemente apache2 e dopo aver verificato che funzionasse ho modificato il file di configurazione aggiungendo "ServerName" e un "AllowOverride AuthConfig" ad una cartella del server, ho riavviato il server e non veniva riconosciuta la password, mi sono accorto che il percorso del file delle pasword era sbagliato, l'ho corretto, ho riavviato ancora apache e...ora non viene caricata più alcuna pagina; ho ripristinato il file di configurazione di default e non cambia nulla!

Cosa ho fatto? :?


Last edited by alexbgl on Thu Jul 20, 2006 11:23 am; edited 1 time in total
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Jul 13, 2006 11:43 am    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Thu Jul 13, 2006 11:45 am    Post subject: Reply with quote

Non è facile diagnosticare un problema del genere.
Apache parte correttamente?
I log di apache non dicono niente?
Prova ad usare apache2ctl per controllare le sintassi dei file di configurazione
ed altri test.
Back to top
View user's profile Send private message
alexbgl
Apprentice
Apprentice


Joined: 05 Jul 2006
Posts: 240
Location: Verona

PostPosted: Thu Jul 13, 2006 11:58 am    Post subject: Reply with quote

Apache parte correttamente (segnala solo che non c'è ServerName impostato); i log non segnalano nulla di strano; riguardo la configurazione è quella di default...però c'è una cosa strana: il server lancia solo il processo "apache2" mentre dovrebbe lanciarne tanti.
Back to top
View user's profile Send private message
alexbgl
Apprentice
Apprentice


Joined: 05 Jul 2006
Posts: 240
Location: Verona

PostPosted: Thu Jul 13, 2006 12:59 pm    Post subject: Reply with quote

Allora: il server parte con un processo (apache2) poi dopo minuti ( :? ) ci sono anche gli altri processi e il server funziona normalmente.
Ma come mai che ci vuole così tanto?
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Thu Jul 13, 2006 1:04 pm    Post subject: Reply with quote

prima cosa da fare: controllare i log. tutti!
seconda cosa da fare: rimuovere il file .htaccess
Back to top
View user's profile Send private message
alexbgl
Apprentice
Apprentice


Joined: 05 Jul 2006
Posts: 240
Location: Verona

PostPosted: Thu Jul 13, 2006 1:44 pm    Post subject: Reply with quote

ok, il problema è .htaccess. Se lo rimuovo funziona tutto subito, ma come mai? Non ha mai dato problemi.

Lo riporto:
Code:
AuthName "PRIVATE"
AuthType Basic
AuthUserFile /etc/apache2/passwd
require valid-user
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Thu Jul 13, 2006 1:47 pm    Post subject: Reply with quote

è inutile riportare l'htaccess, devi guardare cosa ti dicono i log
Back to top
View user's profile Send private message
alexbgl
Apprentice
Apprentice


Joined: 05 Jul 2006
Posts: 240
Location: Verona

PostPosted: Thu Jul 13, 2006 2:08 pm    Post subject: Reply with quote

Nei log è tutto normale (secondo me).
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Thu Jul 13, 2006 2:38 pm    Post subject: Reply with quote

beh che ne dici di farli vedere anche a noi questi log?
in particolare i log di quando cerchi di connetterti...
e poi che tipo di errore ti da? not found? permission denied?
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
alexbgl
Apprentice
Apprentice


Joined: 05 Jul 2006
Posts: 240
Location: Verona

PostPosted: Thu Jul 13, 2006 2:52 pm    Post subject: Reply with quote

Non mi da alcun errore...se tento di connettermi in quel lasso di tempo dove c'è un solo processo, semplicemente il browser rimane lì in attesa del server, dopo funziona tutto normalmente.
Comunque ecco il log:
Code:
[Thu Jul 13 16:44:07 2006] [notice] caught SIGTERM, shutting down
[Thu Jul 13 16:44:17 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[Thu Jul 13 16:44:17 2006] [notice] Digest: generating secret for digest authentication ...
[Thu Jul 13 16:48:05 2006] [notice] Digest: done
[Thu Jul 13 16:48:05 2006] [notice] Apache configured -- resuming normal operations

Arriva subito fino alla riga "Digest: done" e dopo minuti all'ultima "Apache configured...".
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Thu Jul 13, 2006 3:16 pm    Post subject: Reply with quote

vedi se questo ti aiuta...
apache ha problemi con random e la generazione del digest..
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Thu Jul 13, 2006 3:52 pm    Post subject: Reply with quote

scusa, ma non ti è venuto in mente di alsare il livello di log di apache?
qualcosa deve andare storto di sicuro, se non ti visualizza nessuna pagina, e i log devono riportarlo per forza.

ovviamente devi riprodurre il problema
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Thu Jul 13, 2006 5:14 pm    Post subject: Reply with quote

l'errore è abbastanza chiaro..

Quote:
[Thu Jul 13 16:44:17 2006] [notice] Digest: generating secret for digest authentication ...
[Thu Jul 13 16:48:05 2006] [notice] Digest: done.


ci mette 4 minuti per generare il digest e nel frattempo, come è normale, nessuna richiesta viene servita..

ho trovato questo post e questo bug report che forse sono di aiuto.. anche se nell'ultimo caso apache si blocca proprio..

edit: prova ad usare /dev/urandom al posto di /dev/random
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
alexbgl
Apprentice
Apprentice


Joined: 05 Jul 2006
Posts: 240
Location: Verona

PostPosted: Fri Jul 14, 2006 7:49 am    Post subject: Reply with quote

Ho risolto ricompilando apache con la USE urandom (anche se non so esattamente cosa ho fatto)
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Fri Jul 14, 2006 7:55 am    Post subject: Reply with quote

ma apache non ha flag urandom... :roll:

edit:
hai forse ricompilato dev-libs/apr con la flag urandom e dopo apache?
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
alexbgl
Apprentice
Apprentice


Joined: 05 Jul 2006
Posts: 240
Location: Verona

PostPosted: Fri Jul 14, 2006 12:01 pm    Post subject: Reply with quote

si scusa. Ho impostato urandom e ho ricompilatoapache e tutte le sue dipendenze, quindi anche apr.
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Mon Mar 05, 2007 1:13 pm    Post subject: Reply with quote

A me ogni tanto capita che il server apache e mysql si stoppano da soli...
Uso joomla e mi servono entrambi. Quando voglio ripristinare la situazione sono costretto a dare
Code:
/etc/init.d/mysql start && /etc/init.d/apache2 start


Anche io ho lo stesso log:
Code:

[notice] caught SIGTERM, shutting down
[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[notice] Digest: generating secret for digest authentication ...
[notice] Digest: done
[notice] Apache configured -- resuming normal operations


Poi mi succede che se accedo al "sito web" da locale in locale (vado su http://localhost/joomla dallo stesso pc dove risiede il sito e il server) vedo il sito correttamente in questo modo. Se accedo da un altro computer nella stessa LAN invece il sito lo vedo così.
Ho installato Joomla anche su un altro PC con Gentoo, e non ho questi problemi. Sarà un problema di apache?
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
alexbgl
Apprentice
Apprentice


Joined: 05 Jul 2006
Posts: 240
Location: Verona

PostPosted: Mon Mar 05, 2007 5:26 pm    Post subject: Reply with quote

ma scusa:
si stoppano mysql e apache contemporaneamente??
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Mon Mar 05, 2007 7:34 pm    Post subject: Reply with quote

alexbgl wrote:
ma scusa:
si stoppano mysql e apache contemporaneamente??


Sembrerebbe proprio di si....
altrimenti quando faccio /etc/init.d/apache2 start e /etc/init.d/mysql start mi direbbe "Already started!" e invece è come se non fossero mai stati avviati prima.

Mi accorgo che il server è andato giù solo quando ad un tratto navigo nel sito che sto facendo con Joomla! e mi dice che non trova la pagina.
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
alexbgl
Apprentice
Apprentice


Joined: 05 Jul 2006
Posts: 240
Location: Verona

PostPosted: Mon Mar 05, 2007 8:26 pm    Post subject: Reply with quote

e non può essere per qualche stranissimo motivo che sia joomla?
Back to top
View user's profile Send private message
alexbgl
Apprentice
Apprentice


Joined: 05 Jul 2006
Posts: 240
Location: Verona

PostPosted: Mon Mar 05, 2007 8:27 pm    Post subject: Reply with quote

Aspetta ma se non ti da already started l'unico modo è che sono stati stoppati a mano :roll:
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Mon Mar 05, 2007 8:33 pm    Post subject: Reply with quote

alexbgl wrote:
Aspetta ma se non ti da already started l'unico modo è che sono stati stoppati a mano :roll:


Assolutamente no... sono sicuro di non averlo stoppato a mano.
Poi comunque anche se fosse Joomla!, la stessa versione ce l'ho installata su un altro pc che non presenta questo problema.
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
alexbgl
Apprentice
Apprentice


Joined: 05 Jul 2006
Posts: 240
Location: Verona

PostPosted: Mon Mar 05, 2007 8:55 pm    Post subject: Reply with quote

eh, sono troppo ignorante per poterti rispondere...però cmq se non ti scrive che è già avviato allora è stato cmq stoppato tramite l'init script (per quanto ne so io).
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Mon Mar 05, 2007 9:02 pm    Post subject: Reply with quote

alexbgl wrote:
eh, sono troppo ignorante per poterti rispondere...però cmq se non ti scrive che è già avviato allora è stato cmq stoppato tramite l'init script (per quanto ne so io).

Vabbè... ma non è questione di essere ignoranti per poter rispondere.. tranquillo. Il fatto è che ci saranno dei fantasmi che mi stoppano il server nel pc.... Vai a capire come sia possibile una cosa del genere.
Attendo un aggiornamento... potrei provare con una versione testing, ma non mi va di metterla.. vorrei lasciare le versioni stabili il più possibile.
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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