<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">hmm.. &quot;which apachectl&quot; returns /usr/sbin/apachectl and it&#39;s not a softlink. I believe it&#39;s the OSX default server. So i uninstalled the mapserver/apache2 then renamed the apachectl:</span><div style="font-family:arial,sans-serif;font-size:13px">
<p>sudo mv /usr/sbin/apachectl /usr/sbin/apachectl_original</p><p>then</p><p>sudo port install mapserver +apache2</p><p>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 <a href="http://localhost/cgi-bin/mapserv" target="_blank">http://localhost/cgi-bin/mapserv</a> it returns an error and the following is in the error_log:</p>
<p></p><p>/opt/local/apache2/cgi-bin/mapserv: error: `/opt/local/apache2/cgi-bin/.libs/mapserv&#39; does not exist</p><p>There is a /opt/local/bin/mapserv, though. Should i modify the script to point to this directory?</p>
<p>thanks!</p></div></div>