Ossec after the installation is complete, open the Web page, the menu can be displayed, but no content, only a hint
Unable to access ossec directory
Here's how it's done.
The causes and solutions to this problem are as follows
Whether the 1,ossec folder belongs to www or Apache (which is the owner of the HTTP service)
Whether the 2,tmp folder is 777
$ossec_dir= "/usr/local/ossec" in 3,ossec_conf.php; This is the ossec installed directory.
4, if executed 2 or more times./setup.sh Modify the user password or modify the configuration, then in/etc/group
Ossec:x:500:apache is correct, add 2 times, here is Ossec:x:500:apacheapache, need to modify
Configuration of the 5,setup.sh
# ./setup.sh
Setting up ossec ui...
Username: ossec #web登录的用户名
New password: #web登录密码
Re-
type
new password:
Adding password
for
user ossec
Enter your web server user name (e.g.apache, www, nobody, www-data, ...)
apache #web服务器所有者,一般为apache或者为www
Enter your OSSEC
install
directory path(e.g.
/var/ossec
)
/usr/local/ossec #ossec的安装目录
You must restart your web server after thissetup is
done
.
Setup completed successfuly
6, if the setup.sh is executed multiple times, then please delete the contents of the. htpasswd, then execute again, that is, generate the password again, and need to perform the above 4th
7,service ossec Restart
8, view the Web page, the individual clients should be displayed at this time
This article is from the "back Line Swallow" blog, please make sure to keep this source http://bbotte.blog.51cto.com/6205307/1586505
Unable to access Ossec directory resolution