Currently attempting to install MySQL with PHP 5.3.4, Upon adding the extensions i get two errors when i run httpd.exe in the command prompt:

php.ini file:

[extensions]
 extension_dir                    = c:/gedk5/server/php/ext/

; APC
 extension                        = php_apc.dll
 extension                        = php_gd2.dll

; Oracle
 extension                        = php_oci8.dll

; MySQL
extension						  = php_mysql.dll
extension						  = php_mysqli.dll
  1. The program can't start because php5.dll is missing from your computer. Try reinstalling the program to fix this problem
  2. PHP Startup: Unable to load dynamic library 'c:/gedk5/server/php/ext/php_mysql.dll" - The specified module could not be found.

The module does exist in that directory and if i comment out the extensions in my php.ini it loads fine, just no mysql access of course.

Any idea?

    Can you use [man]phpinfo/man to see where PHP thinks the extensions should be / are being called from?

      Solved it, a silly error, had the wrong version of php_mysql.dll in the folder. It was a non-thread-safe version and my php 5.3.4 was thread-safe

        bclark8923;11025089 wrote:

        Solved it, a silly error, had the wrong version of php_mysql.dll in the folder. It was a non-thread-safe version and my php 5.3.4 was thread-safe

        Nice to hear. Please consider marking this thread "Resolved" using the pull-down "Thread Tools" menu near the top.

        Welcome to PHPBuilder. 🙂

          Incidentally, that's a fairly old version of PHP you're installing there (the current version is 5.4.13, or 5.3.23 for those who haven't upgraded their code yet); and if you're not using the deprecated MySQL extension you don't need the php_mysql library.

            Write a Reply...