How to fix PHP Warning: PHP Startup: Unable to load dynamic library 'ext\\php_curl.dll'?

后端 未结 7 1219
忘掉有多难
忘掉有多难 2020-12-03 06:43

I currently have PHP 5.5.12 and Apache 2.4 installed on Windows Server 2008 R2. Everything is running perfectly with no issue/warnings.

What I have done is copied th

相关标签:
7条回答
  • 2020-12-03 07:24

    As Darren commented, Apache don't understand php.ini relative paths in Windows.

    To fix it, change the relative paths in your php.ini to absolute paths.

    extension_dir="C:\full\path\to\php\ext\dir"
    
    0 讨论(0)
  • 2020-12-03 07:32

    If you are using laragon open the php.ini

    In the interface of laragon menu-> php-> php.ini

    when you open the file look for ; extension_dir = "./"

    create another one without **; ** with the path of your php version to the folder ** ext ** for example

    extension_dir = "C: \ laragon \ bin \ php \ php-7.3.11-Win32-VC15-x64 \ ext"
    

    change it save it

    0 讨论(0)
  • 2020-12-03 07:38

    I have the same issue with windows10, apache 2.2.25, php 5.2 Im trying to add GD to a working PHP.

    how I turn around and change between forward and backward slash, plus trailing or not, I get some variant of ;

    PHP Warning: PHP Startup: Unable to load dynamic library 'C:/php\php_gd2.dll' - Det g\xe5r inte att hitta den angivna modulen.\r\n in Unknown on line 0

    (swedish translated: 'It is not possible to find the module' )

    in this perticular case, the php.ini was: extension_dir = "C:/php"

    the dll is put in two places C:\php and C:\php\ext

    IS it possible that there is and "error" in the error log entry ? I.e. that the .dll IS found (as a file) but not of the right format, or something like that ??

    0 讨论(0)
  • 2020-12-03 07:38

    No prompt use:

    dir /x
    

    Procure o nome reduzido do diretório na linha do "Program Files (x86)"

    27/08/2018  15:07    <DIR>          PROGRA~2     Program Files (x86)
    

    Coloque a seguinte configuração em php.ini para a opção:

    extension_dir="C:\PROGRA~2\path\to\php\ext"
    

    Acredito que isso resolverá seu problema.

    Zorro

    0 讨论(0)
  • 2020-12-03 07:39
    1. Check if compatible Mysql for your PHP version is correctly installed. (eg. mysql-installer-community-5.5.40.1.msi for PHP 5.2.10, apache 2.2 and phpMyAdmin 3.5.2)
    2. In your php\php.ini set your loadable php extensions path (eg. extension_dir = "C:\php\ext") (https://drive.google.com/open?id=1DDZd06SLHSmoFrdmWkmZuXt4DMOPIi_A)
    3. (In your php\php.ini) check if extension=php_mysqli.dll is uncommented (https://drive.google.com/open?id=17DUt1oECwOdol8K5GaW3tdPWlVRSYfQ9)
    4. Set your php folder (eg."C:\php") and php\ext folder (eg."C:\php\ext") as your runtime environment variable path (https://drive.google.com/open?id=1zCRRjh1Jem_LymGsgMmYxFc8Z9dUamKK)
    5. Restart apache service (https://drive.google.com/open?id=1kJF5kxPSrj3LdKWJcJTos9ecKFx0ORAW)
    0 讨论(0)
  • 2020-12-03 07:41

    maybe useful for somebody, I got next problem on windows 8, apache 2.4, php 7+.

    php.ini conf>
    
    extension_dir="C:/Server/PHP7/ext"
    

    php on apache works ok but on cli problem with libs loading, as a result, I changed to

    extension_dir="C:/server/PHP7/ext"
    
    0 讨论(0)
提交回复
热议问题