Problema avvio Apache2

2 risposte [Ultimo messaggio]
Ritratto di Duke
Duke
(Geek)
Offline
Geek
Iscritto: 13/10/2010
Messaggi: 57

Salve. Purtroppo da quando ho installato la 13.1 riscontro diversi problemi, tra cui l'avvio del server Apache2. Una volta configurato da Yast cliccando sull'icona Server HTTP e premuto il bottone 'Fine' mi viene visualizzato l'errore 'Impossibile adattare il servizio Apache2'. Se cerco di vedere nei file di log (con l'apposito bottone) mi visualizza un altro errore. Andando a vedere in /var/log/apache2 in effetti non trovo alcun file.
Se digito il comando systemctl status apache2.service da terminale viene fuori il seguente output:

linux-siwh:~ # systemctl status apache2.service -l
apache2.service - The Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
   Active: failed (Result: exit-code) since lun 2014-01-27 18:58:16 CET; 7min ago
  Process: 15373 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=1/FAILURE)
  Process: 15355 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k start (code=exited, status=1/FAILURE)
 Main PID: 15355 (code=exited, status=1/FAILURE)
 
gen 27 18:58:16 linux-siwh start_apache2[15355]: AH00526: Syntax error on line 48 of /etc/apache2/ssl-global.conf:
gen 27 18:58:16 linux-siwh start_apache2[15355]: SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).
gen 27 18:58:16 linux-siwh systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE
gen 27 18:58:16 linux-siwh start_apache2[15373]: AH00526: Syntax error on line 48 of /etc/apache2/ssl-global.conf:
gen 27 18:58:16 linux-siwh start_apache2[15373]: SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).
gen 27 18:58:16 linux-siwh systemd[1]: apache2.service: control process exited, code=exited status=1
gen 27 18:58:16 linux-siwh systemd[1]: Failed to start The Apache Webserver.
gen 27 18:58:16 linux-siwh systemd[1]: Unit apache2.service entered failed state.

Ho già provato a disinstallare e reinstallare Apache2. Il problema ce l'ho anche se provo ad avviare Apache da root, idem se provo a disabilitare Apparmor (che delle volte impedisce ai programmi di scrivere nelle loro cartelle di default se è sbagliato il file configurazione dei profili, problema che ho riscontrato con Samba).
Sono alle primissime armi con Apache, qualcuno riesce a darmi una mano?
Grazie.

Ritratto di wal7er
wal7er
(Guru)
Offline
Guru
Iscritto: 21/09/2007
Messaggi: 572

Ma c'è già scritto tutto nei log:

"
gen 27 18:58:16 linux-siwh start_apache2[15355]: AH00526: Syntax error on line 48 of /etc/apache2/ssl-global.conf:
gen 27 18:58:16 linux-siwh start_apache2[15355]: SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).
gen 27 18:58:16 linux-siwh systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE
gen 27 18:58:16 linux-siwh start_apache2[15373]: AH00526: Syntax error on line 48 of /etc/apache2/ssl-global.conf:
gen 27 18:58:16 linux-siwh start_apache2[15373]: SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).
"

Correggi /etc/apache2/ssl-global.conf, gli da fastidio shmcb.

HP Pavilion dv5-1110el powered by OpenSUSE 13.2 64bit

http://linuxcounter.net/cert/432576.png

Ritratto di Duke
Duke
(Geek)
Offline
Geek
Iscritto: 13/10/2010
Messaggi: 57

No, non era un problema di sintassi, ma la tua risposta mi ha messo sulla giusta strada Wink
Il problema era che quel file di configurazione riferisce ad un modulo che non era stato caricato dall'installazione di Apache2, il modulo socache_shmcb. La soluzione al problema l'ho trovato a questo link http://web.archiveorange.com/archive/v/wmeLDlrEKyG6Tn2CiMvU
Quindi, per risolvere il problema è stato sufficiente andare nell'interfaccia di configurazione di Apache (Yast -> Server HTTP), e nella maschera Moduli Server aggiungere il modulo socache_shmcb tramite il bottone Aggiungi Modulo Smile
C'è da chiedersi perchè i curatori della release si siano lasciati dietro un bug così grossolano. Sinceramente non mi sta entusiasmando questa 13.1, sto pensando di ritornare alla 12.2...