The Apache module PHP version might for some odd reason not be picking up the php.ini file as the CLI version I'd suggest having a good look at:
- Any differences in the
.ini files that differ between php -i and phpinfo() via a web page*
- If there are no differences then to look at the permissions of
mysql.so and the .ini files but I think that Apache parses these as the root user
To be really clear here, don't go searching for php.ini files on the file system, have a look at what PHP says that it's looking at