Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

midgard.configuration_file ignored in cgi #49

Open
piotras opened this issue Jun 10, 2011 · 1 comment
Open

midgard.configuration_file ignored in cgi #49

piotras opened this issue Jun 10, 2011 · 1 comment

Comments

@piotras
Copy link
Member

piotras commented Jun 10, 2011

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
Copy link
Member

flack commented Jun 10, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants