Note that there are some explanatory texts on larger screens.

plurals
  1. POInstalling PHP in windows - "php.exe" and "PHP SAPI" both should support pdo_mysql
    primarykey
    data
    text
    <p>We use Windows for our development systems. I am installing PHP, Apache, MySQL manually. All from zip packages. Now:</p> <p>If I use php <em>thread safe</em> binaries: pdo_mysql fails to load when executing php.exe from command line. I get the following warning:</p> <pre><code>PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module Module compiled with module API=20060613, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match in Unknown on line 0 </code></pre> <p>I checked our RHEL production server, there php thready safety is disabled. So I downloaded not thread safe binaries <a href="http://in2.php.net/get/php-5.2.10-nts-Win32.zip/from/a/mirror" rel="nofollow noreferrer">from here</a>.</p> <p>Now, I hit another problem: Apache is failing to start. The error.log says:</p> <pre><code>[Thu Mar 04 13:54:08 2010] [crit] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. Pre-configuration failed [Thu Mar 04 13:54:08 2010] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request. : winnt_accept: Asynchronous AcceptEx failed. </code></pre> <p>How do I install php with support for pdo_mysql in Windows? So, that the command line php.exe works?</p> <p>Note: In the thread-safe binary, although php.exe was not loading pdo_mysql, the PHP API was able to load it. Because in phpinfo, it was appearing.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload