PHP Windows extensions won´t load

前端 未结 2 914
难免孤独
难免孤独 2020-12-21 01:58

I\'m working on a windows server 2008 R2 machine. I have installed apache 2.2 with php 5.4.25 While trying to enable ldap support for the apache server i found out that the

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-21 02:33

    I had the same problem on Windows. After changing the path to the extension directory (in php.ini) to an absolute path, it worked.

    As suggested in the default php.ini (not working):

    extension_dir = "ext"
    

    Turned into an absolute path (working)

    extension_dir = "c:\amp\php\ext"
    

    The strange thing is that this problem occurs on some machines / versions only. Could not nail it down. There is an official bug listed here:

    https://bugs.php.net/bug.php?id=74866

提交回复
热议问题