PHP Warning: PHP Startup: ????????: Unable to initialize module

后端 未结 9 1596
余生分开走
余生分开走 2020-12-08 22:16

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         


        
9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 22:36

    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.

提交回复
热议问题