"Fossies" - the Fresh Open Source Software Archive

Member "icinga-web-1.14.1/contrib/nginx/README.nginx" (19 Dec 2017, 2338 Bytes) of package /linux/misc/old/icinga-web-1.14.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Nginx configuration source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 REQUIREMENTS:
    2 =============
    3 
    4 PHP 5.3
    5 PHP-FPM 5.3 (PHP-APC Optional)
    6 FASTCGI WRAPPER
    7 NGINX 1.2 or newer
    8 
    9 INSTALLATION
   10 ============
   11 - Install all the required packages from your distro repository.
   12 - Copy all the files to the configuration folder of nginx.
   13 - Include the icinga-web.vhost as a nginx virtual host.
   14 - Restart nginx.
   15 
   16 
   17 DEBIAN EXAMPLE
   18 ==============
   19 Enable the dotdeb repository to get the latest version of PHP and Nginx (http://www.dotdeb.org)
   20 # cat > /etc/apt/sources.list.d/dotdeb.list << EOF
   21 deb http://packages.dotdeb.org squeeze all
   22 deb-src http://packages.dotdeb.org squeeze all
   23 EOF
   24 
   25 Refresh the package list
   26 # apt-get update
   27 
   28 Upgrade the system
   29 # apt-get upgrade
   30 
   31 Install the required packages
   32 # apt-get install nginx php5-fpm php-apc fcgiwrap
   33 
   34 Configure to your taste the fpm and fcgiwrap config files (default values are almost safe)
   35 # vi /etc/php5/fpm/php-fpm.conf
   36 # vi /etc/php5/fpm/php.ini
   37 # vi /etc/php5/fpm/pool.d/www.conf
   38 
   39 Edit the FASTCGI WRAPPER init script, and change the user/group to your selected user:
   40 # vi /etc/init.d/fcgiwrap
   41 -FCGI_USER="www-data"
   42 -FCGI_GROUP="www-data"
   43 +FCGI_USER="icinga"
   44 +FCGI_GROUP="icinga"
   45 
   46 
   47 For more info check their docs.
   48 
   49 Copy the config file into the sites-available folder for nginx
   50 # cp icinga-web.vhost nginx.icinga-web.conf nginx.nagiosbp.conf nginx.pnp4nagios_icinga-web.conf nginx.security.conf /etc/nginx/sites-available
   51 
   52 Modify the icinga-web.vhost to include the path to the .conf files
   53 # vi /etc/nginx/sites-available/icinga-web.vhost
   54 -    include nginx.security.conf;
   55 +    include /etc/nginx/sites-available/nginx.security.conf;
   56 
   57 -    include nginx.icinga.conf;
   58 +    include /etc/nginx/sites-available/nginx.icinga.conf;
   59 
   60 -    include nginx.pnp4nagios_icinga-web.conf;
   61 +    include /etc/nginx/sites-available/nginx.pnp4nagios_icinga-web.conf;
   62 
   63 -    include nginx.nagiosbp.conf;
   64 +    include /etc/nginx/sites-available/nginx.nagiosbp.conf;
   65 
   66 -    include nginx.icinga-web.conf;
   67 +    include /etc/nginx/sites-available/nginx.icinga-web.conf;
   68 
   69 Enable the virtual host for icinga classic
   70 # ln -s /etc/nginx/sites-available/icinga-web.vhost /etc/nginx/sites-enabled/icinga-web.vhost
   71 
   72 Change the user of nginx if needed
   73 # vi /etc/nginx/nginx.conf
   74 
   75 + user=icinga;
   76 
   77 Restart nginx
   78 # /etc/init.d/nginx restart
   79 
   80 
   81 Author
   82 ======
   83 Francisco Miguel Biete <fmbiete at gmail dot com>