Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution of Unable to access ossec directory

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

After the ossec installation is complete, open the web page and 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 done.

The causes and solutions to this problem are as follows

1whether the www or apache folder belongs to (that is, the owner of the http service)

2whether the dint tmp folder is 777

3. $ossec_dir= "/ usr/local/ossec" in $ossec installation conf.php; this is the directory where you installed it.

4, if you execute. / setup.sh two or more times to change the user's password or change the configuration, then in / etc/group

Whether ossec:x:500:apache is correct or not. If you add it twice, this is ossec:x:500:apacheapache, which needs to be modified.

5The configuration of setup.sh

#. / setup.sh Setting up ossec ui... Username: user name of ossec # web login New password: # web login password Re-type new password: Adding password for user ossecEnter your web server user name (e.g.apache, www, nobody, www-data,...) apache # web server owner, usually apache or installation directory You must restart your web server after thissetup is done of wwwEnter your OSSEC install directory path (e.g. / var/ossec) / usr/local/ossec # ossec. Setup completed successfuly

6. If you execute setup.sh multiple times, delete the content in .htpasswd and execute it again, that is, generate the password again, and you need to execute Article 4 above.

7,service ossec restart

eight,

Vim / etc/httpd/conf.d/ossec.conf # Order deny,allow# Deny from all# Allow from 192.168.22.0/24Options FollowSymLinks AllowOverride None Order deny,allow allow from all Options-MultiViews AuthName "OSSEC AUTH" AuthType Basic AuthUserFile / var/www/html/ossec/.htpasswd Require valid-user

# service httpd restart

9. Check the web page, and each client should be displayed.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report