1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
Using the frontend with Apache
------------------------------
Apache2 may need package "libapache2-mod-php" PHP support:
sudo apt-get install libapache2-mod-php
A URL alias that makes Zabbix frontend available from
http://yourserver/zabbix
can be configured using the following commands:
a2enconf zabbix-frontend-php
or with
ln -s /usr/share/doc/zabbix-frontend-php/examples/apache.conf /etc/apache2/conf-available/zabbix.conf
a2enconf zabbix
Following by reloading Apache configuration:
sudo service apache2 reload
or restarting Apache:
sudo apache2ctl restart
Then follow the section "Configuring the Zabbix frontend" below.
Using the frontend with nginx
-----------------------------
Nginx needs "php-fpm" package to support PHP:
sudo apt-get install php-fpm
To enable a URL alias that makes Zabbix frontend available from
http://yourserver/zabbix
the following line is to be added to "server" section of a web site
configuration:
include /usr/share/doc/zabbix-frontend-php/examples/nginx.conf;
For "default" web site it would be sufficient to include the above
statement to the file
/etc/nginx/sites-enabled/default
Configuring the Zabbix frontend
-------------------------------
Please point your Browser to http://yourserver/zabbix/ in order to configure
your zabbix-frontend. The default username is "Admin" with password
"zabbix". To prevent other users from viewing your data, change this
password immediately after logging in.
If you are using PostgreSQL as a database backend please make sure that
the 'php-pgsql' package is installed. Similarly 'php-mysql' is needed if
you are using MySQL database backend.
PHP configuration
-----------------
Zabbix also requires minimum resource settings for PHP to work properly.
During the first-time setup it will complain if these are not set.
Set these parameters in your "/etc/php/7.0/apache2/php.ini" file for Apache2
or in "/etc/php/7.0/fpm/php.ini" for nginx/php-fpm:
post_max_size = 16M
max_execution_time = 300
max_input_time = 300
always_populate_raw_post_data = -1
date.timezone = ...
# (see http://www.php.net/manual/en/timezones.php)
|