Home » Coding, Miscellaneous

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

12 August 2011 20 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:
Was before this one

I switched them and it’s working great now.



  • janganan said:

    You saved my time…

  • 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:


  • sukerr said:

    Thanks for clear tip. It works!

    [2004-02-17 14:06 UTC] wez@php.net
    NOTE: the order is important.

  • 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.


    ; Be sure to appropriately set the extension_dir directive.

  • 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!!!

  • 8411184 said:

    thank you Captain

  • Erick said:

    What worked for me:
    I found a PHP directory on C:\ and deleted that.
    My WAMP installation created a WAMP directory and it seems like the separate PHP path must have confused it somehow.

Your opinion matters!

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