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

x
  • 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?
0
elong0003
Asked:
elong0003
1 Solution
 
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
 
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
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!

 
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

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