Nilton123
(usa Ubuntu)
Enviado em 22/01/2017 - 21:42h
quando tento reiniciar o apache ele da esse erro:
nilton@linuxnilton:~$ sudo /etc/init.d/apache2 restart
/etc/init.d/apache2: 46: .: Can't open /etc/apache2/envvars
[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
failed!
nilton@linuxnilton:~$ systemctl status apache2.service
● 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 2017-01-22 21:42:03 BRST; 6s ago
Docs: man:systemd-sysv-generator(8)
Process: 27652 ExecStart=/etc/init.d/apache2 start (code=exited, status=2)
Jan 22 21:42:03 linuxnilton systemd[1]: Starting LSB: Apache2 web server...
Jan 22 21:42:03 linuxnilton apache2[27652]: /etc/init.d/apache2: 46: .: Can't open /etc/apache2/envvars
Jan 22 21:42:03 linuxnilton apache2[27652]: /etc/init.d/apache2: 57: .: Can't open /etc/apache2/envvars
Jan 22 21:42:03 linuxnilton apache2[27652]: ERROR: APACHE_PID_FILE needs to be defined in /etc/apache2/envvars
Jan 22 21:42:03 linuxnilton systemd[1]: apache2.service: Control process exited, code=exited status=2
Jan 22 21:42:03 linuxnilton systemd[1]: Failed to start LSB: Apache2 web server.
Jan 22 21:42:03 linuxnilton systemd[1]: apache2.service: Unit entered failed state.
Jan 22 21:42:03 linuxnilton systemd[1]: apache2.service: Failed with result 'exit-code'.