“The program can’t start because php5ts.dll is missing from your computer” Error

Posted by on May 2, 2012 in PHP | 5 comments

I was trying to execute a PHP file via the command line on a windows machine and got the following error “the program can’t start because php5ts.dll is missing from your computer” Now executing PHP via the command line in Windows is different enough from Linux, I didn’t know what it needed. In Linux I would have install php-cli which should have come with all the dependancies. In Windows however, I fixed the issue by simply copying the php5ts.dll into the PHP folder. Now where did I get the php5ts.dll file? http://windows.php.net/download/ I downloaded the latest Thread Safe package, unzipped it and the php5ts.dll was present. This fixed the issue when executing the PHP file from the command line.

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.


  1. Hi
    I have just encountered the same error trying to open gtk1.php.
    I downloaded the php zip from the link you gaveand copied & pasted php5ts.dll into my PHP folder in my path.
    Now the command compiles but does not open a baic php-gtk gui as expected!
    I probably need more dependencies for php-gtk on my Win7 comp!
    I will look into it to try & get it working.
    Thanks for your post-bestwishes

    • Thanks for your input Richard. The version of Windows I was working on was a server edition, so you may be right that you need more dependencies. Hopefully the logs will be of some use to you.

  2. Good proposal, Andrew: ‘ts’ -> Thread_safe! I’ll give it a try in a minute. Currently, you can downlaod the non thread safe PHP versions 5.3.23 and 5.4.13. Both show this error. ‘Non Thread save’ is recommended for the use with IIS. Who ever succeded to install these packages smoothly?

  3. php5ts.dll did not solve the problem. But this link has a green button for a complete solution: http://www.microsoft.com/web/gallery/install.aspx?appsxml=&appid=PHP%3bPHP%3bPHP

  4. I just encountered the same error when trying to load the xampp refresher via my portable apps. I currently run Avast, and this is the first time I’ve accessed my portable apps since switching to Avast. Once Avast did a scan, my refresher worked as usual. Interesting tidbit :)

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>