Unrecognized LogFormat directive %O

Freedomlover

Verified User
Joined
Apr 24, 2008
Messages
8
Location
Thailand
Hi

I can't start apache .
I see this message after update DA 1.331

Starting httpd: Syntax error on line 5 of /etc/httpd/conf/ips.conf:
Unrecognized LogFormat directive %O


i use CentOS 5 64bit , Apache 2.2.11


How should I solve the problem.
 
I dont know why that would be in /etc/httpd/conf/ips.conf

I would just put a # infront of that line.
 
You shouldn't put a # in front of it. It seems you have ips.conf of Apache 2.x (http://directadmin.com/features.php?id=931), and you have 1.3 on your system. Try rewriting it:
Code:
echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d

Make sure you don't have apache 2.0 set in directadmin.conf, if you have 1.3 on your system.
 
i have the same problem over here, if i change

Code:
LogFormat "%O \"%r\"" homedir

to


Code:
LogFormat "%b \"%r\"" homedir



it works again, but after a few hours ips.conf is change back in


Code:
LogFormat "%O \"%r\"" homedir


and the httpd stopped.

someone have some ideas ?


edit: i use apache 2
 
I found another solution to solve this ploblem.
In case of custompache , you 'll need to enable-logio .

try this...

cd /usr/local/directadmin/customapache
./build clean
nano configure.apache_2

add this line :
--enable-logio \

./build apache_2
./buld php_ap2 n
service httpd restart
 
we too

It's happens on 2 servers I did directadmin upgrade on them.

Does updating the directadmin to 1.33.6 fixes it? Please help:eek:
 
Back
Top