Icinga / icinga-doc

Icinga 1.x documentation in Docbook (EOL)
https://www.icinga.org/download/
4 stars 9 forks source link

[dev.icinga.com #149] icinga-web head "skin" #15

Closed icinga-migration closed 14 years ago

icinga-migration commented 14 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/149

Created by Assaf on 2009-10-15 08:36:26 +00:00

Assignee: croft Status: Resolved (closed on 2009-10-24 21:22:50 +00:00) Target Version: 1.0 RC1 Last Update: 2009-10-24 21:22:50 +00:00 (in Redmine)


After trying to follow the instructions for installing the icinga-web HEAD skin , i was unable to get the "skin" to work as desired.

The installations instructions should be more detailed and probably not relaying on "git" for obtaining the software .

Also hopefully included in the Main Icinga documentation.

Assaf

  1. move git clone to /var/www/icinga-web (in this example): mv icinga-web /var/www

  2. check out icinga api and move it to /var/www/lib/icinga-api: git clone git://git.icinga.org/icinga-api.git mv icinga-api /var/www/icinga-web/lib/

  3. change owner of web directory to http user: chown -R 33:33 /var/www/icinga-web

  4. create database and set grants: create database icinga_web; grant all on icinga_web.* to icinga_web@localhost identified by 'icinga_web';

  5. import database from the following files: /var/www/icinga-web/etc/database/rescue_schema.sql /var/www/icinga-web/etc/database/rescue_data.sql

  6. edit /var/www/icinga-web/app/config/databases.xml and set database credentials (block should begin at line 7): --- SNIP ---

    mysql://icinga\_web:icinga\_web@127.0.0.1:3306/icinga\_web icinga\_web icinga\_web utf8 CONSERVATIVE de.icinga.appkit.doctrine\_model\_path

    --- SNIP ---

  7. edit /var/www/icinga-web/app/config/icinga.xml and set database credentials to give access to ido-db (block should begin at line 163): --- SNIP ---

    IcingaData %core.root\_dir%/lib/icinga-api/IcingaApi.php IcingaApi::CONNECTION\_IDO mysql 127.0.0.1
3306 icinga icinga icinga icinga\_

--- SNIP ---

  1. set up a virtual host: --- SNIP --- <VirtualHost *:80>

ServerName icinga-web

DocumentRoot /var/www/icinga-web/pub/

DirectoryIndex index.php

<Directory /var/www/icinga-web/pub/> Options -MultiViews -Indexes +FollowSymLinks AllowOverride none Order allow,deny Allow from all

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\]

# deny something!

Options -MultiViews -Indexes +FollowSymLinks Order allow,deny Allow from all

# JS frameworks Alias /js/yui /var/www/icinga-web/lib/yui Alias /js/swfobject /var/www/icinga-web/lib/swfobject Alias /js/mootools /var/www/icinga-web/lib/mootools Alias /js/jquery /var/www/icinga-web/lib/jquery Alias /js/appkit /var/www/icinga-web/lib/appkit/js Alias /js/gc-prettify /var/www/icinga-web/lib/gc-prettify Alias /js/firebug /var/www/icinga-web/lib/firebug Alias /js/ext3 /var/www/icinga-web/lib/ext3

# Flash frameworks Alias /flash/flexchart /var/www/icinga-web/lib/flexchart

AcceptPathInfo On

--- SNIP ---

  1. clear cache rm /var/www/icinga-web/app/cache/config/*.php

  2. reload your web server config

icinga-migration commented 14 years ago

Updated by croft on 2009-10-15 09:51:52 +00:00

Assaf wrote:

After trying to follow the instructions for installing the icinga-web HEAD skin , i was unable to get the "skin" to work as desired.

The installations instructions should be more detailed and probably not relaying on "git" for obtaining the software .

Also hopefully included in the Main Icinga documentation.

Assaf

> 1. move git clone to /var/www/icinga-web (in this example): > mv icinga-web /var/www > > 2. check out icinga api and move it to /var/www/lib/icinga-api: > git clone git://git.icinga.org/icinga-api.git > mv icinga-api /var/www/icinga-web/lib/ > > 3. change owner of web directory to http user: > chown -R 33:33 /var/www/icinga-web > > 4. create database and set grants: > create database icinga_web; > grant all on icinga_web.* to icinga_web@localhost identified by 'icinga_web'; > > 5. import database from the following files: > /var/www/icinga-web/etc/database/rescue_schema.sql > /var/www/icinga-web/etc/database/rescue_data.sql > > 6. edit /var/www/icinga-web/app/config/databases.xml and set database credentials (block should begin at line 7): > --- SNIP --- > > mysql://icinga_web:icinga_web@127.0.0.1:3306/icinga_web</ae:parameter> > icinga_web</ae:parameter> > icinga_web</ae:parameter> > utf8</ae:parameter> > > > CONSERVATIVE</ae:parameter> > </ae:parameter> > de.icinga.appkit.doctrine_model_path</ae:parameter> > > --- SNIP --- > > 7. edit /var/www/icinga-web/app/config/icinga.xml and set database credentials to give access to ido-db (block should > begin at line 163): > --- SNIP --- > > IcingaData > %core.root_dir%/lib/icinga-api/IcingaApi.php > IcingaApi::CONNECTION_IDO > mysql > 127.0.0.1 > > 3306 > icinga > > icinga > icinga > > icinga_ > > --- SNIP --- > > 8. set up a virtual host: > --- SNIP --- > <VirtualHost :80> > > ServerName icinga-web > > DocumentRoot /var/www/icinga-web/pub/ > > DirectoryIndex index.php > > <Directory /var/www/icinga-web/pub/> > Options -MultiViews -Indexes +FollowSymLinks > AllowOverride none > Order allow,deny > Allow from all > > > 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] > > > > > # deny something! > > Options -MultiViews -Indexes +FollowSymLinks > Order allow,deny > Allow from all > > > # JS frameworks > Alias /js/yui /var/www/icinga-web/lib/yui > Alias /js/swfobject /var/www/icinga-web/lib/swfobject > Alias /js/mootools /var/www/icinga-web/lib/mootools > Alias /js/jquery /var/www/icinga-web/lib/jquery > Alias /js/appkit /var/www/icinga-web/lib/appkit/js > Alias /js/gc-prettify /var/www/icinga-web/lib/gc-prettify > Alias /js/firebug /var/www/icinga-web/lib/firebug > Alias /js/ext3 /var/www/icinga-web/lib/ext3 > > # Flash frameworks > Alias /flash/flexchart /var/www/icinga-web/lib/flexchart > > > AcceptPathInfo On > > > > --- SNIP --- > > 9. clear cache > rm /var/www/icinga-web/app/cache/config/\.php > > 10. reload your web server config

Thanks Assaf, I will include it.

icinga-migration commented 14 years ago

Updated by croft on 2009-10-24 21:22:50 +00:00

Docu updated, but we keep in mind to make it more detailed, before icinga-web goes stable.