New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Apache LogFormat problem

Started by Xor, April 20, 2014, 10:11:28 PM

Previous topic - Next topic

Xor

Hello,

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

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.

Administrator

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.

Xor

Yep, all quotes need to be escaped. The current GUI doesn't even accept manual input.

Thank you!