I am having the error after I used `a2ensite MyDomain.com.conf` then reload the apache2 `service apache2 reload`

Asked by Cody Cortez

I am using Ubuntu 16.04 LTS hosted on Linode.

What I want is to reload the apache2 after i used the `a2ensite MyDamain.com.conf`. But I am having the error after I used `a2ensite MyDomain.com.conf` then reload the apache2 `service apache2 reload`

The error after the command is

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

When I used `system status apache2.service`, I get these results :

 `

    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: active (running) since Wed 2017-11-29 10:44:42 EST; 29min ago
         Docs: man:systemd-sysv-generator(8)
      Process: 16126 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
      Process: 15556 ExecReload=/etc/init.d/apache2 reload (code=exited, status=1/FAILURE)
      Process: 16148 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
       CGroup: /system.slice/apache2.service
               ├─16165 /usr/sbin/apache2 -k start
               ├─16168 /usr/sbin/apache2 -k start
               └─16169 /usr/sbin/apache2 -k start

    Nov 29 10:44:41 hostname systemd[1]: Stopped LSB: Apache2 web server.
    Nov 29 10:44:41 hostname systemd[1]: Starting LSB: Apache2 web server...
    Nov 29 10:44:41 hostname apache2[16148]: * Starting Apache httpd web server apache2
    Nov 29 10:44:42 hostname apache2[16148]: *
    Nov 29 10:44:42 hostname systemd[1]: Started LSB: Apache2 web server.

`

Here's the `/var/log/apache2/error.log` output:

    [Wed Nov 29 09:18:18.391354 2017] [mpm_event:notice] [pid 2603:tid 140612271839104] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
    [Wed Nov 29 09:18:18.391428 2017] [core:notice] [pid 2603:tid 140612271839104] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Nov 29 09:19:16.891581 2017] [mpm_event:notice] [pid 2603:tid 140612271839104] AH00493: SIGUSR1 received. Doing graceful restart
    [Wed Nov 29 09:19:16.896943 2017] [mpm_event:notice] [pid 2603:tid 140612271839104] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
    [Wed Nov 29 09:19:16.896954 2017] [core:notice] [pid 2603:tid 140612271839104] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Nov 29 10:42:59.573821 2017] [mpm_event:notice] [pid 2603:tid 140612271839104] AH00491: caught SIGTERM, shutting down
    [Wed Nov 29 10:43:48.125153 2017] [mpm_event:notice] [pid 16050:tid 140568317134720] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
    [Wed Nov 29 10:43:48.125248 2017] [core:notice] [pid 16050:tid 140568317134720] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Nov 29 10:44:40.835976 2017] [mpm_event:notice] [pid 16050:tid 140568317134720] AH00491: caught SIGTERM, shutting down
    [Wed Nov 29 10:44:41.915837 2017] [mpm_event:notice] [pid 16165:tid 140038324930432] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
    [Wed Nov 29 10:44:41.915935 2017] [core:notice] [pid 16165:tid 140038324930432] AH00094: Command line: '/usr/sbin/apache2'

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu apache2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.