I can enable any extension in my php.ini file except mysql and mysqli. mssql works a treat. I have checked that I have libmysql.dll, but the mysql extensions just won't play nicely.

Is there a way of getting some form of error output/logging from the phpinfo() function in order to ascertain why php won't load/use these extensions please?

I have tried this on another IIS server (Windows 2003) and after around 12 minutes I had the whole php/mysql sherbang installed and running as expected. My 'problem' (Windows 2003 as well) server just won't play ball.

Any advice on how to troubleshoot this would be much appreciated.

    Some things to check:

    1. Did you add your PHP directory (e.g. c:\php) to your system's PATH environment variable?

    2. Did you restart the entire server (not just IIS) after adding the PHP directory to your system's PATH environment variable?

    3. Is the 'libmysql.dll' file you verified located in your PHP directory? If not, where is it?

    4. Does the IIS worker account (e.g. IUSR_SERVERNAME) have read/execute permissions to the PHP directory and its contents?

    5. Did you verify that php_*.dll extension files exist in your extension directory?

      Write a Reply...