[mapserver-users] request help configuring php mapscript as cgi within apache redhat 7.3
Thomas Haechler
thaechl at geo.unizh.ch
Tue Sep 10 02:53:22 PDT 2002
hi,
this looks different from what I posted at
http://mapserver.gis.umn.edu/wilma/mapserver-users/0208/msg00487.html
but anyway, you create a link from /var/www/html/mapscript/cgi/php to
usr/bin/ where your php executable lies.
Shouldn't the executable be in /path/to/apache/cgi-bin/ ?
Or, at least, ln -s /usr/bin/php /path/to/apache/cgi-bin/php ?
hth,
thomy
David Armstrong wrote:
>
> Help!
> could someone please cast an eye over my attempted setup configuring for
> mapscript
> i have followed the notes on the Wiki regarding setting up but to no avail.
>
> all help and guidance appriciated
>
> Thanks
> Richard Armstrong
>
> Using:
> Redhat 7.3
> PHP 4.1.2
>
> ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> Original part in the httpd.conf:
>
> <IfModule mod_php4.c>
> AddType application/x-httpd-php .php .php4 .php3
> AddType application/x-httpd-php-source .phps
> </IfModule>
>
> Revised section:
>
> ## removed .phtml
> <IfModule mod_php4.c>
> AddType application/x-httpd-php .php .php4 .php3
> AddType application/x-httpd-php-source .phps
> </IfModule>
>
> Action phtml-script /cgi/php
> AddHandler phtml-script .phtml
>
> <Directory /var/www/html/mapscript/cgi>
> Options ExecCGI FollowSymLinks
> </Directory>
>
> ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> set up the cgi folder and permissions in /var/www/html/mapscript set as:
>
> mkdir cgi
> chgrp apache ./cgi (some distributions call the 'apache' group 'nobody')
> chmod 750 ./cgi
>
> created the link:
>
> ln -s /usr/bin/php /var/www/html/mapscript/cgi/php
>
> ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> the php exectuable is in /usr/bin/php
> using a test.phtml in /var/www/html/mapscript/ still gives 404 error like:
>
> The requested URL /cgi-bin/php/cgi/php/mapscript/test.phtml was not
> found on this server.
> or
> The requested URL /cgi-bin/php/mapscript/test.phtml was not found on
> this server.
--
THOMAS HAECHLER
Geographic Information Systems Division
Institute of Geography
University of Zurich
Switzerland
thomas.haechler at geo.unizh.ch
More information about the MapServer-users
mailing list