midgardproject / midgard-php5

PHP5 API for Midgard persistent storage framework
http://www.midgard-project.org/api-docs/midgard/php/ratatoskr/
GNU Lesser General Public License v2.1
9 stars 2 forks source link

midgard.configuration_file ignored in cgi #49

Open piotras opened 13 years ago

piotras commented 13 years ago

Lighttpd and cgi.

midgard2.ini :

midgard.http is Off midgard.engine is On midgard.configuration_file is /tmp/midgard2

midgard_connection::get_instance()->is_connected() returns false after starting lighttpd.

Workaround:

if (!midgard_connection::get_instance()->is_opened()) { $config = new midgard_config(); $config->read_file_at_path(ini_get('midgard.configuration_file')); midgard_connection::get_instance()->open_config($config); }

If midgard.http should be On, it should be documented in INSTALL file with lighttpd case.

flack commented 13 years ago

Just for the record, when I set midgard.http to On, lighttpd refuxes to start. So it won't be possible to use this workaround right now