After upgrading php from 5.1 to 5.2.10, I got the following warnings when php -v:
# php -v
PHP Warning: PHP Startup: fileinfo: Unable t
This happened to me when I tried to install a newer version of PHP. After finding that I also would need to reconfigure Apache for that I switched back to the old PHP version. Here the solution which worked for me:
change the httpd.conf to the correct versions:
PHPIniDir ...
LoadModule php5_module ...
Changed the
PATH - Environment Variable
When that does not take any effect
rename or delete the new PHP(-Version)-Folder
For some reason the last step did the trick for me. Even after a restart it did not have an effect before doing this.