Unable to access Ossec directory resolution

Source: Internet
Author: User
Tags tmp folder ossec

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

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.