PHP Module Issue

If I run PHP from the vli, i get:

PHP Warning:  PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0

How do I tell which module it is complaining about?
Who is Participating?
I would install the 'strace' command if its not already present and then do:

strace php -v 2> output.txt

Then go through the mountain of data in output.txt, and you should be able to identify which module it's choking on.
elong0003Author Commented:
I see the same error message when I do the search, but no detail as to which module.
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

It will probably be many (possibly hundreds) of lines prior to the error that you will see it loading the module - you might do a search on each of the module names that are in your system /usr/lib/php/modules and then go downwards from each to see which one leads you to the error.
It mentions it: it's the fileinfo module.

Is this the only error that pops up when you do a "php -v" ?
Isn't php-pecl-Fileinfo-1.0.4-3.el5.centos the package that comes with CentOS 5 / built for PHP 5.1.6? Maybe you need to download a new Fileinfo package for 5.2.10 or install it yourself with pecl (pecl install fileinfo). You could check apache's error_log to see if there's any more information on why the existing failed to load.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.