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?
LVL 2
elong0003Asked:
Who is Participating?
 
xtermCommented:
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.
0
 
elong0003Author Commented:
I see the same error message when I do the search, but no detail as to which module.
0
Upgrade your Question Security!

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

 
xtermCommented:
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.
0
 
sergiu1103Commented:
It mentions it: it's the fileinfo module.

Is this the only error that pops up when you do a "php -v" ?
0
 
kelvinwkwCommented:
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 fileinfo.so failed to load.
0
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.