Hi all,

Is it possible to have a different configuration for PHP when it is invoked
from the command line instead of via the web server (apache)?

Specifically, I am trying to get Midgard 1.6.1 working and it seems that the
midgard PHP extension, midgard.so will cause errors when PHP is run from the
command line (/usr/bin/php: relocation error:
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/midgard.so:
undefined symbol: ap_find_linked_module).

I don't want to have to change all the scripts to invoke PHP with a seperate
PHP ini file unless this is the only option.

Ideally there would be a way in php.ini to say - load this extension if NOT
called from the command line.

Is this possible?

If not, does anyone know a better solution?

PHP is compiled as an apache module:

Apache/1.3.33 (Unix) Midgard/1.6.1/Repository/MultiLang
mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.9
FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a.

I would really appreciate some help.

cheers

Richard

Reply via email to