Memory Limit when running PHP as a CGI under IIS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave 2

    Memory Limit when running PHP as a CGI under IIS

    Yes, another memory limit question.

    Our PHP application is running with PHP 4.3.9 running in CGI mode under
    Windows IIS 5.

    When a user tries to download a file that is 'too large', the following
    error message (or one similar) is displayed.

    CGI Error
    The specified CGI application misbehaved by not returning a complete
    set of HTTP headers. The headers it did return are:

    FATAL: erealloc(): Unable to allocate 81387415 bytes

    It would seem that IIS is limiting the amount of memory available to
    the PHP CGI process. There is no --enable-memory-limit option, so
    phpinfo() doesn't return any value for memory_limit

    The question, is it possible to increase this limit? 100 MB would do
    it for us.

Working...