Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Errore con apache2 [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
piero.turra
n00b
n00b


Joined: 28 Nov 2006
Posts: 39

PostPosted: Mon Nov 19, 2007 1:33 pm    Post subject: Errore con apache2 [Risolto] Reply with quote

Ho fatto un'aggiornamento qualche giorno fa, e da allora apache2 non parte più. Nel startuperrorlog vengono stampate le seguenti righe:

Syntax OK
no listening sockets available, shutting down
Unable to open logs

Non capisco il motivo del malfunzionamento, infatti non ho altri processi che utilizzano la porta 80
Questo è l'output di netstat -anp

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 5983/mysqld
tcp 0 0 127.0.0.1:139 0.0.0.0:* LISTEN 4986/smbd
tcp 0 0 192.168.0.5:139 0.0.0.0:* LISTEN 4986/smbd
tcp 0 0 0.0.0.0:3279 0.0.0.0:* LISTEN 5797/skype
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 4923/cupsd
tcp 0 0 127.0.0.1:445 0.0.0.0:* LISTEN 4986/smbd
tcp 0 0 192.168.0.5:445 0.0.0.0:* LISTEN 4986/smbd
tcp 0 0 192.168.0.5:1406 209.85.163.125:5222 ESTABLISHED 5812/pidgin
tcp 0 0 192.168.0.5:4143 151.49.57.95:65059 ESTABLISHED 5797/skype
tcp 0 0 192.168.0.5:1200 151.66.138.208:30238 ESTABLISHED 5797/skype
tcp 0 0 192.168.0.5:4523 151.50.0.242:15777 ESTABLISHED 5797/skype
udp 0 0 192.168.0.5:137 0.0.0.0:* 4996/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 4996/nmbd
udp 0 0 192.168.0.5:138 0.0.0.0:* 4996/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 4996/nmbd
udp 0 0 0.0.0.0:3279 0.0.0.0:* 5797/skype
udp 0 0 0.0.0.0:631 0.0.0.0:* 4923/cupsd
udp 0 0 127.0.0.1:1149 0.0.0.0:* 5797/skype

Spero che qualcuno mi possa auitare

grazie


Last edited by piero.turra on Wed Nov 21, 2007 2:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Mon Nov 19, 2007 1:53 pm    Post subject: Reply with quote

hai modo di riportare qualche altro log? tipo error_log di apache o altro presente in messages relativo all'errore?
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Mon Nov 19, 2007 3:05 pm    Post subject: Re: Errore con apache2 Reply with quote

piero.turra wrote:

Unable to open logs

Controlla i permessi dei logs
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
Back to top
View user's profile Send private message
piero.turra
n00b
n00b


Joined: 28 Nov 2006
Posts: 39

PostPosted: Mon Nov 19, 2007 8:02 pm    Post subject: Reply with quote

Grazie per avermi risposto così solertemente.

I permessi dei log sembrano essere a posto, visto che il server viane avviato come root:

-rw-r--r-- 1 root root 2044660 18 nov 18:23 access_log
-rw-r--r-- 1 root root 155427 18 nov 18:31 error_log
-rw-r--r-- 1 root root 0 18 nov 17:59 ssl_access_log
-rw-r--r-- 1 root root 228 18 nov 17:59 ssl_error_log
-rw-r--r-- 1 root root 0 18 nov 17:59 ssl_request_log
-rw-r--r-- 1 root root 152 19 nov 14:21 startuperror.log

Gli ultimi messaggi in error_log risalgono a ieri, l'ultima volta in cui sono riuscito ad avviarlo, ed è così per tutti gli altri log a parte startuperror, infatti credo che per i problemi relativi all'avvio venga utilizzato solo questo.
Comunque l'ultimo messaggio di error_log è il seguente

[Sun Nov 18 18:31:27 2007] [notice] caught SIGTERM, shutting down

Però salendo nella lettura ce ne sono altri, questo mi suggerisce che sia il messaggio che viene lasciato ad ogni spegnimento del server (ma potrei sbagliarmi).

Questi sono gli ultimi due (ed unici) messaggi di ssl_error_log

[Sun Nov 18 17:59:19 2007] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Nov 18 17:59:20 2007] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
Back to top
View user's profile Send private message
piero.turra
n00b
n00b


Joined: 28 Nov 2006
Posts: 39

PostPosted: Wed Nov 21, 2007 2:57 pm    Post subject: Reply with quote

Ho risolto il problema, nel mio file di configurazione "/etc/apache2/httpd.conf" mancava l'opzione "-D SSL_DEFAULT_VHOST" come indicato in seguito.

Code:
APACHE2_OPTS="-D SSL -D PHP4 -D SSL_DEFAULT_VHOST"
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