首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在gentoo上缺少文档icinga2安装

在gentoo上缺少文档icinga2安装
EN

Unix & Linux用户
提问于 2019-09-30 13:00:20
回答 1查看 226关注 0票数 0

我需要在gentoo上安装mariadb、apache2、php、icinga2和icingaweb2。

根据文档,我成功地安装了mariadb、apache2、(可能) php和icinga2。

目前(根据日志),icinga2运行时没有错误。但是,我无法正确配置icingaweb2。

是否有任何文档/教程如何在gentoo中配置icingaweb2?

此时,我只需要在端口80上获得一个没有LDAP的基本HTTP设置。(稍后我将使用ssl安全性和域。)

从这些文档中还不清楚我犯了什么错误。

https://icinga.com/docs/icingaweb2/latest/doc/02-Installation/

https://icinga.com/docs/icinga2/latest/doc/02-installation/

https://www.cs.uni-potsdam.de/~pveber/apache.html

目前只有http://localhost响应(默认的apache消息“它工作!”)

http://localhost/icingaweb2http://icingaweb2/icingaclihttp://icingaweb2/setup等.没什么

我不知道在/var/www/或/usr/share/ icingaweb2 2/public/中必须将icingaweb2文档根目录放在哪里。

在my /etc/apache2/vhosts.d/00_defaultvhost.conf中是:

代码语言:javascript
复制
##mmtest

    Options SymLinksIfOwnerMatch
    AllowOverride None

    DirectoryIndex index.php

    
        # Apache 2.4
        
            Require all granted
        
    

    
        # Apache 2.2
        Order allow,deny
        Allow from all
    

    SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2"

    EnableSendfile Off

    
        RewriteEngine on
        RewriteBase /icingaweb2/
        RewriteCond %{REQUEST_FILENAME} -s [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    

    
        DirectoryIndex error_norewrite.html
        ErrorDocument 404 /icingaweb2/error_norewrite.html
    





# Remove comments if you want to use PHP FPM and your Apache version
# is greater than or equal to 2.4
#    = 2.4>
#        # Forward PHP requests to FPM
#        SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
#        
#            SetHandler "proxy:fcgi://127.0.0.1:9000"
#            ErrorDocument 503 {urlPath}/error_unavailable.html
#        
#    
EN

回答 1

Unix & Linux用户

发布于 2019-10-01 10:17:52

在/etc/apache2/vhosts.d/default_vhost.include中,我必须放置行

代码语言:javascript
复制
Include /etc/apache2/vhosts.d/99_icingaweb2.include

这一行在文件的末尾。在上一个现有标签之后。

在99_icingaweb2.include中是:

代码语言:javascript
复制
Alias /icingaweb2 /usr/share/icingaweb2/public


    Options SymLinksIfOwnerMatch
    AllowOverride None

    DirectoryIndex index.php

    
        # Apache 2.4
        
            Require all granted
        
    

    SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2"

    EnableSendfile Off

    
        RewriteEngine on
        RewriteBase /icingaweb2/
        RewriteCond %{REQUEST_FILENAME} -s [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    

    
        DirectoryIndex error_norewrite.html
        ErrorDocument 404 /icingaweb2/error_norewrite.html
    

# Remove comments if you want to use PHP FPM and your Apache version
# is greater than or equal to 2.4
#    = 2.4>
#        # Forward PHP requests to FPM
#        SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
#        
#            SetHandler "proxy:fcgi://127.0.0.1:9000"
#            ErrorDocument 503 {urlPath}/error_unavailable.html
#        
#    
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/544457

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档