Re: [mapserver-users] 500 Internal Server Error

2009-03-05 Thread Rui Gomes
 Are you able to get into a shell?

I do not think i can do that (or know how do that).

Thanks anyway



2009/3/5 Gregor at HostGIS gre...@hostgis.com:
 And a few more question: what libraries i need to put in the server?
 Where i can find some documentation about the libraries mapserver
 need?

 A technique I find handy for debugging mapserver problems, a bit more useful
 than Internal server error, is to go into the Unix shell and use shp2img.
 Are you able to get into a shell?

 I'd use something similar to one of these:
  shp2img -o test.png -m mapfile.map
  shp2img -o test.png -m mapfile.map -d 999
  shp2img -o test.png -m mapfile.map -l lakes,streets

 When that fails, it'll give you more information as to what went wrong. For
 example, it will give hints as to shapefiles being transferred in ASCII
 mode, or the TEMPDIR not being writable.

 --
 Gregor Mosheh / Greg Allensworth    BS, A+, Network+, Security+, Server+
 System Administrator, Lead Programmer
 HostGIS development  hosting services, http://www.HostGIS.com/

 Remember that no one cares if you can back up,
  only if you can restore. - AMANDA




-- 
  Rui Gomes
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] 500 Internal Server Error

2009-03-05 Thread Steve Lime
Rui, what platform etc.. are you on?

 Rui Gomes ruijgo...@gmail.com 03/05/09 9:20 AM 
 Are you able to get into a shell?

I do not think i can do that (or know how do that).

Thanks anyway



2009/3/5 Gregor at HostGIS gre...@hostgis.com:
 And a few more question: what libraries i need to put in the server?
 Where i can find some documentation about the libraries mapserver
 need?

 A technique I find handy for debugging mapserver problems, a bit more useful
 than Internal server error, is to go into the Unix shell and use shp2img.
 Are you able to get into a shell?

 I'd use something similar to one of these:
  shp2img -o test.png -m mapfile.map
  shp2img -o test.png -m mapfile.map -d 999
  shp2img -o test.png -m mapfile.map -l lakes,streets

 When that fails, it'll give you more information as to what went wrong. For
 example, it will give hints as to shapefiles being transferred in ASCII
 mode, or the TEMPDIR not being writable.

 --
 Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
 System Administrator, Lead Programmer
 HostGIS development  hosting services, http://www.HostGIS.com/

 Remember that no one cares if you can back up,
  only if you can restore. - AMANDA




-- 
  Rui Gomes
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] 500 Internal Server Error

2009-03-05 Thread Rui Gomes
 Rui, what platform etc.. are you on?

That is my problem...i try to use a free web host to make a simple
demo of my work.
The server is linux, use apache and permit CGI.

Because i try to build a hello map whithout render any image, i don´t
expect problem whith the libraries so soon. And i have no ideia if i
will can put it working.

2009/3/5 Steve Lime steve.l...@dnr.state.mn.us:
 Rui, what platform etc.. are you on?

 Rui Gomes ruijgo...@gmail.com 03/05/09 9:20 AM 
  Are you able to get into a shell?

 I do not think i can do that (or know how do that).

 Thanks anyway



 2009/3/5 Gregor at HostGIS gre...@hostgis.com:
 And a few more question: what libraries i need to put in the server?
 Where i can find some documentation about the libraries mapserver
 need?

 A technique I find handy for debugging mapserver problems, a bit more useful
 than Internal server error, is to go into the Unix shell and use shp2img.
 Are you able to get into a shell?

 I'd use something similar to one of these:
  shp2img -o test.png -m mapfile.map
  shp2img -o test.png -m mapfile.map -d 999
  shp2img -o test.png -m mapfile.map -l lakes,streets

 When that fails, it'll give you more information as to what went wrong. For
 example, it will give hints as to shapefiles being transferred in ASCII
 mode, or the TEMPDIR not being writable.

 --
 Gregor Mosheh / Greg Allensworth    BS, A+, Network+, Security+, Server+
 System Administrator, Lead Programmer
 HostGIS development  hosting services, http://www.HostGIS.com/

 Remember that no one cares if you can back up,
  only if you can restore. - AMANDA




 --
                                      Rui Gomes
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users





-- 
  Rui Gomes
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] 500 Internal Server Error

2009-03-04 Thread Gregor at HostGIS

Rui Gomes wrote:

I expect recived the follow error Message:
msLoadMap(): Unable to access file. (/testing_error/hello.map)


I would expect that from the command line. From a webserver, I would 
expect a 500 response and to find that above message in the error_log


--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development  hosting services, http://www.HostGIS.com/

Remember that no one cares if you can back up,
 only if you can restore. - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] 500 Internal Server Error

2009-03-04 Thread Steve Lime
What's in the server log? Sometimes you'll see this if the right libraries 
can't be loaded
by the mapserver cgi binary.

Steve

 Rui Gomes ruijgo...@gmail.com 03/04/09 5:11 PM 
Greetings...

I developed a websig in mapserver using ubuntu and a virtual host in Ubuntu OS.
Now i try to build it in a real server.

I expect recived the follow error Message:

msLoadMap(): Unable to access file. (/testing_error/hello.map)


But all i recived was:

500 Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator,
webmas...@testing_error.hostserver.net and inform them of the time the
error occurred, and anything you might have done that may have caused
the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to
use an ErrorDocument to handle the request.


What is wrong. Something is missing?


-- 
  Rui Gomes
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] 500 Internal Server Error

2009-03-04 Thread Rui Gomes
The server log only have this:

[Wed Mar 04 17:30:54 2009] [error] [client 89.181.105.88] File does
not exist: /home2/ruigomes/public_html/404.shtml
[Wed Mar 04 17:30:54 2009] [error] [client 89.181.105.88] File does
not exist: /home2/ruigomes/public_html/favicon.ico

And a few more question: what libraries i need to put in the server?
Where i can find some documentation about the libraries mapserver
need?


2009/3/4 Steve Lime steve.l...@dnr.state.mn.us:
 What's in the server log? Sometimes you'll see this if the right libraries 
 can't be loaded
 by the mapserver cgi binary.

 Steve

 Rui Gomes ruijgo...@gmail.com 03/04/09 5:11 PM 
 Greetings...

 I developed a websig in mapserver using ubuntu and a virtual host in Ubuntu 
 OS.
 Now i try to build it in a real server.

 I expect recived the follow error Message:

 msLoadMap(): Unable to access file. (/testing_error/hello.map)


 But all i recived was:

 500 Internal Server Error

 The server encountered an internal error or misconfiguration and was
 unable to complete your request.

 Please contact the server administrator,
 webmas...@testing_error.hostserver.net and inform them of the time the
 error occurred, and anything you might have done that may have caused
 the error.

 More information about this error may be available in the server error log.

 Additionally, a 404 Not Found error was encountered while trying to
 use an ErrorDocument to handle the request.


 What is wrong. Something is missing?


 --
                                      Rui Gomes
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users





-- 
  Rui Gomes
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] 500 Internal Server Error

2009-03-04 Thread Gregor at HostGIS

And a few more question: what libraries i need to put in the server?
Where i can find some documentation about the libraries mapserver
need?


A technique I find handy for debugging mapserver problems, a bit more 
useful than Internal server error, is to go into the Unix shell and 
use shp2img. Are you able to get into a shell?


I'd use something similar to one of these:
  shp2img -o test.png -m mapfile.map
  shp2img -o test.png -m mapfile.map -d 999
  shp2img -o test.png -m mapfile.map -l lakes,streets

When that fails, it'll give you more information as to what went wrong. 
For example, it will give hints as to shapefiles being transferred in 
ASCII mode, or the TEMPDIR not being writable.


--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development  hosting services, http://www.HostGIS.com/

Remember that no one cares if you can back up,
 only if you can restore. - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] 500 Internal server error

2008-04-02 Thread P Kishor
On 4/2/08, Ignacio J. Moratiel [EMAIL PROTECTED] wrote:

  I've compiled and installed mapserver on Suse 10.0 and mapserv file is on
 cgi-bin directory. When I try to run the scripts I get a 500 internal error
 message.

  I can read on this page
 http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix

  500 Internal server error: This is a fairly generic error message. All it
 basically tells you is that the web server was unsuccessful in running the
 program. You will have to consult the web server's error log to find out
 more, and may need to enlist the help of your webmaster/system administrator

well, what does your Apache error_log say? Did you check the logfile?



  Mapserver creates a 0 bytes image in temp directory, and returns 500 error,
 so I think Apache is running program but mapserver fails.

  mapserv -v returns:
  MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
 OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
 SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

  Is there any way to check mapserv script is compiled ok? Should I check
 other things?

  Thanks for your help



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] 500 Internal server error

2008-04-02 Thread Ignacio J. Moratiel

Apache error log :

[Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*] 
/srv/www/cgi-bin/mapserv: symbol lookup error: /srv/www/cgi-bin/mapserv: 
undefined symbol: gdImageJpegCtx, referer: 
http://www.dipuleon.es/atica/portada_turcia.html
[Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*] Premature end of 
script headers: mapserv, referer: 
http://www.dipuleon.es/atica/portada_turcia.html


I tried PNG, it works fine, but JPEG returns 500 error



P Kishor escribió:

On 4/2/08, Ignacio J. Moratiel [EMAIL PROTECTED] wrote:
  

 I've compiled and installed mapserver on Suse 10.0 and mapserv file is on
cgi-bin directory. When I try to run the scripts I get a 500 internal error
message.

 I can read on this page
http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix

 500 Internal server error: This is a fairly generic error message. All it
basically tells you is that the web server was unsuccessful in running the
program. You will have to consult the web server's error log to find out
more, and may need to enlist the help of your webmaster/system administrator



well, what does your Apache error_log say? Did you check the logfile?


  

 Mapserver creates a 0 bytes image in temp directory, and returns 500 error,
so I think Apache is running program but mapserver fails.

 mapserv -v returns:
 MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

 Is there any way to check mapserv script is compiled ok? Should I check
other things?

 Thanks for your help



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] 500 Internal server error

2008-04-02 Thread P Kishor
On 11/2/07, Ignacio J. Moratiel [EMAIL PROTECTED] wrote:

  Apache error log :

  [Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*]
 /srv/www/cgi-bin/mapserv: symbol lookup error: /srv/www/cgi-bin/mapserv:
 undefined symbol: gdImageJpegCtx, referer:
 http://www.dipuleon.es/atica/portada_turcia.html
  [Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*] Premature end of
 script headers: mapserv, referer:
 http://www.dipuleon.es/atica/portada_turcia.html

  I tried PNG, it works fine, but JPEG returns 500 error

there you go. You solved it yourself (with a little nudge from me and
a big nudge from your error log).

If you insist on using Jpeg, recompile the program correctly (it seems
that your mapserv does claim that it supports jpeg, but I don't know
what is going on there), else use PNGs or GIFs. Should keep you busy
for a while.

Good luck.





  P Kishor escribió:
  On 4/2/08, Ignacio J. Moratiel [EMAIL PROTECTED] wrote:


  I've compiled and installed mapserver on Suse 10.0 and mapserv file is on
 cgi-bin directory. When I try to run the scripts I get a 500 internal error
 message.

  I can read on this page
 http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix

  500 Internal server error: This is a fairly generic error message. All it
 basically tells you is that the web server was unsuccessful in running the
 program. You will have to consult the web server's error log to find out
 more, and may need to enlist the help of your webmaster/system administrator

  well, what does your Apache error_log say? Did you check the logfile?




  Mapserver creates a 0 bytes image in temp directory, and returns 500 error,
 so I think Apache is running program but mapserver fails.

  mapserv -v returns:
  MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
 OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
 SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

  Is there any way to check mapserv script is compiled ok? Should I check
 other things?

  Thanks for your help



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users