I have installed PHP 4.0.3pl1 on Windows NT 4.0 with IIS. I have noticed that PHP Scripts written for use on PHP 4 and a Redhat linux box, are taking forever to process, unlike on the Redhat linux box where they process very fast.

I am wondering if the PHP on the NT is configured incorrectly. It says that THe Server API is CGI. Does this mean it is not running as a module? Is it possible to run PHP as a module on a Windows IIS web server?

See below.

System Windows NT 4.0 build 1381
Build Date Oct 15 2000
Server API CGI
Virtual Directory Support enabled
Configuration File (php.ini) Path php.ini
ZEND_DEBUG disabled
Thread Safety enabled

Thanks for your help.

Bill

    Bill,

    It depends to a large extent what your script is trying to accomplish, but as a general rule Apache on Linux will always be faster than IIS on NT. Have you tried installing Apache on the NT box to see if the bottleneck is related to IIS? PHP can run as an ISAPI filter on IIS (when then also allows you to use the Zend Optimizer), but it can be pretty unpredicable and buggy. This is one of the issues I believe is going to be addressed in the Zend Engine 2 (whenever that's released). HTH.

    geoff

      Thanks Geoff.

      I have not attempted to install Apache on NT, though I'm sure it is better than IIS. I'm not a proponent of Windows. I am doing a project for a friend and he has a Windows NT box. I'm a Linux man and just don't know too much about Bill Gate's software.

      I do appreciate your help.

      Thanks,
      Bill

        Bill wrote:

        I have installed PHP 4.0.3pl1 on Windows NT 4.0 with IIS. I have noticed that PHP Scripts written for use on PHP 4 and a Redhat linux box, are taking forever to process, unlike on the Redhat linux box where they process very fast.

        I am wondering if the PHP on the NT is configured incorrectly. It says that THe Server API is CGI. Does this mean it is not running as a module? Is it possible to run PHP as a module on a Windows IIS web server?

        See below.

        System Windows NT 4.0 build 1381
        Build Date Oct 15 2000
        Server API CGI
        Virtual Directory Support enabled
        Configuration File (php.ini) Path php.ini
        ZEND_DEBUG disabled
        Thread Safety enabled

        Thanks for your help.

        Bill

          Write a Reply...