« Previous Next »

Thread: PHP very slow on IIS7

Last post 09-24-2009 8:36 AM by lordg. 16 replies.

Average Rating Rate It (5)

RSS

Page 2 of 2 (17 items) < Previous 1 2

Sort Posts:

  • 09-24-2009, 5:57 AM In reply to

    • pierrejoye
    • Top 75 Contributor
    • Joined on 02-12-2009, 10:52 PM
    • Germany
    • Posts 73

    Re: PHP very slow on IIS7

    I can imagine two possible sources for this problem:

    • IPv6 is enabled and localhost does not exist or ::1
    • Mysql's libmysql is used instead of PHP's libmysql.

    It happens that the IPv6 problem was the cause for this problem (as you stated later). The 2nd possibility happens a lot when someone installs mysql after PHP, or do a mysql update after having installed PHP.

    The latest Mysql's libmysql is not compatible with php's libmysql (and many other, that's not a php specific problem). They suffer from ABI compatibilities issues. The solution is to alter your PATH to be sure that php is first defined( PATH=c:\PHP;c:\mysql for example).

     

    --
    Pierre

    http://blog.thepimp.net | http://windows.php.net
  • 09-24-2009, 8:36 AM In reply to

    • lordg
    • Not Ranked
    • Joined on 09-20-2009, 5:46 AM
    • Posts 2

    Re: PHP very slow on IIS7

    Hi Brash and Pierre,

    I meant to update this post!

    I solved the problem be starting with the php.ini-recommended file and building it up slowly to what I needed, removing some extensions in the process. Unfortunately I could not find what was causing the speed problem, which is a little frustrating.

    However, I think the solution i found illustrates a strategy that should ideally be taken when upgrading / changing php modes / version. Start first with the basic setup, and slowly updated the settings to be equal or at least the base requirements of ones own system.

    Just making the changes to the current php.ini file for the new setup is not really ideal.

    So, my lesson learnt!

    Thanks for the advice though.

    G.

Page 2 of 2 (17 items) < Previous 1 2
Microsoft Communities