mapserver with apache2 on Mavericks

Ryan Schmidt ryandesign at macports.org
Fri Feb 14 09:51:28 PST 2014


On Feb 13, 2014, at 18:51, Nick Wharton wrote:

> hmm.. "which apachectl" returns /usr/sbin/apachectl and it's not a softlink. I believe it's the OSX default server. So i uninstalled the mapserver/apache2 then:
> sudo mv /usr/sbin/apachectl /usr/sbin/apachectl_original

You should probably not modify Apple-provided software. But you’re right, /usr/sbin/apachectl is for Apple’s apache, so you won’t be using that if you’re interested in controlling MacPorts apache.


> then
> 
> sudo port install mapserver +apache2
> 
> and run /opt/local/apache2/bin/apachectl start (after changing ServerName). This time the right apache starts and the logs are updated. If i enter http://localhost/cgi-bin/mapserv it returns an error and the following is in the error_log:
> 
> 
> /opt/local/apache2/cgi-bin/mapserv: error: `/opt/local/apache2/cgi-bin/.libs/mapserv' does not exist

Hmm. I’ll have to install the port myself and see if I can reproduce that problem.



More information about the macports-users mailing list