Ubuntu16.04, PHP5.6、Zabbix3.01の組み合わせ
Ubuntu16.04にZabbix3.01をインストールしようとしていますが、
zabbix-server-mysqlとzabbix-frontend-phpをインストールしようとしたところ、
エラーメッセージが出て引っかかってしまいます。
この後、Linuxはそれほど詳しくないのですが、
どうすれば問題を解消できるかご教示いただけないでしょうか。
【組み合わせ】
Ubuntu16.04 Server (basicユーティリティーとSSH Serverのみの構成で新規インストール直後)
Apache2
MariaDB
Zabbix 3.0
【インストール手順】
1)Apache2のインストール
sudo apt-get -y install apache2
sudo apt-get install libapache2-mpm-itk
sudo systemctl enable apache2
sudo systemctl start apache2
sudo systemctl status apache2
Apacheの動作確認成功。ブラウザでもテストページを表示できた。
2)PHP5.6のインストール
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get -y install php5.6-mysql php5.6-curl php5.6-json php5.6-cgi php5.6 libapache2-mod-php5.6
3)MariaDBのインストール
sudo apt-get -y install mariadb-server
sudo mysql -u root
MariaDB [(none)]> use mysql;
MariaDB [mysql]> update user set plugin='' where User='root';
MariaDB [mysql]> flush privileges;
MariaDB [mysql]> \q
$ mysql_secure_installation
root password以外はデフォルト(Enter)
sudo service mysql status
MariaDBが正常に起動していることを確認
sudo vi /var/www/html/testphp.php
<?php
phpinfo();
?>
sudo systemctl restart apache2
http://192.168.88.128/testphp.php
PHPのテストページがブラウザで表示されることを確認。
4)Zabbix3.01のインストール
wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabb...
sudo dpkg -i zabbix-release_3.0-1+trusty_all.deb
sudo apt-get update
以下で引っかかります。
tom@rps:~$ sudo apt-get install zabbix-server-mysql zabbix-frontend-php
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
zabbix-frontend-php : Depends: php5 but it is not installable
Depends: php5-mysql but it is not installable or
php5-pgsql but it is not installable
Depends: php5-gd but it is not installable
Depends: php5-ldap but it is not installable
zabbix-server-mysql : Depends: libmysqlclient18 (>= 5.5.24+dfsg-1) but it is not installable
Recommends: mysql-server (>= 5.0)
Recommends: snmpd but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
tom@rps:~$
TNK - 投稿数: 4768
Ubuntu 16.04対応のパッケージはまだリリースされていません。
14.04(Trusty)のパッケージそのままでは利用できないので、ソース
からコンパイルして利用するか、正式にパッケージがリリースされ
るまでお待ちください。
Tomohide - 投稿数: 3
ご返信ありがとうございました!
UbuntuとZabbixのバージョンを落として使うことにします。
TNK - 投稿数: 4768
14.04(Trusty)ならZabbix 3.0を利用できるはずです。
つまり、Ubuntuのバージョンを下げれば、先のdebファイルをインストール
することによって、Zabbix 3.0系の最新のパッケージをインストールできます。
ご確認ください。
ご参考:
http://qiita.com/atanaka7/items/9c4c8a5099c24f8f8be8
Tomohide - 投稿数: 3
会社ではUbuntuではなくCentOSを使っていたので、
CentOS7.2とZabbix3.0の組み合わせで試したところ、うまくいきました。
Ubuntu14.04とZabbixは3.0の組み合わせは動きそうですが、試せておりません・・。
ご丁寧に教えていただきありがとうございました!