Unable to access ossec directory solutions

Source: Internet
Author: User
Tags tmp folder ossec
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.