Falha ao iniciar o servidor da Web LSB: Apache2

0

Eu uso o Ubuntu 16.02. Quando tento sudo service apache2 restart , diz:

Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.

Em seguida, digito: journalctl -xe e solicito:

abr 02 03:14:05 server systemd[1]: Started CUPS Scheduler.                                                                                           
-- Subject: Unit cups.path has finished start-up                                                                                                     
-- Defined-By: systemd                                                                                                                               
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel                                                                              
--                                                                                                                                                   
-- Unit cups.path has finished starting up.                                                                                                          
--                                                                                                                                                   
-- The start-up result is done.                                                                                                                      
abr 02 03:14:05 server systemd[1]: Started CUPS Scheduler.                                                                                           
-- Subject: Unit cups.service has finished start-up                                                                                                  
-- Defined-By: systemd                                                                                                                               
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel                                                                              
--                                                                                                                                                   
-- Unit cups.service has finished starting up.                                                                                                       
--                                                                                                                                                   
-- The start-up result is done.                                                                                                                      
abr 02 03:14:09 server anacron[1047]: Job 'cron.daily' terminated                                                                                    
abr 02 03:14:09 server anacron[1047]: Normal exit (1 job run)                                                                                        
abr 02 03:14:10 server ddclient[2286]: WARNING:  file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''                
abr 02 03:14:10 server ddclient[2290]: WARNING:  skipping update of ubuntugdc.sytes.net from <nothing> to 192.168.1.59.                              
abr 02 03:14:10 server ddclient[2290]: WARNING:   last updated <never> but last attempt on Mon Apr  2 03:09:10 2018 failed.                          
abr 02 03:14:10 server ddclient[2290]: WARNING:   Wait at least 5 minutes between update attempts.                                                   
abr 02 03:15:01 server CRON[2293]: pam_unix(cron:session): session opened for user root by (uid=0)                                                   
abr 02 03:15:01 server CRON[2294]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)                                                  
abr 02 03:15:01 server CRON[2293]: pam_unix(cron:session): session closed for user root                                                              
abr 02 03:17:01 server CRON[2306]: pam_unix(cron:session): session opened for user root by (uid=0)                                                   
abr 02 03:17:01 server CRON[2307]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)                                                       
abr 02 03:17:01 server CRON[2306]: pam_unix(cron:session): session closed for user root                                                              
abr 02 03:20:01 server CRON[2325]: pam_unix(cron:session): session opened for user smmsp by (uid=0)                                                  
abr 02 03:20:01 server CRON[2326]: (smmsp) CMD (test -x /etc/init.d/sendmail && test -x /usr/share/sendmail/sendmail && test -x /usr/lib/sm.bin/sendm
abr 02 03:20:01 server sm-msp-queue[2345]: My unqualified host name (server) unknown; sleeping for retry                                             
abr 02 03:21:01 server sm-msp-queue[2345]: unable to qualify my own domain name (server) -- using short name                                         
abr 02 03:21:01 server CRON[2325]: pam_unix(cron:session): session closed for user smmsp                                                             
abr 02 03:23:55 server systemd[1]: Starting Cleanup of Temporary Directories...                                                                      
-- Subject: Unit systemd-tmpfiles-clean.service has begun start-up                                                                                   
-- Defined-By: systemd                                                                                                                               
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel                                                                              
--                                                                                                                                                   
-- Unit systemd-tmpfiles-clean.service has begun starting up.                                                                                        
abr 02 03:23:55 server systemd-tmpfiles[2364]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.                       
abr 02 03:23:55 server systemd[1]: Started Cleanup of Temporary Directories.                                                                         
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up                                                                                
-- Defined-By: systemd                                                                                                                               
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel                                                                              
--                                                                                                                                                   
-- Unit systemd-tmpfiles-clean.service has finished starting up.                                                                                     
--                                                                                                                                                   
-- The start-up result is done.                                                                                                                      
abr 02 03:24:11 server ddclient[2370]: WARNING:  file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''                
abr 02 03:25:01 server CRON[2375]: pam_unix(cron:session): session opened for user root by (uid=0)                                                   
abr 02 03:25:01 server CRON[2376]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)                                                  
abr 02 03:25:01 server CRON[2375]: pam_unix(cron:session): session closed for user root                                                              
abr 02 03:29:11 server ddclient[2396]: WARNING:  file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''                
abr 02 03:29:11 server ddclient[2400]: WARNING:  skipping update of ubuntugdc.sytes.net from <nothing> to 192.168.1.59.                              
abr 02 03:29:11 server ddclient[2400]: WARNING:   last updated <never> but last attempt on Mon Apr  2 03:24:11 2018 failed.                          
abr 02 03:29:11 server ddclient[2400]: WARNING:   Wait at least 5 minutes between update attempts.                                                   
abr 02 03:35:01 server CRON[2429]: pam_unix(cron:session): session opened for user root by (uid=0)                                                   
abr 02 03:35:01 server CRON[2430]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)                                                  
abr 02 03:35:01 server CRON[2429]: pam_unix(cron:session): session closed for user root

E quando systemctl status apache2.service é o mais importante:

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 lun 2018-04-02 03:12:34 CEST; 22min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2045 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

abr 02 03:12:34 server apache2[2045]:  *
abr 02 03:12:34 server apache2[2045]:  * The apache2 configtest failed.
abr 02 03:12:34 server apache2[2045]: Output of config test was:
abr 02 03:12:34 server apache2[2045]: apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 50 of /etc/apache2/sites-e
abr 02 03:12:34 server apache2[2045]: Action 'configtest' failed.
abr 02 03:12:34 server apache2[2045]: The Apache error log may have more information.
abr 02 03:12:34 server systemd[1]: apache2.service: Control process exited, code=exited status=1
abr 02 03:12:34 server systemd[1]: Failed to start LSB: Apache2 web server.
abr 02 03:12:34 server systemd[1]: apache2.service: Unit entered failed state.
abr 02 03:12:34 server systemd[1]: apache2.service: Failed with result 'exit-code'.

O que está errado? Onde está uma interrupção? Por favor ajude!

    
por Dumitru Cristi Gordas 02.04.2018 / 03:37

0 respostas