Changes between Version 1 and Version 2 of PHPMapScriptCGI
- Timestamp:
- Jan 27, 2009, 8:13:46 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PHPMapScriptCGI
v1 v2 1 = MapScript and PHP as a CGI =1 = !MapScript and PHP as a CGI = 2 2 3 3 == The Problem == … … 31 31 The same works for PHP3 or PHP4 as a CGI. 32 32 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.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. 34 34 35 35 This 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. … … 39 39 == If your server came preloaded with PHP as an Apache DSO == 40 40 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 CGIAddType 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. 42 42 {{{ 43 43 AddType application/x-httpd-php-cgi .php3