View Full Version : Unrecognized LogFormat directive %O
Freedomlover
02-26-2009, 11:59 AM
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.
Whats on line 5 in /etc/httpd/conf/ips.conf
Freedomlover
02-26-2009, 12:07 PM
LogFormat "%O \"%r\"" homedir
I dont know why that would be in /etc/httpd/conf/ips.conf
I would just put a # infront of that line.
smtalk
02-26-2009, 12:21 PM
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:
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.
XTiger
02-27-2009, 09:12 AM
i have the same problem over here, if i change
LogFormat "%O \"%r\"" homedir
to
LogFormat "%b \"%r\"" homedir
it works again, but after a few hours ips.conf is change back in
LogFormat "%O \"%r\"" homedir
and the httpd stopped.
someone have some ideas ?
edit: i use apache 2
DirectAdmin Support
02-27-2009, 04:16 PM
Hello,
I've fixed it in the binaries and re-released them.
I've commented here in the feature/bug report:
http://www.directadmin.com/features.php?id=931
Please update your binaries are per those instruction in id=931 using this guide:
http://help.directadmin.com/item.php?id=29
and then issue the ips rewrite (also mentioned in id=931)
John
Akarawat
02-27-2009, 09:17 PM
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
Freedomlover
02-27-2009, 09:20 PM
Thank you all answers.
I forgot enable mod_logio. :)
...
Please update your binaries are per those instruction in id=931 using this guide:
http://help.directadmin.com/item.php?id=29
and then issue the ips rewrite (also mentioned in id=931)
John
The title of id=29 is "Updating DirectAdmin Manually", is that correct?, am I supposed to update DirectAdmin or Apache manually?
Thanks
hpman28
04-30-2009, 11:51 AM
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:
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.