[mapserver-users] Resolved: Mapserver install - Mac OS X and safari

2012-01-18 Thread M Badar
Thanks again to everyone who provided input.  The gist of the problem was
related to a conflict between the version of apache I had installed and the
version which is shipped with OS X.  Listed below are the steps I followed
to eliminate the problem:

1. Completely uninstall the apache version shipped with OS X;
2. Ran 'find' to search for http occurrences on the filesystem: find /
-name '*http*' -print;
3. Deleted the following file to stop OS X from starting apache
automatically:

 /System/Library/LaunchDaemons/org.apache.httpd.plist

4. Start apache manually with 'apachectl'

 /usr/local/apache2/bin/apachectl start

5. Access the mapserver URL as follows:

 http://localhost/cgi-bin/mapserv

6. Success - the following was displayed by Safari:

 No query information to decode. QUERY_STRING is set, but empty.

7. Let the fun begin!

Although I'm not sure which of the steps above actually fixed the problem,
I believe it was steps 1 and 3 which were the critical parts of the
solution.

Take care,

Mike Badar

#
# Original post.
#

Thanks, everyone.

With /etc/hosts set to:

127.0.0.1   localhost   localhost

and accessing the URL:

http://localhost.com/cgi-bin/mapserv

I get the error:

# safari can't open the page "http://localhost.com/cgi-bin/mapserv"; because
the server
# unexpectedly dropped the connection.

and when the URL is accessed this way (leaving /etc/hosts as shown above):

http://localhost/cgi-bin/mapserv

I get the error:

Not Found

The requested URL /cgi-bin/mapserv was not found on this server.

At this point I'm 90% sure the problem lies between safari and apache.
 Maybe it's time for a reference manual on apache.  Does anyone have any
titles they would like to recommend?

Mike

Greetings,

New user to the list. I am installing mapserver
on my MacBook Pro. The installation has progressed without error until I
attempt
to call the 'mapserv' cgi executable from safari; it returns the following
error
after running the final check as described in the documentation:

# Page 40, MapServer Documentation, Release 6.0.1; 4.1.8 Installation - The
basic install.

# This is the final test to ensure mapserver is installed and functioning
correctly.
# When attempting to access the test URL, safari returns the following
error:

# Test URL: http://localhost.com/cgi-bin/mapserv

# Safari error:

# safari can't open the page "http://localhost.com/cgi-bin/mapserv"; because
the server
# unexpectedly dropped the connection.

Mapserver version: 6.0.1
Mac OS X version: 10.6.8
Safari version: 5.1.2

My suspicion is the error is related to how mapserver and apache are
communicating; however,
not being apache literate, I don't know where to begin diagnosing the
connection problem. I
ran a syntax check on the httpd.conf file and it returned the following:

Michael-Badars-MacBook-Pro:bin bobby$ apachectl -t
httpd: Could not reliably determine the server's fully qualified domain
name, using
Michael-Badars-MacBook-Pro.local for ServerName
Syntax OK
Michael-Badars-MacBook-Pro:bin bobby$

Listed below are details regarding my installation.

Thanks in advance for any help you can provide.

Mike Badar




#
# Map Server 6.0.1 "configure" script.
#

# Author: Mike Badar
# Date: 29 December, 2011
# Version: 3

./configure   \
--with-curl-config=/usr/local/bin/curl-config \
--with-gdal=/usr/local/bin/gdal-config\
--with-geos=/usr/local/bin/geos-config\
--with-ogr=/usr/local/bin/gdal-config \
--with-postgis=/usr/local/pgsql/bin/pg_config \
--with-xml2-config=/usr/local/bin/xml2-config \
  \
--with-agg=/usr/local \
--with-freetype=/usr/local\
--with-gd=/usr/local  \
--with-httpd=/usr/local/apache2/bin/httpd \
--with-jpeg=/usr/local\
--with-proj=/usr/local\
--with-tiff=/usr/local\
  \
--with-wfsclient  \
--with-wmsclient  \
--with-threads\
--with-wcs\
  \
--enable-debug

#
# Mapserver version.
#
Michael-Badars-MacBook-Pro:cgi-bin bobby$ ./mapserv -v
MapServer version 6.0.1 \

  OUTPUT=GIF \
  OUTPUT=PNG \
  OUTPUT=JPEG \

  SUPPORTS=PROJ \
  SUPPORTS=AGG \
  SUPPORTS=FREETYPE \
  

Re: [mapserver-users] Resolved: Mapserver install - Mac OS X and safari

2012-01-18 Thread Puneet Kishor

On Jan 18, 2012, at 1:13 PM, M Badar wrote:

> Thanks again to everyone who provided input.  The gist of the problem was
> related to a conflict between the version of apache I had installed and the
> version which is shipped with OS X.  Listed below are the steps I followed
> to eliminate the problem:
> 
> 1. Completely uninstall the apache version shipped with OS X;

You did the single most possibly wrong thing with #1 above. Never, never touch 
the stuff that comes with the system if for no other reason than you just don't 
have to.

> 2. Ran 'find' to search for http occurrences on the filesystem: find /
> -name '*http*' -print;
> 3. Deleted the following file to stop OS X from starting apache
> automatically:
> 
> /System/Library/LaunchDaemons/org.apache.httpd.plist

Good lord. All you had to do was to go to "System Preferences.." and turn off 
web sharing. 

If you really wanted to do it the difficult way, you could have done a 
`launchctl unload` (http://ss64.com/osx/launchctl.html)

> 
> 4. Start apache manually with 'apachectl'
> 
> /usr/local/apache2/bin/apachectl start
> 
> 5. Access the mapserver URL as follows:
> 
> http://localhost/cgi-bin/mapserv
> 
> 6. Success - the following was displayed by Safari:
> 
> No query information to decode. QUERY_STRING is set, but empty.
> 
> 7. Let the fun begin!
> 
> Although I'm not sure which of the steps above actually fixed the problem,
> I believe it was steps 1 and 3 which were the critical parts of the
> solution.


I hope it works out for you... good luck.



> 
> Take care,
> 
> Mike Badar
> 
> #
> # Original post.
> #
> 
> Thanks, everyone.
> 
> With /etc/hosts set to:
> 
> 127.0.0.1   localhost   localhost
> 
> and accessing the URL:
> 
> http://localhost.com/cgi-bin/mapserv
> 
> I get the error:
> 
> # safari can't open the page "http://localhost.com/cgi-bin/mapserv"; because
> the server
> # unexpectedly dropped the connection.
> 
> and when the URL is accessed this way (leaving /etc/hosts as shown above):
> 
> http://localhost/cgi-bin/mapserv
> 
> I get the error:
> 
> Not Found
> 
> The requested URL /cgi-bin/mapserv was not found on this server.
> 
> At this point I'm 90% sure the problem lies between safari and apache.
> Maybe it's time for a reference manual on apache.  Does anyone have any
> titles they would like to recommend?
> 
> Mike
> 
> Greetings,
> 
> New user to the list. I am installing mapserver
> on my MacBook Pro. The installation has progressed without error until I
> attempt
> to call the 'mapserv' cgi executable from safari; it returns the following
> error
> after running the final check as described in the documentation:
> 
> # Page 40, MapServer Documentation, Release 6.0.1; 4.1.8 Installation - The
> basic install.
> 
> # This is the final test to ensure mapserver is installed and functioning
> correctly.
> # When attempting to access the test URL, safari returns the following
> error:
> 
> # Test URL: http://localhost.com/cgi-bin/mapserv
> 
> # Safari error:
> 
> # safari can't open the page "http://localhost.com/cgi-bin/mapserv"; because
> the server
> # unexpectedly dropped the connection.
> 
> Mapserver version: 6.0.1
> Mac OS X version: 10.6.8
> Safari version: 5.1.2
> 
> My suspicion is the error is related to how mapserver and apache are
> communicating; however,
> not being apache literate, I don't know where to begin diagnosing the
> connection problem. I
> ran a syntax check on the httpd.conf file and it returned the following:
> 
> Michael-Badars-MacBook-Pro:bin bobby$ apachectl -t
> httpd: Could not reliably determine the server's fully qualified domain
> name, using
> Michael-Badars-MacBook-Pro.local for ServerName
> Syntax OK
> Michael-Badars-MacBook-Pro:bin bobby$
> 
> Listed below are details regarding my installation.
> 
> Thanks in advance for any help you can provide.
> 
> Mike Badar
> 
> 
> 
> 
> #
> # Map Server 6.0.1 "configure" script.
> #
> 
> # Author: Mike Badar
> # Date: 29 December, 2011
> # Version: 3
> 
> ./configure   \
>--with-curl-config=/usr/local/bin/curl-config \
>--with-gdal=/usr/local/bin/gdal-config\
>--with-geos=/usr/local/bin/geos-config\
>--with-ogr=/usr/local/bin/gdal-config \
>--with-postgis=/usr/local/pgsql/bin/pg_config \
>--with-xml2-config=/usr/local/bin/xml2-config \
>  \
>--with-agg=/usr/local \
>--with-freetype=/usr/local\
>--with-gd=/usr/local  \
>--with-httpd=/usr/local/apache2/bin/httpd \
>--with-jpeg=/usr/local\
>--with-proj=/usr/local\
>-