Ignore this, sent to the wrong mailing list.

On 02/21/2017 07:42 AM, Daniel Baker wrote:
Hi,

Apache fails to start on Ubuntu 16.04   Virtual Machine.

The error says a syntax error however when I compare a working apache2.conf to a non working apache2.conf version I can see that both configs are identical.


The error says a syntax error :

ERROR:

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-02-21 05:05:04 ICT; 17s ago
     Docs: man:systemd-sysv-generator(8)
Process: 24742 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Feb 21 05:05:04 ubuntu apache2[24742]:  *
Feb 21 05:05:04 ubuntu apache2[24742]:  * The apache2 configtest failed.
Feb 21 05:05:04 ubuntu apache2[24742]: Output of config test was:
Feb 21 05:05:04 ubuntu apache2[24742]: *apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 32*
Feb 21 05:05:04 ubuntu apache2[24742]: Action 'configtest' failed.
Feb 21 05:05:04 ubuntu apache2[24742]: The Apache error log may have more information. Feb 21 05:05:04 ubuntu systemd[1]: apache2.service: Control process exited, code=exited status=1 Feb 21 05:05:04 ubuntu systemd[1]: Failed to start LSB: Apache2 web server. Feb 21 05:05:04 ubuntu systemd[1]: apache2.service: Unit entered failed state. Feb 21 05:05:04 ubuntu systemd[1]: apache2.service: Failed with result 'exit-code'.





 journalctl -xe
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The system clock has been changed to REALTIME microseconds after January 1st, 1970. Feb 21 05:06:34 ubuntu systemd[1]: snapd.refresh.timer: Adding 3h 53min 28.746372s random time. Feb 21 05:06:34 ubuntu systemd[1]: apt-daily.timer: Adding 2h 8min 4.565188s random time. Feb 21 05:09:01 ubuntu CRON[25087]: pam_unix(cron:session): session opened for user root by (uid=0) Feb 21 05:09:01 ubuntu CRON[25088]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean) Feb 21 05:09:02 ubuntu CRON[25087]: pam_unix(cron:session): session closed for user root Feb 21 05:09:02 ubuntu postfix/pickup[25040]: 55E2661615: uid=0 from=<root> Feb 21 05:09:02 ubuntu postfix/cleanup[25131]: 55E2661615: message-id=<20170220220902.55E2661615@ubuntu> Feb 21 05:09:02 ubuntu postfix/qmgr[3227]: 55E2661615: from=<root@ubuntu>, size=767, nrcpt=1 (queue active) Feb 21 05:09:02 ubuntu postfix/local[25133]: 55E2661615: to=<root@ubuntu>, orig_to=<root>, relay=local, delay=0.45, delays=0.2
Feb 21 05:09:02 ubuntu postfix/qmgr[3227]: 55E2661615: removed
Feb 21 05:11:09 ubuntu ntpd[1524]: 203.158.118.2 local addr 192.168.0.103 -> <null> Feb 21 05:12:02 ubuntu ntpd[1524]: 61.216.153.107 local addr 192.168.0.103 -> <null> Feb 21 05:12:14 ubuntu ntpd[1524]: 61.216.153.105 local addr 192.168.0.103 -> <null>
Feb 21 05:12:56 ubuntu systemd[1]: Starting LSB: Apache2 web server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has begun starting up.
Feb 21 05:12:56 ubuntu apache2[25210]: * Starting Apache httpd web server apache2
Feb 21 05:12:56 ubuntu apache2[25210]:  *
Feb 21 05:12:56 ubuntu apache2[25210]:  * The apache2 configtest failed.
Feb 21 05:12:56 ubuntu apache2[25210]: Output of config test was:
Feb 21 05:12:56 ubuntu apache2[25210]:*apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 32*
Feb 21 05:12:56 ubuntu apache2[25210]: Action 'configtest' failed.
Feb 21 05:12:56 ubuntu apache2[25210]: The Apache error log may have more information. Feb 21 05:12:56 ubuntu systemd[1]: apache2.service: Control process exited, code=exited status=1 Feb 21 05:12:56 ubuntu systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
Feb 21 05:12:56 ubuntu systemd[1]: apache2.service: Unit entered failed state. Feb 21 05:12:56 ubuntu systemd[1]: apache2.service: Failed with result 'exit-code'.
lines 2131-2170/2170 (END)


I tried replacing the non working apache2 folder with a working one but the error still persists.
Is the problem being caused somewhere else ?

How can I resolve this issue ?

Thanks,

Dan



Reply via email to