Current time: 11-25-2024, 08:09 AM Hello There, Guest! (LoginRegister)


Post Reply 
PHP Warning: Module 'json' already loaded in Unknown on line 0
Author Message
zeyland Offline


Posts: 2
Joined: Aug 2008
Reputation: 0
Post: #1
PHP Warning: Module 'json' already loaded in Unknown on line 0
I´m testing ispcp with eaccelerator and get with php -v:

"PHP Warning: Module 'json' already loaded in Unknown on line 0"

It seems that module is loaded twice, also i´m looking for php.ini
and found only:

nano /etc/ispcp/fcgi/parts/php5/php.ini
and checked for extension=json.so but not exist here (?)

but
found this here

nano /etc/php5/cli/php.ini
and commended out
;extension=json.so


Now, command php -v (or php-cgi -v) show me no errors:

#PHP 5.2.0-8+etch11 (cli) (built: May 10 2008 10:46:24)
#Copyright © 1997-2006 The PHP Group
#Zend Engine v2.2.0, Copyright © 1998-2006 Zend Technologies


Im not sure:
1. I was right with editing /cli/php.ini or not? json.so will working or not?
2. How can i check this (that module is right loaded)?
3. Where I can find global php.ini file(s) under ispcp

Can anybody help me and answer my questions?
I´m greenhorn here :-) ISPCP and PHP is new adventure for me :-)

Debian Etch 4.0
PHP 5.2.0
ISPCP Omega 1.0.0 RC6

Regards
zeyland
09-02-2008 01:22 AM
Find all posts by this user Quote this message in a reply
zeyland Offline


Posts: 2
Joined: Aug 2008
Reputation: 0
Post: #2
RE: PHP Warning: Module 'json' already loaded in Unknown on line 0
PS

I heard that JSON may be compiled into PHP, so loading it as an extension means it's loaded twice, so comment out in /etc/php5/cli/php.ini have sense BUT Im still not sure...
09-02-2008 01:34 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)