Home » Coding, Miscellaneous

The program can’t start because php_mbstring.dll is missing from your computer

12 August 2011 18 Comments

When running CLI PHP on windows i got that error:

The program can’t start because php_mbstring.dll is missing from your computer
PHP The program can’t start because dll is missing from your computer. Try reinstalling the program to fix this problem.

And i’ve verified the file is there and the version is correct.

Also another error was:
PHP Warning: PHP Startup: Unable to load dynamic library ‘F:/AppServ\php5\ext\p
hp_exif.dll’ – The specified module could not be found.


Anyway thanks to wez’s solution here, i fixed it.

In php.ini this line:
extension=php_exif.dll
Was before this one
extension=php_mbstring.dll

I switched them and it’s working great now.

extension=php_mbstring.dll
extension=php_exif.dll

18 Comments »

  • janganan said:

    You saved my time…
    Thanks..

  • lesthack said:

    Great, works !

  • Dimitar | reformas de pladur said:

    Nice post but i made this and it no functionaly …

  • 0xAli (author) said:

    Check your code then, this workaround should solve that error, do you get the error? can you please copy paste the error?

  • Branko Collin said:

    Thanks!

  • sukerr said:

    Thanks for clear tip. It works!

    [2004-02-17 14:06 UTC] wez@php.net
    NOTE: the order is important.
    php.ini:
    extension=php_mbstring.dll
    extension=php_exif.dll

  • Bhawik Jain said:

    A part of the code is here.. The order is already as required.. What should I do to remove the php_mbstring.dll not found error? Please help.

    php.ini:

    ; Be sure to appropriately set the extension_dir directive.
    ;
    ;extension=php_bz2.dll
    ;extension=php_curl.dll
    ;extension=php_dba.dll
    extension=php_mbstring.dll
    ;extension=php_exif.dll
    ;extension=php_fileinfo.dll
    extension=php_gd2.dll
    ;extension=php_gettext.dll

  • 0xAli (author) said:

    Try uncommenting “extension=php_exif.dll”.

  • andrew said:

    i replaced extension places but the error still persist! what should i do? plz help me!

  • 0xAli (author) said:

    Try commenting them out (with semicolon) and restart apache.

  • FTA_Boy said:

    thank you very very much …

  • Ruwan said:

    Thanks, It saved lot of my time.

  • adi said:

    thank you for sharing…

  • paul said:

    how do u switch the files and where is php.ini file located? thanks

  • 0xAli (author) said:

    You just switch the lines not the actual files, and you can know where php.ini is by getting the phpinfo http://php.net/manual/en/function.phpinfo.php

  • vvnzoom said:

    It’s very useful!!!

  • Cath said:

    Genius – you’ve just saved me a few days’ work! Thanks

  • Janderson said:

    Thank you!!!

Your opinion matters!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.