Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

i read all the questions with 500 server error i could find on the net but nothing seems to solve my problem:

I installed qgis and all depending packages on a debian server. The first REQUEST=GetCapabilities worked fine and i created a qgs project file in qgis desktop on my windows workstation.

Then i moved the project file + shapefiles to the cgi-bin directory and changed the permissions to do everything for everyone.

Calling REQUEST=GetCapabilities then gave me a nice output but no layers.

The problem was I forgot to change the path to the shp files. After changing it and retrying the REQUEST=GetCapabilities i got the 500 internal server error.

In apache log it only says "premature end of script headers: qgis_mapserv.fcgi" - nothing else. no missing libary.

To make sure it wasn't something with a specific shapefile i created a project with a single raster layer and a png file. I copied both to my cgi-bin folder again. And surprise. This is working. I get my raster image displayed

I also tried to put the shapefiles into my home directory and pointed the path in the project file there --> 500

tried absolute and relative pathes in project file --> 500

Any ideas why qgis desktop is working with my shapefiles but qgis server doesn't?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com?utm_source=stackoverflow.com&amp;utm_medium=site-ui&amp;utm_campaign=footerlink\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2014 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a>                   with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2014.12.24.2140\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">Geographic Information Systems Stack Exchange works best with JavaScript enabled<img src=\"http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif\" alt="], "copyright__copyright__copyright": ["rise. This is working. I get my raster image displayed\n\nI also tried to put the shapefiles into my home directory and pointed the path in the project file there --> 500\n\ntried absolute and relative pathes in project file --> 500\n\nAny ideas why qgis desktop is working with my shapefiles but qgis server doesn't?\n\nshare|improve this question\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nBrowse other questions tagged or ask your own question."]}