Meu info.php
não está funcionando. Quando usei o comando sudo a2enmod php7.0
meu servidor apache2 não está reiniciando
jack@jack-Aspire-E1-531:~$ sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
jack@jack-Aspire-E1-531:~$ 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 Tue 2017-04-04 20:05:11 IST; 27s ago
Docs: man:systemd-sysv-generator(8)
Process: 2664 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 2831 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
Apr 04 20:05:11 jack-Aspire-E1-531 apache2[2831]: * The apache2 configtest failed.
Apr 04 20:05:11 jack-Aspire-E1-531 apache2[2831]: Output of config test was:
Apr 04 20:05:11 jack-Aspire-E1-531 apache2[2831]: [Tue Apr 04 20:05:11.645428 2017] [:crit] [pid 2841:tid 140258000902016] Apache is running a
Apr 04 20:05:11 jack-Aspire-E1-531 apache2[2831]: AH00013: Pre-configuration failed
Apr 04 20:05:11 jack-Aspire-E1-531 apache2[2831]: Action 'configtest' failed.
Apr 04 20:05:11 jack-Aspire-E1-531 apache2[2831]: The Apache error log may have more information.
Apr 04 20:05:11 jack-Aspire-E1-531 systemd[1]: apache2.service: Control process exited, code=exited status=1
Apr 04 20:05:11 jack-Aspire-E1-531 systemd[1]: Failed to start LSB: Apache2 web server.
Apr 04 20:05:11 jack-Aspire-E1-531 systemd[1]: apache2.service: Unit entered failed state.
Apr 04 20:05:11 jack-Aspire-E1-531 systemd[1]: apache2.service: Failed with result 'exit-code'.
lines 1-19/19 (END)
/var/log/apache2/error.log
[Tue Apr 04 07:17:23.943459 2017] [mpm_event:notice] [pid 6533:tid 139807789062016] AH00491: caught SIGTERM, shutting down
[Tue Apr 04 09:22:10.446369 2017] [mpm_event:notice] [pid 4585:tid 140153437276032] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming nor$
[Tue Apr 04 09:22:10.454104 2017] [core:notice] [pid 4585:tid 140153437276032] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 04 09:23:09.874542 2017] [mpm_event:notice] [pid 4585:tid 140153437276032] AH00491: caught SIGTERM, shutting down
[Tue Apr 04 09:23:10.978333 2017] [mpm_event:notice] [pid 4703:tid 140635070674816] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming nor$
[Tue Apr 04 09:23:10.978381 2017] [core:notice] [pid 4703:tid 140635070674816] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 04 09:25:51.549647 2017] [mpm_event:notice] [pid 4703:tid 140635070674816] AH00491: caught SIGTERM, shutting down
[Tue Apr 04 09:25:52.672179 2017] [mpm_event:notice] [pid 4829:tid 140097173395328] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming nor$
[Tue Apr 04 09:25:52.672223 2017] [core:notice] [pid 4829:tid 140097173395328] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 04 09:29:03.947319 2017] [mpm_event:notice] [pid 4829:tid 140097173395328] AH00491: caught SIGTERM, shutting down
[Tue Apr 04 09:29:05.062755 2017] [mpm_event:notice] [pid 4965:tid 140552419727232] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming nor$
[Tue Apr 04 09:29:05.062798 2017] [core:notice] [pid 4965:tid 140552419727232] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 04 09:32:04.650877 2017] [mpm_event:notice] [pid 4965:tid 140552419727232] AH00491: caught SIGTERM, shutting down
[Tue Apr 04 09:32:05.764217 2017] [mpm_event:notice] [pid 5085:tid 140300585609088] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming nor$
[Tue Apr 04 09:32:05.764261 2017] [core:notice] [pid 5085:tid 140300585609088] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 04 10:33:22.363193 2017] [mpm_event:notice] [pid 5085:tid 140300585609088] AH00491: caught SIGTERM, shutting down
[Tue Apr 04 10:33:23.480838 2017] [mpm_event:notice] [pid 7276:tid 140468948535168] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming nor$
[Tue Apr 04 10:33:23.480883 2017] [core:notice] [pid 7276:tid 140468948535168] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 04 10:43:40.832883 2017] [mpm_event:notice] [pid 7276:tid 140468948535168] AH00491: caught SIGTERM, shutting down
[Tue Apr 04 10:43:41.951938 2017] [mpm_event:notice] [pid 7514:tid 140268499109760] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming nor$
[Tue Apr 04 10:43:41.951982 2017] [core:notice] [pid 7514:tid 140268499109760] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 04 10:55:46.011129 2017] [mpm_event:notice] [pid 7514:tid 140268499109760] AH00491: caught SIGTERM, shutting down
[Tue Apr 04 10:56:37.024590 2017] [mpm_event:notice] [pid 7859:tid 140046401853312] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming nor$
[Tue Apr 04 10:56:37.024633 2017] [core:notice] [pid 7859:tid 140046401853312] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 04 10:59:18.533213 2017] [mpm_event:notice] [pid 7859:tid 140046401853312] AH00491: caught SIGTERM, shutting down
[Tue Apr 04 15:38:44.924257 2017] [mpm_event:notice] [pid 9016:tid 140350376327040] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming nor$
[Tue Apr 04 15:38:44.924308 2017] [core:notice] [pid 9016:tid 140350376327040] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 04 15:46:14.173216 2017] [mpm_event:notice] [pid 9016:tid 140350376327040] AH00491: caught SIGTERM, shutting down
[Tue Apr 04 15:46:15.297732 2017] [mpm_event:notice] [pid 10772:tid 139787203495808] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming no$
[Tue Apr 04 15:46:15.297774 2017] [core:notice] [pid 10772:tid 139787203495808] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 04 15:48:35.352529 2017] [mpm_event:notice] [pid 10772:tid 139787203495808] AH00491: caught SIGTERM, shutting down
[Tue Apr 04 19:47:49.515671 2017] [mpm_event:notice] [pid 2086:tid 139743812622208] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming nor$
[Tue Apr 04 19:47:49.529699 2017] [core:notice] [pid 2086:tid 139743812622208] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 04 19:49:22.788439 2017] [mpm_event:notice] [pid 2086:tid 139743812622208] AH00491: caught SIGTERM, shutting down
[Tue Apr 04 19:49:23.914506 2017] [mpm_event:notice] [pid 2217:tid 139701550385024] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming nor$
[Tue Apr 04 19:49:23.914545 2017] [core:notice] [pid 2217:tid 139701550385024] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 04 19:52:56.059742 2017] [mpm_event:notice] [pid 2217:tid 139701550385024] AH00491: caught SIGTERM, shutting down
jack@jack-Aspire-E1-531:~$ sudo a2enmod php7.0
[sudo] password for jack:
Considering conflict php5 for php7.0:
Module php7.0 already enabled
jack@jack-Aspire-E1-531:~$ sudo apache2 -t
[Wed Apr 05 09:12:37.074326 2017] [core:warn] [pid 2330] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Wed Apr 05 09:12:37.074412 2017] [core:warn] [pid 2330] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Wed Apr 05 09:12:37.074435 2017] [core:warn] [pid 2330] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Wed Apr 05 09:12:37.074456 2017] [core:warn] [pid 2330] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Wed Apr 05 09:12:37.074473 2017] [core:warn] [pid 2330] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Wed Apr 05 09:12:37.088410 2017] [core:warn] [pid 2330:tid 139719866922880] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Wed Apr 05 09:12:37.088736 2017] [core:warn] [pid 2330:tid 139719866922880] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Wed Apr 05 09:12:37.088752 2017] [core:warn] [pid 2330:tid 139719866922880] AH00111: Config variable ${APACHE_LOG_DIR} is not defined