[mapserver-users] Setting up Apache as DSO & CGI
   
    Thomas Haechler
     
    thaechl@geo.unizh.ch
       
    29 Aug 2002 17:46:17 +0200
    
    
  
hi ken,
at least on unix, apache 1.3.24 and 1.3.26 both work with this in my
httpd.conf:
ScriptAlias /cgi-bin/ "/path/to/apache_1.3.26/cgi-bin/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-cgi .phtml
Action application/x-httpd-php-cgi /cgi-bin/php
Thomy
Ken Kyler wrote:
> 
> I know this isn't quite on topic, but I'm trying to setup Apache to use both
> mod_php and the php CGI.  I've read
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI as well as any
> other page I can find.
> 
> FreeBSD 4.5-STABLE
> Apache 1.3.24
> PHP 4.2.2
> 
> I can't get the CGI version to work.  I get 404 errors.  The following is
> from my test & development box
> 
> <VirtualHost *>
>     ServerName dev.kyler.com
>     ServerAdmin webmaster@kyler.com
>     DocumentRoot /www/kyler.com/www
>     php_admin_value include_path
> .:/www/phplibsrc:/www/kyler.com/phplib:/www/kyler.com/include
>     php_admin_value auto_prepend_file /www/kyler.com/phplib/prepend.php3
> 
>         # for Mapserver
>         ScriptAlias /cgi/ /www/kyler.com/cgi/
>         Action phm-script /cgi/php
>         AddHandler phm-script .phm
>         <Directory /www/kyler.com/www/map/>
>                 Options ExecCGI FollowSymLinks
>         </Directory>
>     <Directory /www/kyler.com/www/cgi/>
>        Options FollowSymLinks ExecCGI
>     </Directory>
> </VirtualHost>
> 
> Any thoughts?
> 
> Ken
-- 
THOMAS HAECHLER
Geographic Information Systems Division
Institute of Geography
University of Zurich
Switzerland
thomas.haechler@geo.unizh.ch