I am in the process of trying to migrate our server, which uses BitNami Redmine Stack, to a new computer. Some details on each of the machines:
Old machine:
Windows XP x86
Redmine version: 1.1.3
New machine:
Windows 7 x64
Redmine version: 2.3.1
The installation was proceeding very smoothly according to the guide at Native Installers Quick Start Guide#How to upgrade the full Stack migrating the data
and I completed all of the steps, including migrating the old server's data into the new mysql database, and then I continued beyond the point listed in that guide to migrate everything using the rake command "rake db:migrate RAILS_ENV='production'", and at that point, my new install was working well.
However, the old install also included integration with subversion, and so I needed to migrate that to the new installation as well. On the old installation, the files mod\_dav\_svn.so and mod\_authz\_svn.so were present in the apache2/modules folder, and the httpd.conf file looked as follows (without the slashes in front of each pound symbol - Markup and I do not get along well):
...
\#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
\#LoadModule cache_module modules/mod_cache.so
\#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
\#LoadModule charset_lite_module modules/mod_charset_lite.so
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
\#LoadModule dav_lock_module modules/mod_dav_lock.so
LoadModule dav_svn_module modules/mod_dav_svn.so
\#LoadModule dbd_module modules/mod_dbd.so
...
\#SVN location and settings
"<" Location /svn/ ">" #no quotes were here but I'm new to Markdown so I needed this line to show up
DAV svnSVNListParentPath on
SVNParentPath "C:/Repositories/"
SVNIndexXSLT "/svnindex.xsl"
AuthName "Subversion Repositories"
AuthType Basic
AuthBasicAuthoritative Off
AuthUserFile "C:/Repositories/htpasswd"
AuthzSVNAccessFile "C:/Repositories/authz"
\\#AuthMySQL section
AuthMySQLEnable On
AuthMySQLAuthoritative On
AuthMySQLHost localhost
AuthMySQLPort 3306
AuthMySQLDB bitnami_redmine
AuthMySQLUser bitnami
AuthMySQLPassword c02b6d2ed1
AuthMySQLUserTable users_auth_external
AuthMySQLGroupTable users_auth_external
AuthMySQLNameField username
AuthMySQLPasswordField passwd
AuthMySQLGroupField groups
AuthMySQLPwEncryption sha1
\\#LDAP Auth, abandoned for complexity and slow performance.
\\#AuthzLDAPAuthoritative off
\\#AuthLDAPBindDN "cn=manager,cn=internal,dc=kdy,dc=linux"
\\#AuthLDAPBindPassword "F/CfncZDOareNx7+"
\\#AuthLDAPURL "ldap://192.168.3.1:389/dc=kdy,dc=linux?uid"
require valid-user
"<" /Location ">"
Following this example code from my old installation and the guide, I added the lines
LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule dav_svn_module modules/mod_dav_svn.so
and uncommented
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
in the httpd.conf of my new installation. Lastly, I copied the entire Location block from the old httpd.conf to the new httpd.conf, reasoning that if it worked in the old install, it should work equally well in the updated version. I immediately realized that I would have to change the line
AuthMySQLPassword c02b6d2ed1
So I did so accordingly, going to /installdir/apps/redmine/htdocs/config/database.yml and copying the password found there to this line.
I also assured that the repository still existed at C:/Repositories and that the authorization files were still present.
The next step was to restart the Apache server, so I did so using the redmine manager tool - at this point, Apache failed to restart. There was no error documented in the /installdir/apache2/logs/error.log and the only information I was given was on the "Application log" in the redmine manager tool, which said
Starting Apache Web Server...
Exit code: 1
Stdout:Stderr:
Unable to start apache
I have been unable to track or fix this error. I have narrowed it down and know that the issue is with adding the lines
LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule dav_svn_module modules/mod_dav_svn.so
or with the Location block, suggesting that something is wrong with these files in the new install, or that something is wrong with the way Apache uses them, or that something is wrong with my Location block which, to be honest, I still don't understand. I know that it must be these lines of code because without these lines, the Apache service will start and run flawlessly, complete with the data migrated from the old server's redmine_backup.sql. Can anyone help me diagnose this error?
If you are going to suggest that it is the fact that I'm using 64-bit Windows 7, I thought of that too - so I installed 32-bit Windows 7 and followed precisely these same steps, to no avail.