Installing the Web frontend
We have Zabbix Server and Agent installed and running on our server, we can control the them with services and they startup each time the machine boots into runlevel 3 or 5 but we still don’t have our Web frontend.
This is where Apache and PHP come into play. We will need to install some extra php packages for full functionality
[root@server]# yum install php-mysql php-gd php-bcmath php-mbstring php-xml
Once installed its time to copy the web files to the correct folder, with CentOS and Apache this would be /var/www/html/.
[root@server]# cp -r frontends/php/ /var/www/html/
To make the page accessable through http://localhost/zabbix we will have to to rename the folder to zabbix.
[root@server]# mv /var/www/html/php/ /var/www/html/zabbix
Now you should now be able to access the Web frontend trough http://localhost/zabbix
If you encounter problems try checking if the
httpd service is running. If it worked you should see the Welcome screen from Zabbix
Don’t worry if you get a timezone warning in the upper lines . Read the Text and continue with the
Next » button.
Agree to the GNU v2 Licence and carry on.
Most Likely Zabbix won’t agree with all of your settings and will tell you to change them to the requiered settings. In my case these are all php related problems. Open
php.ini with your favourite editor
[root@server~]# vim /etc/php.ini
and change following:
max_execution_time = 600
memory_limit = 256M
post_max_size = 32M
date.timezone = Europe/Zurich
mbstring.func_overload = 2
If you hover with your mouse over the FAIL sign it should describe the problem. If you encounter any extra problems you should be able to find thse problems out with the web. Than after a restart of httpd it should all be OK
[root@server~]# service httpd restart
Fill in the Information as above and use the password you gave zabbix when you configured your DB. You can test the connection with the button
Leave the Information as it is and continue the Setup
It will summarize your Installation, continue the setup.
Most likely saving your config file won’t work, instead of changing the permissions we will download the file locally to the specified path. If your not on the server you can either copy the file through ssh if your using Linux or through winscp if your using Windows.