No subject
Mon Oct 7 05:54:23 PDT 2024
/usr/local/bin/php phpinfo_mapscript.phtml > test.html
and test.html shows that the MapScript is loaded. Other test also seem =
to work from the command line.
However when I try to run this file through a browser I get the =
following error:
[Mon Mar 21 11:42:14 2005] [error] [client 172.31.18.130] PHP Warning: =
dl(): Unable to load dynamic library '/usr/lib/php4/php_mapscript.so' - =
/usr/lib/php4/php_mapscript.so: failed to map segment from shared =
object: Permission denied in /var/www/html/phpinfo_mapscript.phtml on =
line 21
To set the web server up for php I did the following:
created a new php.conf file with only these two lines:
AddHandler phtml-script .phtml
Action phtml-script /cgi-bin/php.sh
in my cgi-bin directory, php.sh contains the following:
#!/bin/bash
export SCRIPT_FILENAME=3D$PATH_TRANSLATED
/usr/bin/php
Any ideas?
Thanks
Troy
More information about the MapServer-users
mailing list