Changes between Version 1 and Version 2 of PHPMapScriptCGI


Ignore:
Timestamp:
Jan 27, 2009, 8:13:46 AM (15 years ago)
Author:
jmckenna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PHPMapScriptCGI

    v1 v2  
    1 = MapScript and PHP as a CGI =
     1= !MapScript and PHP as a CGI =
    22
    33== The Problem ==
     
    3131The same works for PHP3 or PHP4 as a CGI.
    3232
    33 Note: It may be necessary to use a script in the cgi-bin directory rather than the 'php' executable (e.g., as discovered the hard way by a FreeBSD? 5.1 user). See: http://lists.maptools.org/pipermail/maplab-users/2002-July/000153.html for a valuable hint.
     33Note: It may be necessary to use a script in the cgi-bin directory rather than the 'php' executable (e.g., as discovered the hard way by a !FreeBSD 5.1 user). See: http://lists.maptools.org/pipermail/maplab-users/2002-July/000153.html for a valuable hint.
    3434
    3535This URL explains the problem causing the need for the wrapper script: http://www.zend.com/lists/php-dev/200211/msg01353.html. It seems this problem was fixed long ago, but it can be re-activated in sapi/cgi/cgi_main.c by certain combinations of compilation options. The configure option --enable-discard-path is implicated, as well as PHP_FASTCGI and ENABLE_PATHINFO_CHECK.
     
    3939== If your server came preloaded with PHP as an Apache DSO ==
    4040
    41 RedHat? and other Linux/Unix? distributions that come with an installed version of Apache often have PHP preloaded as a DSO in their Apache configuration. If you're in that situation and don't feel like recompiling Apache then you can bypass the module by removing the original AddType lines and using another type for your PHP CGI AddType and Action directives, e.g.
     41!RedHat and other Linux/Unix distributions that come with an installed version of Apache often have PHP preloaded as a DSO in their Apache configuration. If you're in that situation and don't feel like recompiling Apache then you can bypass the module by removing the original !AddType lines and using another type for your PHP CGI !AddType and Action directives, e.g.
    4242{{{
    4343  AddType  application/x-httpd-php-cgi .php3