Mac OS - Built SVN from source, now Apache2 not loading sites
- by Geuis
This relates to another question I asked earlier today.
I built SVN 1.6.2 from source. In the process, it has completely screwed up my dev environment.
After I built SVN, Apache wasn't loading. It was giving me this error:
Syntax error on line 117 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec
/apache2/mod_dav_svn.so into server: dlopen(/usr/libexec/apache2/mod_dav_svn.so, 10): no
suitable image found. Did find:\n\t/usr/libexec/apache2/mod_dav_svn.so: mach-o, but
wrong architecture
It appears that SVN over-wrote the old mod_dav_svn.so and I am not able to get it to build as FAT, and I can't recover whatever was originally there.
I resolved this(temporarily?) by commenting out the line that was loading the mod_dav_svn.so and got Apache to start at this point.
However, even though Apache is running I am now getting this error when trying to access my dev sites:
Directory index forbidden by Options directive: /usr/share/tomcat6/webapps/ROOT/
I have Apache2 sitting in front of Tomcat6. I access my local dev site using the internal name "http://localthesite". I have had virtual directories set up that have worked until this SVN debacle.
Tomcat is installed at /usr/local/apache-tomcat, and webapps is /usr/local/apache-tomcat/webapps.
Our production servers deploy tomcat to /usr/share/tomcat6, so I have symlinks setup on my system to replicate this as well. These point back to the actual installation path. This has all been working fine as well.
None of our configurations for Apache2, Tomcat, or .htaccess have changed. Over the weekend, I performed a "Repair Disk Permissions" on the system. This was before I discovered the mod_dav_svn.so problem.
I have been reading up on this all morning and the most common answer is that there is an Options -Indexes set. We have this in a config file, but it was there before and when I removed it during testing, I still got the same errors from Apache.
At this point, I'm assuming I either totally borked the native Apache2 installation on this Mac, or that there is a permissions error somewhere that I'm missing. The permissions error could be from the SVN installation, or from my repair process.
Does anyone have any idea what could be the problem? I'm totally blocked right now and have no idea where to check next.