[MapServer-users] Setting DEBUG file for PHP MapScript in mapserver.conf does not work

Jan Hartmann j.l.h.hartmann at gmail.com
Thu Mar 20 06:51:07 PDT 2025


Hi,

In my mapserver.conf file I have:

  MS_DEBUGLEVEL "5"
  MS_ERRORFILE "/var/log/apache2/error.log_mapserver"

When calling /cgi-bin/mapserv?map=test.map, I get errors both in the 
regular apache error log and in the mapserver error log. However, when I 
use the same map in PHP-MapScript ($oMap = new mapObj("test.map), only 
the apache error log gets updated. When I configure the mapfile itself 
both logs get updated:

DEBUG 5
CONFIG "MS_ERRORFILE" "/var/log/apache2/error.log_mapserver"

Is this a bug? I would like to enable debugging for all the Mapscript 
files in my applications.

Jan



More information about the MapServer-users mailing list