Php startup: unable to load dynamic library ixed 5.4 lin

412 votes

20 answers

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Get the solution ↓↓↓

I run a PHP script and get this error:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/ixed.5.2.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/ixed.5.2.lin: cannot open shared object file: No such file or directory in Unknown on line 0

What does that mean?

2021-11-22




952

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

It means there is anextension=... orzend_extension=... line in one of your php configuration files (php.ini, or another close to it) that is trying to load that extension :ixed.5.2.lin

Unfortunately that file or path doesn't exist or the permissions are incorrect.

  1. Try to search in the.ini files that are loaded by PHP (phpinfo() can indicate which ones are) - one of them should try to load that extension.
  2. Either correct the path to the file or comment out the corresponding line.

Undefined answered

2021-11-22

Link to answer




587

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

If you're on Linux, you can find all loaded configuration files by typing this in shell:

php -r "print phpinfo();" | grep ".ini"

UPDATE: As mentioned in comments, this can be even more accurate:

php -i | grep ini

Undefined answered

2021-11-22

Link to answer




310

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

phpStom with XAMPP

TL;DR Except from verifying that the files exist, you might need to add the drive letter to some records in your php.ini file

I suddenly started having a problem using phpStorm 7 for debugging php with xampp and xdebug. When trying to set intellij interperter to be xampps php I got a lot of the warnings like the one in the question, for example:

Unable to load dynamic library '/xampp/php/ext/php_bz2.dll'

For some reason I had to add my drive letter to the records of extension_dir and browscap in the php.ini file:

extension_dir = "\xampp\php\ext"
browscap = "\xampp\php\extras\browscap.ini"

to

extension_dir = "e:\xampp\php\ext"
browscap = "e:\xampp\php\extras\browscap.ini"

Undefined answered

2021-11-22

Link to answer




444

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

If you just want to make the error disappear, and you don't need the extension, then by all means comment the line out inphp.ini. But if you actually want to fix the problem here is some additional info.

There are various causes for this based on the exact module, but there are also some general guidelines.

  1. Openphpinfo() and look forextension_dir under theCore section. This is where your modules should be located.

For instance,/usr/lib/php/modules for Unix/Linux.

  1. If the file does in fact exist, make sure permissions are adequate.
  2. If the file does not exist, use the resources below to install it.

Installation on *nix (PEAR)
Installation of extensions on Windows

Undefined answered

2021-11-22

Link to answer




758

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

php -r "echo php_ini_loaded_file();"

Will show in CLI current ini loaded file, search there for Your extension, path to it is incorrect.

Undefined answered

2021-11-22

Link to answer




713

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

Loading .dll in Linux

I've encountered this warning message while I was trying to install a php-extension via the php.ini file;

until I figured out that you cannot load .dll extensions in Linux,

but you have to comment the extensions that you want to import;extension= ... .dll and install it correctly viasudo apt-get install php-...

note:... is the extension name you want to enable.

Undefined answered

2021-11-22

Link to answer




177

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

Note that you can also get this error if your PHP library doesn't have the "other" directory opening permission. In my particular case, I noticed this when usingphp -l to syntax check a script in my text editor. This meant that since my account was called "volomike", that account didn't have permission to run the libraries that thephp command relied upon.

For instance, on Ubuntu 14.04, I had PHP5 installed automatically into the path/usr/lib/php5/20121212+lfs. However, because I was working in C++ in building some shared objects, I messed around with the directory permissions and screwed things up such that non-root accounts did not have the directory execute (directory open) permissions to view/usr/lib/php5/20121212+lfs. So, I typed the following command to rectify that problem:

sudo chmod o+x /usr/lib/php5/20121212+lfs.

Now when I dophp -l example.php as a non-root user, it never gives me this "Unabled to load dynamic library" problem anymore.

Undefined answered

2021-11-22

Link to answer




34

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

I had the same problem on XAMPP for Windows when I try to install composer. I didphp -v and php throwing error :

Unable to load dynamic library '/xampp/php/ext/php_bz2.dll'

It took me a while until I realized that I need to setup my XAMPP. So I runsetup_xampp.bat and php return to works like a charm.

Undefined answered

2021-11-22

Link to answer




933

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

I had the same problem on XAMPP for Windows10 when I try to install composer.

Unable to load dynamic library '/xampp/php/ext/php_bz2.dll'

Then follow this steps

  1. just open your current_xampp_containing_drive:\xampp(default_xampp_folder)\php\php.ini in texteditor (like notepad++)
  2. now just find - is the current_xampp_containing_drive:\xampp exist?
  3. if not then find the "extension_dir" and get the drive name(c,d or your desired drive) like.

extension_dir="F:\xampp731\php\ext" (here finded_drive_name_from_the_file is F)

  1. again replace with finded_drive_name_from_the_file:\xampp with current_xampp_containing_drive:\xampp and save.
  2. now again start the composer installation progress, i think your problem will be solved.

Undefined answered

2021-11-22

Link to answer




253

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

In my case, this message started to appear when I updated the php version to 7.4.

To solve it I had to look for the php.ini files found inside the php version folder (/etc/php/7.4/apache2/ && /etc/php/7.4/cli/) checking the lines where the extensions I could see that the extensions gd2 and intl were uncommented.

Undefined answered

2021-11-22

Link to answer




951

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

In my case I got this error because I downloaded a thread-safe version of the dll (infixed with-ts-), but my installation of php was a non-thread-safe (infixed with-nts). Downloading the right version of the dll, exactly matching my php installation version fixed the issue.

Undefined answered

2021-11-22

Link to answer




965

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

-

Solution:

I had this error on a number of modules when I had been running different versions of PHP side by side on my server. To sort this out, I needed to install the packages it couldn't find for that specific PHP version. So, for example, if I saw:-

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/xml.so'

I would install the library for the PHP version specifically:-

sudo apt-get install php7.1-xml

And then restart Apache. Fixed it for me. You can check your version like this:-

php -v

Undefined answered

2021-11-22

Link to answer




264

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

AfterWindows 10 XAMPP now I installedLAMPP (XAMPP) on Ubuntu.Windows XAMPP had a lot less to configure compare to MAC (iOS) but now with Linux Ubuntu I had a few more since there are more going in Linux (a good thing).

I confused and activatedmysqli.dll (and mysql.dll: erase "#" in/etc/php/7.2/cli/php.ini

I started to get thePHP Warning: PHP Startup: Unable to load dynamic library message related todll. I commented outmysql(and i).dll in the same file but the message didn't go away up until I commented out " " in/opt/lampp/etc/php.ini.

Looks like XAMPP readsphp.ini file from/etc/php/7.2/cli and makes modification inphp.ini of/opt/lampp/etc. (;extension=php_pdo_mysql.dll after ";" restarted Apache and no more any message.

Undefined answered

2021-11-22

Link to answer




196

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

What I did was;

1 - I first find out what version of PHP I am using thru the function phpinfo()

<?php   
    phpinfo();
?>

2 - From there you will find the location of your configuration(php.ini) file

Php startup: unable to load dynamic library ixed 5.4 lin

3 - Open that file

4 - Comment out the line similar to the image below

This might be a different value but it should be related to extension. I am no expert but this process helped me solved similar problem.

Php startup: unable to load dynamic library ixed 5.4 lin

Undefined answered

2021-11-22

Link to answer




637

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

I encountered a similar error. The mistake I made was to use the "controller" name as "Pages" instead of "pages" in my url.

Undefined answered

2021-11-22

Link to answer




940

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

In Windows, it could be a wrong path in "System environment variables". "Path" to the php.exe directory must be the good one.

Undefined answered

2021-11-22

Link to answer




989

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

Look for the exact extension for your PHP version here

Undefined answered

2021-11-22

Link to answer




212

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

'C:/PHP/5.2.13/ext\php_mcrypt1.dll'

I'd say there's some typo on your php.ini (the extra 1). Perhaps you're loading a different php.ini from what you expect (see the output of php.ini to make sure).

Other than that make sure that php_mcrypt.dll and PHP:

Were linked to the same VC runtime library (typically msvcrt.dll for VC6 or msvcrt90.dll for VC9) – use e.g. the dependency walker for this Are both debug builds or both release builds Both have ZTS enabled or ZTS disabled For libraries that depend on further libraries (DLLs), make sure they are available (e.g. in the same directory as the extension) PHP should give you meaning errors if any of the first three conditions above is not satisfied, but I wrote those anyway because I'm not sure for PHP 5.2.

Undefined answered

2021-11-22

Link to answer




245

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

From C:\xampp\php\php.exe I got

  • Unable to load dynamic library ''
  • C:\xampp\php\ext\php_.dll (The specified module could not be found.)

I solved by commenting out
C:\xampp\php\php.ini
;extension=

Undefined answered

2021-11-22

Link to answer




103

votes

Php startup: unable to load dynamic library ixed 5.4 lin

Php startup: unable to load dynamic library ixed 5.4 lin

Answer

Solution:

I had a similar problem and bellow is some of all the warnings/errors.

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

If you check through the warnings, you will see that it is looking for php extensions in theC:\php\ext\ so, I downloaded php to theC:\ directory and that solved the problems.

Undefined answered

2021-11-22

Link to answer




People are also looking for solutions of the problem: installation failed, reverting ./composer.json and ./composer.lock to their original content
Source

Share


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.


Similar questions

Find the answer in similar questions on our website.