<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I am trying to install Icinga2 with icinga-web on an otherwise fresh CentOS 7 installation. I am using the repository published on the icinga homepage:<br>
<br>
name=ICINGA (stable release for epel)<br>
baseurl=<a class="moz-txt-link-freetext" href="http://packages.icinga.org/epel/$releasever/release/">http://packages.icinga.org/epel/$releasever/release/</a><br>
enabled=1<br>
gpgcheck=1<br>
gpgkey=<a class="moz-txt-link-freetext" href="http://packages.icinga.org/icinga.key">http://packages.icinga.org/icinga.key</a><br>
<br>
I installed the most recent icinga2 packages version 2.0.2:<br>
<br>
Aug 19 17:49:35 Installed: icinga2-2.0.2-1.el7.centos.x86_64<br>
Aug 19 17:49:35 Installed: icinga2-ido-pgsql-2.0.2-1.el7.centos.x86_64<br>
Aug 19 17:49:35 Installed: icinga2-doc-2.0.2-1.el7.centos.x86_64<br>
Aug 19 17:49:43 Installed: icinga-web-1.11.2-1.el7.centos.noarch<br>
Aug 19 17:49:51 Installed: icinga2-debuginfo-2.0.2-1.el7.centos.x86_64<br>
Aug 19 17:53:45 Erased: icinga2-ido-pgsql-2.0.2-1.el7.centos.x86_64<br>
Aug 19 17:54:36 Installed: icinga2-ido-mysql-2.0.2-1.el7.centos.x86_64<br>
Aug 19 18:16:22 Installed: icinga-web-mysql-1.11.2-1.el7.centos.noarch<br>
Aug 19 18:17:22 Installed: 1:mariadb-5.5.37-1.el7_0.x86_64<br>
Aug 19 18:17:26 Installed: 1:mariadb-server-5.5.37-1.el7_0.x86_64<br>
Aug 19 18:18:53 Installed: icinga-web-mysql-1.11.2-1.el7.centos.noarch<br>
Aug 19 18:29:07 Installed: icinga2-ido-mysql-2.0.2-1.el7.centos.x86_64<br>
Aug 19 16:48:46 Installed: php-mysql-5.4.16-23.el7_0.x86_64<br>
<br>
Unfortunately when trying to access the page: <a class="moz-txt-link-freetext" href="http://ip/icinga-web">
http://ip/icinga-web</a>, I encounter an error about<br>
<br>
<div class="exception_title">Uncaught Doctrine_Connection_Exception thrown:</div>
<div class="exception_text">Couldn't locate driver named mysql </div>
<br>
the detailed traceback is:<br>
<br>
<b>Stacktrace:</b><br>
#0 /usr/share/icinga-web/lib/doctrine/lib/Doctrine/Connection/Mysql.php(101): Doctrine_Connection->connect()<br>
#1 /usr/share/icinga-web/lib/doctrine/lib/Doctrine/Connection.php(1009): Doctrine_Connection_Mysql->connect()<br>
#2 /usr/share/icinga-web/lib/doctrine/lib/Doctrine/Query/Abstract.php(976): Doctrine_Connection->execute('SELECT n.sessio...', Array)<br>
#3 /usr/share/icinga-web/lib/doctrine/lib/Doctrine/Query/Abstract.php(1026): Doctrine_Query_Abstract->_execute(Array)<br>
#4 /usr/share/icinga-web/app/modules/AppKit/lib/storage/AppKitDoctrineSessionStorage.class.php(133): Doctrine_Query_Abstract->execute()<br>
#5 [internal function]: AppKitDoctrineSessionStorage->sessionRead('7pd2sm5jobg2m6c...')<br>
#6 /usr/share/icinga-web/lib/agavi/src/storage/AgaviSessionStorage.class.php(132): session_start()<br>
#7 /var/cache/icinga-web/config/factories.xml_production_web_3b046d81eca933d9f16b3365d9ddd13114979325.php(76): AgaviSessionStorage->startup()<br>
#8 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(384): include('/var/cache/icin...')<br>
#9 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(3549): AgaviContext->initialize()<br>
#10 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(370): AppKitAgaviContext->initialize()<br>
#11 /usr/share/icinga-web/pub/index.php(49): AgaviContext::getInstance('web')<br>
#12 {main}<br>
<br>
I also installed for the sake of it the Zend-Adapter, since that popped up on my search for Mysql and Php:<br>
ZendFramework-Db-Adapter-Pdo-Mysql php-ZendFramework-Db-Adapter-Mysqli<br>
<br>
### MySQL<br>
       # mysql -u root -p<br>
<br>
              CREATE USER `icinga_webweb`@`localhost` IDENTIFIED BY 'icinga_webweb';<br>
              CREATE DATABASE `icinga_web`;<br>
              GRANT ALL PRIVILEGES ON `icinga_web`.* TO `icinga_web`@`localhost`;<br>
              FLUSH PRIVILEGES;<br>
              quit<br>
<br>
       # mysql -u root -p icinga_web < etc/schema/mysql.sql<br>
<br>
<br>
My apache log shows the following error:<br>
<br>
[Tue Aug 19 22:52:11.279566 2014] [:error] [pid 11245] [client 146.107.3.4:28812] PHP Warning:  Creating default object from empty value in /usr/share/icinga-web/app/modules/AppKit/lib/storage/AppKitDoctrineSessionStorage.class.php on line 174<br>
[Tue Aug 19 22:52:11.279627 2014] [:error] [pid 11245] [client 146.107.3.4:28812] PHP Fatal error:  Call to undefined method stdClass::save() in /usr/share/icinga-web/app/modules/AppKit/lib/storage/AppKitDoctrineSessionStorage.class.php on line 177<br>
<br>
<br>
But the error in the php doesn't tell me much.<br>
<br>
Does anyone know what's going on?<br>
<br>
Regards,<br>
<br>
Sven<br>
<br>
<pre class="moz-signature" cols="72">-- 
Sven Duscha, M.Sc.
Systemadministrator
Institute of Bioinformatics and System Biology
Phone: +49-89-3187-1157
Fax: +49-89-3187-3585
<a class="moz-txt-link-freetext" href="mailto:sven.duscha@helmholtz-muenchen.de">mailto:sven.duscha@helmholtz-muenchen.de</a></pre>
<br>
<hr>
<font face="Arial" color="Black" size="1">Helmholtz Zentrum München<br>
Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)<br>
Ingolstädter Landstr. 1<br>
85764 Neuherberg<br>
www.helmholtz-muenchen.de<br>
Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe<br>
Geschäftsführer: Prof. Dr. Günther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen<br>
Registergericht: Amtsgericht München HRB 6466<br>
USt-IdNr: DE 129521671<br>
</font>
</body>
</html>