Hi, 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:
name=ICINGA (stable release for epel) baseurl=http://packages.icinga.org/epel/$releasever/release/ enabled=1 gpgcheck=1 gpgkey=http://packages.icinga.org/icinga.key I installed the most recent icinga2 packages version 2.0.2: Aug 19 17:49:35 Installed: icinga2-2.0.2-1.el7.centos.x86_64 Aug 19 17:49:35 Installed: icinga2-ido-pgsql-2.0.2-1.el7.centos.x86_64 Aug 19 17:49:35 Installed: icinga2-doc-2.0.2-1.el7.centos.x86_64 Aug 19 17:49:43 Installed: icinga-web-1.11.2-1.el7.centos.noarch Aug 19 17:49:51 Installed: icinga2-debuginfo-2.0.2-1.el7.centos.x86_64 Aug 19 17:53:45 Erased: icinga2-ido-pgsql-2.0.2-1.el7.centos.x86_64 Aug 19 17:54:36 Installed: icinga2-ido-mysql-2.0.2-1.el7.centos.x86_64 Aug 19 18:16:22 Installed: icinga-web-mysql-1.11.2-1.el7.centos.noarch Aug 19 18:17:22 Installed: 1:mariadb-5.5.37-1.el7_0.x86_64 Aug 19 18:17:26 Installed: 1:mariadb-server-5.5.37-1.el7_0.x86_64 Aug 19 18:18:53 Installed: icinga-web-mysql-1.11.2-1.el7.centos.noarch Aug 19 18:29:07 Installed: icinga2-ido-mysql-2.0.2-1.el7.centos.x86_64 Aug 19 16:48:46 Installed: php-mysql-5.4.16-23.el7_0.x86_64 Unfortunately when trying to access the page: http://ip/icinga-web, I encounter an error about Uncaught Doctrine_Connection_Exception thrown: Couldn't locate driver named mysql the detailed traceback is: Stacktrace: #0 /usr/share/icinga-web/lib/doctrine/lib/Doctrine/Connection/Mysql.php(101): Doctrine_Connection->connect() #1 /usr/share/icinga-web/lib/doctrine/lib/Doctrine/Connection.php(1009): Doctrine_Connection_Mysql->connect() #2 /usr/share/icinga-web/lib/doctrine/lib/Doctrine/Query/Abstract.php(976): Doctrine_Connection->execute('SELECT n.sessio...', Array) #3 /usr/share/icinga-web/lib/doctrine/lib/Doctrine/Query/Abstract.php(1026): Doctrine_Query_Abstract->_execute(Array) #4 /usr/share/icinga-web/app/modules/AppKit/lib/storage/AppKitDoctrineSessionStorage.class.php(133): Doctrine_Query_Abstract->execute() #5 [internal function]: AppKitDoctrineSessionStorage->sessionRead('7pd2sm5jobg2m6c...') #6 /usr/share/icinga-web/lib/agavi/src/storage/AgaviSessionStorage.class.php(132): session_start() #7 /var/cache/icinga-web/config/factories.xml_production_web_3b046d81eca933d9f16b3365d9ddd13114979325.php(76): AgaviSessionStorage->startup() #8 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(384): include('/var/cache/icin...') #9 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(3549): AgaviContext->initialize() #10 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(370): AppKitAgaviContext->initialize() #11 /usr/share/icinga-web/pub/index.php(49): AgaviContext::getInstance('web') #12 {main} I also installed for the sake of it the Zend-Adapter, since that popped up on my search for Mysql and Php: ZendFramework-Db-Adapter-Pdo-Mysql php-ZendFramework-Db-Adapter-Mysqli ### MySQL # mysql -u root -p CREATE USER `icinga_webweb`@`localhost` IDENTIFIED BY 'icinga_webweb'; CREATE DATABASE `icinga_web`; GRANT ALL PRIVILEGES ON `icinga_web`.* TO `icinga_web`@`localhost`; FLUSH PRIVILEGES; quit # mysql -u root -p icinga_web < etc/schema/mysql.sql My apache log shows the following error: [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 [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 But the error in the php doesn't tell me much. Does anyone know what's going on? Regards, Sven -- Sven Duscha, M.Sc. Systemadministrator Institute of Bioinformatics and System Biology Phone: +49-89-3187-1157 Fax: +49-89-3187-3585 mailto:[email protected] ________________________________ Helmholtz Zentrum München Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH) Ingolstädter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe Geschäftsführer: Prof. Dr. Günther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen Registergericht: Amtsgericht München HRB 6466 USt-IdNr: DE 129521671
_______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
