Control Web Panel

WebPanel => Apache => Topic started by: Xor on April 20, 2014, 10:11:28 PM

Title: Apache LogFormat problem
Post by: Xor on April 20, 2014, 10:11:28 PM
Hello,

On a fresh default install of WebPanel (CentOS 6), saving of httpd.conf via GUI results in error:

Code: [Select]
Starting httpd: Syntax error on line 497 of /etc/httpd/conf/httpd.conf:
LogFormat takes 1-2 arguments, a log format string (see docs) and an optional format name
                                                           [FAILED]

The LogFormat block hasn't been touched. Commenting out the top two directives (combined and common) seems to fix the issue and httpd restarts normally. I do wish to use combined log though.

Any idea what could be wrong?

Thank you in advance.
Title: Re: Apache LogFormat problem
Post by: Administrator on April 22, 2014, 05:12:16 PM
this was probably problem while editing httpd.conf with CWP file editor, php has some problem editing this line.

This will be fixed in newer versions.
Title: Re: Apache LogFormat problem
Post by: Xor on April 24, 2014, 09:00:22 AM
Yep, all quotes need to be escaped. The current GUI doesn't even accept manual input.

Thank you!
Title: Re: Apache LogFormat problem
Post by: chromebook on May 07, 2014, 04:42:35 AM
Thanks