The error you are getting means that Apache can't access the ossec
directory. This
document has a better step by step than the wiki one:
http://www.ossec.net/main/manual/wui-ubuntu/
You need to make sure that you give apache the proper permissions:
*To get the username that Apache is running
root@home:/var/www/ossec# ps auwx |grep apache | cut -d " " -f 1 |
grep -v root | uniq
www-data
*Adding access to the ossec dir:
root@home:/var/www/ossec# usermod -a -G ossec www-data
root@home:/var/www/ossec# cat /etc/group |grep ossec
ossec:x:1001:www-data
*Fixing ./tmp permissions
root@home:/var/www/ossec# chmod 770 tmp/
root@home:/var/www/ossec# chgrp www-data tmp/
root@home:/var/www/ossec# apache2ctl restart
Hope it helps.
--
Daniel B. Cid
dcid ( at ) ossec.net
2009/5/7 yangguyu44944 <yanggu...@163.com>:
The error you are getting means that Apache can't access the ossec
directory. This
document has a better step by step than the wiki one:
http://www.ossec.net/main/manual/wui-ubuntu/
You need to make sure that you give apache the proper permissions:
*To get the username that Apache is running
root@home:/var/www/ossec# ps auwx |grep apache | cut -d " " -f 1 |
grep -v root | uniq
www-data
*Adding access to the ossec dir:
root@home:/var/www/ossec# usermod -a -G ossec www-data
root@home:/var/www/ossec# cat /etc/group |grep ossec
ossec:x:1001:www-data
*Fixing ./tmp permissions
root@home:/var/www/ossec# chmod 770 tmp/
root@home:/var/www/ossec# chgrp www-data tmp/
root@home:/var/www/ossec# apache2ctl restart
Hope it helps.
--
Daniel B. Cid
dcid ( at ) ossec.net
2009/5/7 yangguyu44944 <yanggu...@163.com>: