httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Baker <i...@collisiondetection.biz>
Subject Re: [users@httpd] apache2 config test failed
Date Wed, 22 Feb 2017 12:07:03 GMT
Ok I will try that .



Thanks


Dan


On 02/21/2017 02:16 PM, Mitchell Krog Photography wrote:
> Line 219 of your .conf file reads "IncludeOptional sites-enabled/*.conf”
>
> that’s where it starts loading the sites you have configured and 
> that’s where it is failing. So start looking for errors on line 32 on 
> one of your enabled-sites conf files and not for an error in your 
> apache2.conf which looks perfectly bog standard and fine to me.
>
> Either that or disable all sites, and enabled them one by one doing an 
> “apache2ctl configtest” each time and you will find the culprit
>
> Hope you come right.
> Cheers ;)
>
>
> From: Daniel Baker <info@collisiondetection.biz> 
> <mailto:info@collisiondetection.biz>
> Reply: users@httpd.apache.org <mailto:users@httpd.apache.org> 
> <users@httpd.apache.org> <mailto:users@httpd.apache.org>
> Date: 21 February 2017 at 3:17:02 AM
> To: users@httpd.apache.org <mailto:users@httpd.apache.org> 
> <users@httpd.apache.org> <mailto:users@httpd.apache.org>
> Subject: [users@httpd] apache2 config test failed
>
>> Hi,
>>
>> Apache fails to start on a 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
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org 
>> <mailto:users-unsubscribe@httpd.apache.org>
>> For additional commands, e-mail: users-help@httpd.apache.org 
>> <mailto:users-help@httpd.apache.org>


Mime
View raw message