You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kevin Christensen <ks...@cdrgts.com> on 2011/06/20 22:21:38 UTC

[users@httpd] Installing Subversion support for Apache

I'm trying to get Apache setup to handle Subversion on a Windows Server 
2008 R2 SP1 machine. I'm having problems with an error that gets 
generated after I've modified the httpd file in the conf folder to load 
the necessary modules. I get the following error when I try to start the 
Apache server:

"httpd.exe: Syntax error on line 83 of C:/Program Files (x86)/Apache 
Software Foundation/Apache2.2/conf/httpd.conf: LoadModule takes two 
arguments, a module name and the name of a shared object file to load it 
from"

The line the error specifically refers to is the following:
#LoadModule dav_module modules/mod_dav.so

I'm following the manual documentation that came with Tortiose SVN in 
regards to setting up the Apache server to work with Subversion. I've 
also checked the other resource manuals (Apache and Subversion manuals 
relating to the same configuration operations) and they're giving nearly 
the same instructions on setup, which as far as I can tell I'm following 
directly.  I've explicitly listed the directory path and included quotes 
to account for the spaces in the path name as such:

#LoadModule dav_module "C:/Program Files (x86)/Apache Software 
Foundation/Apache2.2/modules/mod_dav.so"

It still generates the error. I don't know if I have a version mismatch 
either but I'm using the 1.6.17 Subversion installer with the 2.2.19 
open SSL Apache installer. The error message isn't incredibly 
informative either since I'm not familiar enough with how it deals with 
the module loading instructions given to it by the httpd.conf file. I'm 
assuming that even with a specific path directory to go to it seems to 
not find the module or isn't able to access it.


-Kevin Christensen

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Installing Subversion support for Apache

Posted by Ashwin Kesavan <as...@yahoo-inc.com>.

From: Yehuda Katz [mailto:yehuda@ymkatz.net]
Sent: Tuesday, June 21, 2011 10:27 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Installing Subversion support for Apache

On Tue, Jun 21, 2011 at 12:35 PM, Kevin Christensen <ks...@cdrgts.com>> wrote:
On 6/20/2011 10:11 PM, Yehuda Katz wrote:
On Mon, Jun 20, 2011 at 4:21 PM, Kevin Christensen <ks...@cdrgts.com>> wrote:
"httpd.exe: Syntax error on line 83 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from"

The line the error specifically refers to is the following:
LoadModule dav_module modules/mod_dav.so

When I had a similar problem, in one case it was caused by non-printing characters in the middle of the line and in another by a bad line ending. Your line endings should be consistent (on my Windows servers I use CRLF).
Since you are on Windows, a program like Notepad++ can quickly help you find problems like that.

Not just notepad ++ in windows, but we can do the same in Linux as well though not through notepad++ . The good old vim (which is a part of most modern linux distribution and far more efficient than notepad++) can show that. Start vim like this.
                Vim -b <filename>
And it will show the non printable characters in your file. Then there is this versatile unix2dos and dos2unix which will convert the file endings accordingly. This is useful if you worked on files windows environment and then transferred it to Linux. This what most inexperienced in using  unix developer or sys admin (windows sys admin now forced to take care of *nix ) mostly do.

                HTH

                --ashwin

Re: [users@httpd] Installing Subversion support for Apache

Posted by Kevin Christensen <ks...@cdrgts.com>.
On 6/21/2011 10:57 AM, Yehuda Katz wrote:
> On Tue, Jun 21, 2011 at 12:35 PM, Kevin Christensen 
> <kschris@cdrgts.com <ma...@cdrgts.com>> wrote:
>
>     On 6/20/2011 10:11 PM, Yehuda Katz wrote:
>>     On Mon, Jun 20, 2011 at 4:21 PM, Kevin Christensen
>>     <kschris@cdrgts.com <ma...@cdrgts.com>> wrote:
>>
>>         "httpd.exe: Syntax error on line 83 of C:/Program Files
>>         (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf:
>>         LoadModule takes two arguments, a module name and the name of
>>         a shared object file to load it from"
>>
>>         The line the error specifically refers to is the following:
>>
>     LoadModule dav_module modules/mod_dav.so
>
>
> When I had a similar problem, in one case it was caused by 
> non-printing characters in the middle of the line and in another by a 
> bad line ending. Your line endings should be consistent (on my Windows 
> servers I use CRLF).
> Since you are on Windows, a program like Notepad++ can quickly help 
> you find problems like that.
>
> - Y

Thanks. I took your recommendation, downloaded Notepad++ and ran it 
through there. I definitely had some extraneous characters that I 
cleared out so Apache is now loading those modules and working.

Re: [users@httpd] Installing Subversion support for Apache

Posted by Yehuda Katz <ye...@ymkatz.net>.
On Tue, Jun 21, 2011 at 12:35 PM, Kevin Christensen <ks...@cdrgts.com>wrote:

> **
> On 6/20/2011 10:11 PM, Yehuda Katz wrote:
>
>  On Mon, Jun 20, 2011 at 4:21 PM, Kevin Christensen <ks...@cdrgts.com>wrote:
>
>> "httpd.exe: Syntax error on line 83 of C:/Program Files (x86)/Apache
>> Software Foundation/Apache2.2/conf/httpd.conf: LoadModule takes two
>> arguments, a module name and the name of a shared object file to load it
>> from"
>>
>> The line the error specifically refers to is the following:
>>
> LoadModule dav_module modules/mod_dav.so
>

When I had a similar problem, in one case it was caused by non-printing
characters in the middle of the line and in another by a bad line ending.
Your line endings should be consistent (on my Windows servers I use CRLF).
Since you are on Windows, a program like Notepad++ can quickly help you find
problems like that.

- Y

Re: [users@httpd] Installing Subversion support for Apache

Posted by Kevin Christensen <ks...@cdrgts.com>.
On 6/20/2011 10:11 PM, Yehuda Katz wrote:
> On Mon, Jun 20, 2011 at 4:21 PM, Kevin Christensen <kschris@cdrgts.com 
> <ma...@cdrgts.com>> wrote:
>
>     "httpd.exe: Syntax error on line 83 of C:/Program Files
>     (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf:
>     LoadModule takes two arguments, a module name and the name of a
>     shared object file to load it from"
>
>     The line the error specifically refers to is the following:
>     #LoadModule dav_module modules/mod_dav.so
>
> Not possible. Any line that begins with a # is a comment and will not 
> be parsed by Apache.
> Please double check your line numbers.
>
> - Yehuda
Whoops. That's a typo in my mail, my apologies. I run the file with the 
line un-commented so it looks like this:

LoadModule dav_module modules/mod_dav.so



-- 
Kevin Christensen
Hardware Development Engineer
Continental Divide Robotics
Office: 720-536-3226


Re: [users@httpd] Installing Subversion support for Apache

Posted by Yehuda Katz <ye...@ymkatz.net>.
On Mon, Jun 20, 2011 at 4:21 PM, Kevin Christensen <ks...@cdrgts.com>wrote:

> "httpd.exe: Syntax error on line 83 of C:/Program Files (x86)/Apache
> Software Foundation/Apache2.2/conf/**httpd.conf: LoadModule takes two
> arguments, a module name and the name of a shared object file to load it
> from"
>
> The line the error specifically refers to is the following:
> #LoadModule dav_module modules/mod_dav.so
>
Not possible. Any line that begins with a # is a comment and will not be
parsed by Apache.
Please double check your line numbers.

- Yehuda