Salve a tutti :-)
Ho un Ubuntu Server 16.04 Virtualizzato con VirtualBox, che ho recentemente aggiornato dalla 14.04. Lo uso per i test in locale dei miei siti web.
Sto riscontrando dei problemi con l'avvio di Apache... anche se il server si avvia e pare funzionare correttamente, compare questo messaggio:
daniele@vmubuntulamp:~$ service apache2 restart
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Autenticazione richiesta per riavviare 'apache2.service'.
Authenticating as: Daniele Pinna (daniele)
Password:
==== AUTHENTICATION COMPLETE ===
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
Se guardo il risultato di systemctl status apache2.service ottengo:
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since dom 2016-07-17 14:54:00 CEST; 58s ago
Docs: man:systemd-sysv-generator(8)
Process: 5673 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
CGroup: /system.slice/apache2.service
├─5422 /usr/sbin/apache2 -k start
├─5425 /usr/sbin/apache2 -k start
├─5426 /usr/sbin/apache2 -k start
├─5427 /usr/sbin/apache2 -k start
├─5428 /usr/sbin/apache2 -k start
├─5429 /usr/sbin/apache2 -k start
├─5565 /usr/sbin/apache2 -k start
├─5568 /usr/sbin/apache2 -k start
├─5569 /usr/sbin/apache2 -k start
├─5570 /usr/sbin/apache2 -k start
└─5571 /usr/sbin/apache2 -k start
lug 17 14:53:39 vmubuntulamp systemd[1]: Starting LSB: Apache2 web server...
lug 17 14:53:39 vmubuntulamp apache2[5673]: * Starting Apache httpd web server apache2
lug 17 14:53:39 vmubuntulamp apache2[5673]: httpd (pid 5422) already running
lug 17 14:54:00 vmubuntulamp apache2[5673]: *
lug 17 14:54:00 vmubuntulamp apache2[5673]: * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
lug 17 14:54:00 vmubuntulamp systemd[1]: apache2.service: Control process exited, code=exited status=1
lug 17 14:54:00 vmubuntulamp systemd[1]: Failed to start LSB: Apache2 web server.
lug 17 14:54:00 vmubuntulamp systemd[1]: apache2.service: Unit entered failed state.
lug 17 14:54:00 vmubuntulamp systemd[1]: apache2.service: Failed with result 'exit-code'.
mentre il risultato di journalctl -xe è il seguente:
-- L'unità apache2.service ha terminato la fase di spegnimento.
lug 17 14:53:39 vmubuntulamp systemd[1]: Starting LSB: Apache2 web server...
-- Subject: L'unità apache2.service inizia la fase di avvio
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unità apache2.service ha iniziato la fase di avvio.
lug 17 14:53:39 vmubuntulamp apache2[5673]: * Starting Apache httpd web server apache2
lug 17 14:53:39 vmubuntulamp apache2[5673]: httpd (pid 5422) already running
lug 17 14:54:00 vmubuntulamp apache2[5673]: *
lug 17 14:54:00 vmubuntulamp apache2[5673]: * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
lug 17 14:54:00 vmubuntulamp systemd[1]: apache2.service: Control process exited, code=exited status=1
lug 17 14:54:00 vmubuntulamp systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: L'unità apache2.service è fallita
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unità apache2.service è fallita.
--
-- Il risultato è failed.
lug 17 14:54:00 vmubuntulamp systemd[1]: apache2.service: Unit entered failed state.
lug 17 14:54:00 vmubuntulamp systemd[1]: apache2.service: Failed with result 'exit-code'.
lug 17 14:54:00 vmubuntulamp polkitd(authority=local)[873]: Unregistered Authentication Agent for unix-process:5661:1028199 (system bus name :1.128, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale it_IT.UTF-8) (disconnected from bus)
lug 17 15:00:01 vmubuntulamp CRON[5817]: pam_unix(cron:session): session opened for user root by (uid=0)
lug 17 15:00:01 vmubuntulamp CRON[5818]: (root) CMD (/etc/webmin/bandwidth/rotate.pl)
lug 17 15:00:01 vmubuntulamp systemd[1]: Stopping System Logging Service...
-- Subject: L'unità rsyslog.service inizia la fase di spegnimento
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unità rsyslog.service ha iniziato la fase di spegnimento.
lug 17 15:00:01 vmubuntulamp systemd[1]: Stopped System Logging Service.
-- Subject: L'unità rsyslog.service termina la fase di spegnimento
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unità rsyslog.service ha terminato la fase di spegnimento.
lug 17 15:00:01 vmubuntulamp systemd[1]: Starting System Logging Service...
-- Subject: L'unità rsyslog.service inizia la fase di avvio
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unità rsyslog.service ha iniziato la fase di avvio.
lug 17 15:00:02 vmubuntulamp systemd[1]: Started System Logging Service.
-- Subject: L'unità rsyslog.service termina la fase di avvio
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unità rsyslog.service ha terminato la fase di avvio.
--
-- La fase di avvio è done.
lug 17 15:00:02 vmubuntulamp CRON[5817]: pam_unix(cron:session): session closed for user root
lug 17 15:09:01 vmubuntulamp CRON[5912]: pam_unix(cron:session): session opened for user root by (uid=0)
lug 17 15:09:01 vmubuntulamp CRON[5913]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean)
lug 17 15:09:01 vmubuntulamp CRON[5911]: pam_unix(cron:session): session opened for user root by (uid=0)
lug 17 15:09:01 vmubuntulamp CRON[5920]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
lug 17 15:09:01 vmubuntulamp CRON[5911]: pam_unix(cron:session): session closed for user root
lug 17 15:09:01 vmubuntulamp CRON[5912]: pam_unix(cron:session): session closed for user root
lug 17 15:17:01 vmubuntulamp CRON[6006]: pam_unix(cron:session): session opened for user root by (uid=0)
lug 17 15:17:01 vmubuntulamp CRON[6007]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
lug 17 15:17:01 vmubuntulamp CRON[6006]: pam_unix(cron:session): session closed for user root
P.S.
PHP dovrebbe essere la versione 7.0, ma vedo dei messaggi relativi a php5
Ringrazio Anticipatamente per le risposte
chiesto
17 Jul '16, 15:45
dapinna
50●5●5●9