Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 645
  • Last Modified:

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?
1 Solution
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.
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.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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.

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now