After ossec 2.8.1 is installed, follow the web UI 0.8 and open the web page, the menu can be displayed, but there is no content, only a prompt
Unable to access ossec directory
Let's talk about how to get it
The reasons and solutions for this problem are as follows
1. Whether the ossec folder belongs to www or apache (the owner of the http service)
2. Is the tmp folder 777?
3. $ossec_dir="/usr/local/ossec" in ossec_conf.php; this is the directory where ossec is installed
4. If you execute ./setup.sh 2 or more times to modify the user password or modify the configuration, then in /etc/group
Is ossec:x:500:apache correct? If you add it twice, here is ossec:x:500:apacheapache, which needs to be modified
5. Configuration of setup.sh
# ./setup.sh Setting up ossec ui... Username: ossec #web login username New password: #web login password Re-type new password: Adding password for user ossecEnter your web server user name (egapache, www , nobody, www-data, ...)apache #web server owner, generally apache or wwwEnter your OSSEC install directory path(eg /var/ossec)/usr/local/ossec #ossec installation directory You must restart your web server after thissetup is done. Setup completed successfuly
6. If you execute setup.sh multiple times, please delete the content in .htpasswd and execute it again to generate a password again. At the same time, you need to execute item 4 above
7, service ossec restart
8. View the web page, each client should be displayed at this time
Unable to access ossec directory solution