I think I have a misconfiguration in my mapserver that is preventing it from serving up imagery.
In my map file, I have this section:
PROJECTION "init=epsg:4326" END
If I leave that section in, I get this error when calling
GetMap or even
msProcessProjection(): Projection library error. no system list, errno: 2
If I remove that section (not desirable),
GetCapabilities works, but
GetMap gives this error:
<ServiceExceptionReport version="1.1.1"> <ServiceException code="InvalidSRS">msWMSLoadGetMapParams(): WMS server error. Cannot set new SRS on a map that doesn't have any projection set. Please make sure your mapfile has a projection defined at the top level.</ServiceException> </ServiceExceptionReport>
Which is expected because I just removed the section.
So, my question is how do I debug the error:
msProcessProjection(): Projection library error. no system list, errno: 2?
Searching online, I see comments related to permissions, but apache (user running httpd) can access the following directories defined in my httpd.conf:
SetEnv LD_LIBRARY_PATH /some/place/lib/ SetEnv PROJ_LIB /some/place/share/proj/ SetEnv GDAL_DATA /some/place/share/gdal/ SetEnv LC_NUMBERIC C SetEnv GEOTIFF_CSV /some/place/share/gdal/ SetEnv LANG=C
/some/place/share/proj, there is a file
epsg that is as I expect.
I get no errors from apache.