Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Different restults in cli and apache, same php.ini
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jjkrol
n00b
n00b


Joined: 10 May 2010
Posts: 3

PostPosted: Mon May 10, 2010 7:49 am    Post subject: Different restults in cli and apache, same php.ini Reply with quote

I'm openning the same file in the php command line and through the browser, but the result of phpinfo is different:
in cli it contains:
Code:
PDO drivers => sqlite2, sqlite

and using apache:
Code:
PDO drivers     sqlite2, sqlite, pgsql, mysql, dblib


Both claim to be version 5.2.9

my USE flags:
Code:
"apache2 berkdb bzip2 cli crypt gdbm iconv ipv6 ncurses nls pcre readline reflection session spl ssl unicode zlib ctype curl curlwrappers ftp json ldap mssql mysql mysqli pdo pdo_mysql posix postgres simplexml soap sockets sqlite xml xmlreader xmlrpc xmlwriter"

Last time I emerged php yesterday.
php.ini for cli and apache are the same, in fact the one for cli is a symlink of the other one.

It would be great if someone gave me at least a hint, as I'm stuck and I have no idea what to do next.
Back to top
View user's profile Send private message
Malvineous
Apprentice
Apprentice


Joined: 20 Oct 2006
Posts: 281
Location: Brisbane, Australia

PostPosted: Mon May 10, 2010 12:23 pm    Post subject: Reply with quote

Are you 100% sure they are the php.ini files being used? If you insert an error in them do you get an error printed when you run each version of PHP?
Back to top
View user's profile Send private message
jjkrol
n00b
n00b


Joined: 10 May 2010
Posts: 3

PostPosted: Mon May 10, 2010 3:54 pm    Post subject: Reply with quote

Yes, both apache and cli say:
Code:
Loaded Configuration File /etc/php/apache2-php5/php.ini
Back to top
View user's profile Send private message
jjkrol
n00b
n00b


Joined: 10 May 2010
Posts: 3

PostPosted: Wed May 12, 2010 8:07 am    Post subject: Reply with quote

I've figured out, what is the problem:
php command line is configured only with apxs2, and with nothing else (at least phpinfo says so).
How can I specify configure arguments for CLI while emerging php?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum