PHP Warning: PHP Startup: Unable to load dynamic library '\xampp\php\e xt\php_pgsql.dll

php warning: php startup: unable to load dynamic library windows
php warning: php startup: unable to load dynamic library mysqli
php startup: unable to load dynamic library ubuntu
php warning: php startup: unable to load dynamic library 'curl'
php warning php startup unable to load dynamic library '/usr/local/lib/php/extensions/
php warning: php startup: unable to load dynamic library centos
php warning: php startup: unable to load dynamic library phalcon so
php warning: php startup: unable to load dynamic library gmp

I trying for zend framework but when I create project through command prompt that time following warning is coming the warning is PHP Warning: PHP Startup: Unable to load dynamic library '\xampp\php\e xt\php_pgsql.dll Please help me and give me any solution?

In My Case, my XAMPP was installed in the following path:

C:\xampp

And also when I try to run the following command on CMD,

any_drive_and_path_here>php phpFile.php

It gave me warning error messages like above, more than 15+!!!(And I had to do the following steps to resolve for each of the warning messages.)Then I searched the Google. And I got the idea into mind, whatever it is these modules are gonna be loaded, just because that the relevant line for each module in php.ini file has been un-commented (removing the semicolon ";" at the beginning of each line for each relevant module in php.ini file).And also as the error msg has given I checked if the extention dll file exists in the

xampp\php\ext directory.

(those extentions were there.)

Then I read the php.ini file instructions which is at the top of that file! :) It has given the instructions, to modify the path in each extension enabling lines.

Summary And To-Do :

In this case, relevant to this warning: Tip:if your XAMPP is installed in the following path "C:\xampp\" find and modify the following line(lines if you have more warnings than this)

From: extension=php_pgsql.dll
To:   extension=C:\xampp\php\ext\php_pgsql.dll

And then whenever you start the CMD and try executing the php command, php.ini knows where the exact place your extension.dll file resides in! :)

Hint: Don't Forget To Read the php.ini file instructions which is at the top! :) Hope This Answer Helped You All Who Uses Windows!(These steps worked on Win 8, I assume this works on other old versions too) :)

Thanks for taking time to read the answer!!! Best Regards

How to fix PHP Warning: PHP Startup: Unable to load dynamic , As Darren commented, Apache don't understand php.ini relative paths in Windows. In PHP manual we have an How-to install Apache 2.x on Microsoft Windows. Warning: PHP Startup: Unable to load dynamic library 'php_ftp.dll' (tried: \xampp\php\ext\php_ftp.dll (The specified module could not be found.), \xampp\php\ext\php_php_ftp.dll.dll (The specified module could not be found.)) in Unknown on line 0. Could somebody help me ? Thanks. Running in PHPstorm, Win 10

Somewhere in your php.ini the extension php_pgsql.dll is being tried to load. But could not be loaded.

Look for lines like extension=php_pgsql.dll in your php.ini then remove it.

But if you are working pgsql then you need fix the dll or find an alternate extension that works!

SOLVED, Hello I have got a lot of this error on my server: [13-Apr-2017 16:32:55 UTC] PHP Warning: PHP Startup: Unable to load dynamic library PHP Warning: PHP Startup: Unable to load dynamic library ‘…\php-5.6.9\ext\php_curl.dll' With PHP 5.6.9 on Windows Server Core 2012 x64 cURL was not working, not showing up in phpinfo despite uncommenting php_curl.dll extension in my php.ini and restarting the Apache 2.4 service.

You can modify you php.ini file to enable the php_pgsqlsql.dll

PHP Startup: Unable to load dynamic library, PHP Warning: PHP Startup: Unable to load dynamic library '/path/to/extension/ mysqli.so' (tried: /path/to/extension/mysqli.so� Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: C:\php\ext\curl (The specified module could not be found.), C:\php\ext\php_curl.dll (The specified module could not be found.)) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'fileinfo' (tried: C:\php\ext\fileinfo (The specified module could not be found.), C:\php\ext\php_fileinfo.dll (The specified module could not be found.)) in Unknown on line 0

16.04, Run: sudo gedit -H /etc/php/7.0/cli/php.ini. and comment out extension=php_intl. dll . Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\php_sybase_ct.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\php_ibm_db2.dll' - The specified module could not be found. in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library, PHP Warning: PHP Startup: Unable to load dynamic library. Posted 4 years ago by opilo. I updated my server using these two commands: sudo apt-get update� [2008-07-21 12:25 UTC] pajoye@php.net it works but the extension is not loaded. It certainly fails to load the ssl DLLs. I close it (bogus), please reopen it if you consider that there is other problems involved.

MySQLPHP Warning: PHP Startup: Unable to load dynamic library , The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_pdo_oci.dll' - The� "PHP Startup: Unable to load dynamic library 'ext\php_interbase.dll' - The specified module could not be found." The file 'ext\php_interbase.dll' is present, the phpinfo () page displays OK (but without a section headed 'interbase').

Comments
  • I don't know Xampp very well, I usually use a LAMP stack. Anyway, this error is pretty straightforward: you need to avoid the load of this extension in your php.ini, or install the required dll if you need PostreSQL
  • I guess you better check my answer at the very end! :) Sorry if that doesn't help you! :/