Unable to access ossec directory的解决

ossec安装完成后,打开web页面,菜单可以显示,不过没有内容,只有一个提示

Unable to access ossec directory

下面就说怎么搞定

导致这个问题的原因和解决方法如下

1,ossec文件夹所属是否是www或者apache(就是http服务的所有者)

2,tmp文件夹是否为777

3,ossec_conf.php 中$ossec_dir="/usr/local/ossec"; 这个是ossec安装的目录

4,如果执行2次或多次 ./setup.sh 修改用户密码或者修改配置,那么在 /etc/group中

ossec:x:500:apache 是否正确,添加2次的话,这里就是ossec:x:500:apacheapache,需要修改

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,如果多次执行setup.sh,那么请把 .htpasswd 中内容删除,再执行一次,即再次生成密码,同时需要执行上述第4条

7,service ossec restart

8,查看web页面,此时应该会显示各个客户端

时间: 2024-08-09 06:34:35

Unable to access ossec directory的解决的相关文章

Unable to access ossec directory的解决方案

ossec 2.8.1 安装后,再按照web UI 0.8后,打开web页面,菜单可以显示,不过没有内容,只有一个提示 Unable to access ossec directory 下面就说怎么搞定 导致这个问题的原因和解决方法如下 1,ossec文件夹所属是否是www或者apache(就是http服务的所有者) 2,tmp文件夹是否为777 3,ossec_conf.php 中$ossec_dir="/usr/local/ossec"; 这个是ossec安装的目录 4,如果执行2

GitHub Desktop报错fatal: unable to access 'https://github.com……: schannel: failed to open CA file 'C:/Users……bundle.crt': No such file or directory的解决办法

昨天github桌面版push的时候开始报错,提示某个crt文件找不到,大概就是下面这样 fatal: unable to access 'https://github.com/XXX/': schannel: failed to open CA file 'C:/Users/Andrew/AppData/Local/GitHubDesktop/app-1.2.2/resources/app/git/mingw64/bin/curl-ca-bundle.crt': No such file or

Android studio初次安装启动时弹出unable to access android sdk add-on list提示的解决方法

一.问题描述 初次安装Android Studio,启动后,报错如下: unable to access android sdk add-on lis 如图: 二.原因分析 AS启动后,会在默认路径下检测是否有Android SDK,如果没有的话,就会报上述错误. 三.解决方案 3.1 主动设置SDK 如果本机有Android SDK的话,可以点击cancel跳过,在下一个界面手动选择本地SDK目录就可以了. 3.2 跳过检测 在Android Studio的安装目录下,找到 ==\bin\id

(转)git clone出现 fatal: unable to access 'https://github.com/...'的解决办法

如下图所示,当我Git克隆别人的repo时,会发生这样的错误.发现它尝试用http和https代理,后来仔细回想了下,原来是自己用了代理,忘记取消 # 查看当前git 的设置 git config --global -l # 设置代理 git config --global http.proxy http://127.0.0.1:1080 git config --global https.proxy http://127.0.0.1:1080 http://也可以改成sockets5://,但

打开Android Studio时报Unable to access Android SDK add-on list

第一次安装Android studio时候弹出unable to access android sdk add-on list原因是你电脑没有SDK而且你下载的android studio又是不带SDK的: 解决方法:在自己安装的目录下找到:bin\idea.properties打开这个文件末尾添加一行disable.android.first.run=true就行了,如果打不开这个文件,可以下载安装EditPlus工具或者sublime_text工具,用工具打开修改即可.

使用github出了些问题?fatal: unable to access;Failed connect to github.com:8087;

使用github出了些问题?fatal: unable to access;Failed connect to github.com:8087; No error 我今天使用git push origin master的时候,提示我fatal: unable to access 'https://XXXX@github.com/XXX/XXX' Failed connect to github.com:8087; No error 在谷歌上查了很多办法都没有解决,有的方法是https连接模式改成

mac osx Forbidden You don't have permission to access / on this server解决方法

(1)首先查看*.conf 是否有读写权限,如果没有要将文件赋予读写权限,比如 sudo chmod 777 localhost.conf (2)再查看/Users/username/Sites/localhost/文件夹是否有index.html文件,没有的话,创建一个,默认是打开index.html文件 (3)最后查看localhost配置文件 对于OSX 10.9 Apache 2.2 <VirtualHost *:80> DocumentRoot "/Users/xx/Sit

you don&#39;t have permission to access / on this server解决

时间:2014-10-13 17:34来源:有何不可 作者:有何不可 举报 点击:56151次 项目部署到Apache Http Server上面,通过apachectl -t 检测配置文件也没有问题.可是通过浏览器访问,却出现了“you don't have permission to access / on this server”. 项目部署到Apache Http Server上面,通过apachectl -t 检测配置文件也没有问题.可是通过浏览器访问,却出现了“you don't h

unable to access android sdk add-on list

转载请标明出处:http://blog.csdn.net/xx326664162/article/details/50563122 文章出自:薛瑄的博客 你也可以查看我的其他同类文章,也会让你有一定的收货! 造成这个问题的原因可能有多种,下面两种方法,我亲自测试后可用,如果都不行,请在评论里告诉我,我会尽快帮你分析解决.左侧的文章分类中,Android Studio编译构建错误记录了我开发中遇到的所有编译构建错误,这些方法都经过我亲测,如有任何疑问,评论告诉我. 错误信息: 第一次安装完AS,出