Link to home
Start Free TrialLog in
Avatar of elong0003
elong0003Flag for United States of America

asked on

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?
Avatar of xterm
xterm

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.
Avatar of elong0003

ASKER

I see the same error message when I do the search, but no detail as to which module.
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 fileinfo.so failed to load.
ASKER CERTIFIED SOLUTION
Avatar of kelvinwkw
kelvinwkw
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial