Is apache running in a chroot? If you did not "unchroot" it, it is chrooted to /var/www. Since it's chrooted to /var/www, it cannot access /var/ossec. Last time I messed with wui, I installed it in /var/www/var/ossec and wui worked just fine.
On Wed, Aug 12, 2009 at 6:41 PM, dimitry A.<[email protected]> wrote: > Hi all. > > I installed OSSEC in a server OpenBSD 4.5 and run ok with window and unix > agent and sed messages to me email account, but I have a problem with wui > interface. I install this service reading the oficial intall guide > http://www.ossec.net/wiki/index.php/OSSECWUI:Install. > I review all configuration but the message of WUI is: "Unable to access > ossec directory." > > In mi /etc/group file I configure this: > > ossec:*:1000: > #Configuracion de web server user > From: > ossec:x:1000: > To: > ossec:x:1000:www > > Apache work OK > PHP wok OK > > In the /var/www/logs/error_log file I read this: > > [Wed Aug 12 14:20:10 2009] [error] PHP Warning: opendir(/var/ossec) [<a > href='function.opendir'>function.opendir</a>]: failed to open dir: No such > fi > le or directory in /htdocs/ossec-wui/lib/os_lib_handle.php on line 94 > [Wed Aug 12 14:21:40 2009] [error] PHP Warning: opendir(/var/ossec) [<a > href='function.opendir'>function.opendir</a>]: failed to open dir: No such > fi > le or directory in /htdocs/ossec-wui/lib/os_lib_handle.php on line 94 > [Wed Aug 12 14:23:10 2009] [error] PHP Warning: opendir(/var/ossec) [<a > href='functionopendir'>function.opendir</a>]: failed to open dir: No such fi > le or directory in /htdocs/ossec-wui/lib/os_lib_handle.php on line 94 > [Wed Aug 12 14:24:40 2009] [error] PHP Warning: opendir(/var/ossec) [<a > href='function.opendir'>function.opendir</a>]: failed to open dir: No such > fi > le or directory in /htdocs/ossec-wui/lib/os_lib_handle.php on line 94 > > I find in internet any information but all same error and possible solutions > are no successful. Any idea of wath is the problem?..... > > Motor: nuevos modelos, nuevas sensaciones. ¡Conócelos en Autocity!
