Go to the bottom and adjust the "START" property to read "yes":Īnd start the Zabbix server. sudo cp /usr/share/doc/zabbix-frontend-php/examples/nf /etc/apache2/conf-available/nf Then copy the example apache config to the /etc/apache2/conf-available/ directory to make Zabbix and Apache work together. sudo cp /usr/share/doc/zabbix-frontend-php/examples/ /etc/zabbix/ Next copy the example config to the /etc/zabbix directory. mysql -u zabbix -p zabbix < schema.sqlĮdit a few PHP settings by modifying the php.ini file. Next we'll import the schemas into the newly created database. Grant all privileges on zabbix.* to flush privileges create user identified by 'your_chosen_password_here'
mysql -u root -pĬreate a user for Zabbix (and a database) that matches the information we entered in the "/etc/zabbix/zabbix_nf" file. Unzip the mysql data for importing them into the database you'll create in the next step. DBName=zabbixĪlso memorize the chosen password because you will need it when setting the rights in the MySQL commands. sudo nano /etc/zabbix/zabbix_nfĪdjust the following values and make a note of the password you've chosen. Memorize the root password you have chosen, you'll need it later. Sudo apt-get install zabbix-server-mysql php5-mysql zabbix-frontend-php Update and install Zabbix server and required packages. Update /etc/hosts 127.0.0.1 localhost.localdomain localhost Set the server it's hostname echo "" > /etc/hostname Edit apt source list to add the PPA: sudo nano /etc/apt/sources.listĪdd the following items at the end of the file: # Zabbix Application PPAĪdd the PPA's key so that apt-get trusts the source: sudo apt-key adv -keyserver -recv-keys C407E17D5F76A32B