View previous topic :: View next topic |
Author |
Message |
jjkrol n00b
Joined: 10 May 2010 Posts: 3
|
Posted: Mon May 10, 2010 7:49 am Post subject: Different restults in cli and apache, same php.ini |
|
|
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 |
|
|
Malvineous Apprentice
Joined: 20 Oct 2006 Posts: 281 Location: Brisbane, Australia
|
Posted: Mon May 10, 2010 12:23 pm Post subject: |
|
|
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 |
|
|
jjkrol n00b
Joined: 10 May 2010 Posts: 3
|
Posted: Mon May 10, 2010 3:54 pm Post subject: |
|
|
Yes, both apache and cli say:
Code: | Loaded Configuration File /etc/php/apache2-php5/php.ini |
|
|
Back to top |
|
|
jjkrol n00b
Joined: 10 May 2010 Posts: 3
|
Posted: Wed May 12, 2010 8:07 am Post subject: |
|
|
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 |
|
|
|