On 10.03.2011 20:05, Michael DiMartino wrote:
Forgive me for my question, but what do you mean cloned directly from git.
What s git?

git is a scm like svn or cvs, and used for icinga development.

https://git.icinga.org for gitweb e.g.


2011/3/10 David Thorne <dtho...@contemporaryfusion.co.uk <mailto:dtho...@contemporaryfusion.co.uk>>

    Hi guys,

    Please forgive me if this has been asked multiple times – I tried
    to search the web archives but found nothing.

    I have a working icinga-web interface (cloned directly from git)
    but I’d like to get it to work from a web root (for example
    icinga-web.internal.lan/ and not /icinga-web/) I tried recompiling
    using the following

    ./configure --prefix=/usr/local/icinga-web --with-web-user=apache
    --with-web-group=apache --with-web-path=/
    --with-web-apache-path=/etc/httpd/conf.d --with-db-type=mysql
    --with-db-host=localhost --with-db-port=3306
    --with-db-name=icinga_web --with-db-user=icinga_web
    --with-db-pass=HighlySecurePassPhraseThis && make cacheclean &&
    make install && make db-drop

    make db-initialize

    mv /etc/httpd/conf.d/icinga-web* ~

    I have also added the following into my vhosts file

    <VirtualHost *:80>

            ServerName icinga-web.internal.lan

            DocumentRoot /usr/local/icinga-web/pub

            DirectoryIndex index.php

            RewriteEngine on

    <Directory /usr/local/icinga-web/lib/ext3>

                    Order allow,deny

                    Allow from all

    </Directory>

    <Directory /usr/local/icinga-web/pub/>

                    Options -MultiViews -Indexes +FollowSymLinks

                    AllowOverride none

                    Order allow,deny

                    Allow from all

    <IfModule mod_rewrite.c>

                            RewriteEngine On

                            RewriteBase /

                            #If the requested URL does not exist (it's
    likely an agavi route),

                            #pass it as path info to index.php, the
    Agavi dispatch script.

                            RewriteRule ^$ index.php?/ [QSA,L]

                            RewriteCond %{REQUEST_FILENAME} !-f

                            RewriteCond %{REQUEST_FILENAME} !-d

                            RewriteRule (.*) index.php?/$1 [QSA,L]

    </IfModule>

    </Directory>

            #deny something!

    <Location />

                    Options -MultiViews -Indexes +FollowSymLinks

                    Order allow,deny

                    Allow from all

    </Location>

            #JS frameworks

    Alias /js/yui /usr/local/icinga-web/lib/yui

    Alias /js/swfobject /usr/local/icinga-web/lib/swfobject

            Alias /js/mootools /usr/local/icinga-web/lib/mootools

            Alias /js/jquery /usr/local/icinga-web/lib/jquery

            Alias /js/appkit /usr/local/icinga-web/lib/appkit/js

            Alias /js/gc-prettify /usr/local/icinga-web/lib/gc-prettify

            Alias /js/firebug /usr/local/icinga-web/lib/firebug

            Alias /js/ext3 /usr/local/icinga-web/lib/ext3

            #Flash frameworks

            Alias /flash/flexchart /usr/local/icinga-web/lib/flexchart

    <IfDefine APACHE2>

                    AcceptPathInfo On

    </IfDefine>

            LogLevel Debug

            CustomLog /var/www/vhosts/icinga-web/logs/common_log common

            ErrorLog /var/www/vhosts/icinga-web/logs/error_log

    </VirtualHost>

    I also renamed the .htaccess to ht.old so I don’t think that it’s
    that getting in the way.


    When I do an Apache restart and load icinga I get

    Request failed

    Ressource /icinga-web/appkit/ext/applicationState could not be
    loaded - is the url correct?

    I’ve tried adjusting the icinga config file so the webroot is set
    to / not icinga-web and made sure cache is clear but can’t think
    of anywhere else.  Is it currently possible to make icinga work
    from web root?  I feel I am missing something obvious but for the
    life of me can’t see what. The modrewrite stuff is definitely
    working (I changed index.php to index2.php to generate a 404
    successfully).  Thanks in advance for any help.

    Kind regards

    Dave

    David Thorne
    Managing Director
    Mobile: +44 (0) 7596 073409



    ------------------------------------------------------------------------
    Contemporary Fusion.
    Contemporary Fusion is a trading style of Contemporary Fusion Computer

    Services Ltd.
    Registered in England and Wales - company number: 6844439.
    VAT number: GB 947 6274 82
    Registered office: 10 Meadow Lane, Newmarket, Suffolk, CB8 8FZ

    Every effort is made to ensure this email is virus free, although this can

    not be guaranteed.
    Please consider the environment before printing this email.

    IMPORTANT NOTICE. Copyright Contemporary Fusion (2010).
    The contents (including attachments) of this communication are for the

    intended recipient(s) only. If you are not the intended recipient(s) please

    note that any form of distribution, copying or use of this communication or

    the information in it is strictly prohibited and may be unlawful. If you

    have received this communication in error please return it to the sender. We

    would be grateful if you would also copy the communication to
    secur...@contemporaryfusion.co.uk
    <mailto:secur...@contemporaryfusion.co.uk> and then delete the email and 
destroy any

    copies of it.

    
------------------------------------------------------------------------------
    Colocation vs. Managed Hosting
    A question and answer guide to determining the best fit
    for your organization - today and in the future.
    http://p.sf.net/sfu/internap-sfd2d
    _______________________________________________
    icinga-users mailing list
    icinga-users@lists.sourceforge.net
    <mailto:icinga-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/icinga-users




--
--
Regards,
Michael Di Martino
Hudson Street Technology Group

m: +1631.988.6060
mich...@hudsonstreet.us <mailto:mich...@hudsonstreet.us>
http://hudsonstreet.us



------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d


_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to