Unable to Access Ossec Directory Hatası Çözümü

Unable to Access Ossec Directory

Ossec arayüzünü kurduktan sonra Unable to Access Ossec Directory hatası alıyor isek aşağıdaki işlemi yapmamız gerekmektedir.

*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