Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Different PHP config when PHP run from command line
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

Report this thread to moderator Post Follow-up to this message
Old Post
Rich
11-18-04 08:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Installation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:13 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.