You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Mike Dewhirst <mi...@dewhirst.com.au> on 2005/03/07 03:48:38 UTC

rusty razorblade - part 1

I'm trying to get subversion happening with Apache2 on a SuSE 9.1 machine 
but have run into a (mental) block.

Reading chapter 6 of the svn-book it says Apache2 needs ...

	LoadModule dav_module         modules/mod_dav.so
	LoadModule dav_svn_module     modules/mod_dav_svn.so

Both of these .so files are in /usr/lib/apache2so that isn't a problem. The 
problem is figuring out where to nominate them in the Apache config stream.

Chapter 6 says /etc/apache2.httpd.conf but that file doesn't appear to do 
so  directly. Instead it nominates (on my system) 
/etc/apache2/sysconfig.d/loadmodule.conf.

I though this might be the spot until I read the warning at the top

<snipped from /etc/apache2/sysconfig.d/loadmodule.conf>
#
# Files in this directory are created at apache start time by 
/usr/sbin/rcapache2.
# Do not edit them!
#
# as listed in APACHE_MODULES (/etc/sysconfig/apache2)
LoadModule access_module	/usr/lib/apache2-prefork/mod_access.so
   .. blah
LoadModule cgi_module	/usr/lib/apache2-prefork/mod_cgi.so
LoadModule dir_module	/usr/lib/apache2-prefork/mod_dir.so
   .. blah
LoadModule userdir_module	/usr/lib/apache2-prefork/mod_userdir.so
#
</snipped>

... so I looked at /usr/sbin/rcapache2 which is a bash script and it calls 
usr/share/apache2/get_module_list

usr/share/apache2/get_module_list is also a bash script which calls 
/etc/sysconfig/apache2/load_configuration before writing out the above 
snipped loadmodule.conf file

The /etc/sysconfig/apache2/load_configuration script points to 
/etc/sysconfig/apache2 which is apparently NOT the main apache 
configuration file. That honour is reserved for /etc/apache2/httpd.conf 
nominated in Chapter 6.

I started writing this email to beg for assistance or a rusty razorblade so 
I could end it all peacefully. However, I chanced upon a space-separated 
list of modules in /etc/sysconfig/apache2 and I quietly inserted dav 
followed by dav_svn in that list - in the correct alphabetic sequence.

Now my task is to go back to Chapter 6 and see what has to be done next.

So this email is now really a progress report. I'll let you know how I make 
out with the rest later. I can feel a whinge coming on so I'd better get 
back to work.

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Progress installing svn (Was: rusty razorblade)

Posted by Eric Penfold <er...@eponus.com>.
Mike Dewhirst wrote:
> Ben
> At 11:26 am 8/03/2005, Ben Collins-Sussman wrote:
> 
>> On Mar 7, 2005, at 5:59 PM, Mike Dewhirst wrote:
>>
>>>  Could not read status line: connection was closed by server. 
>>> (http://192.168.0.11)
>>
>> This message usually means that the httpd process crashed.  Look at 
>> the apache errorlog for details.
> 
> Finally found the log. Should have thought of it before asking - but I'm 
> none the wiser at the moment. Here are the last few lines ...
> 
> [Tue Mar 08 10:40:47 2005] [warn] Init: Session Cache is not configured 
> [hint: SSLSessionCache]
> [Tue Mar 08 10:40:47 2005] [notice] suEXEC mechanism enabled (wrapper: 
> /usr/sbin/suexec2)
> [Tue Mar 08 10:40:48 2005] [notice] Apache/2.0.49 (Linux/SuSE) 
> configured -- resuming normal operations
> [Tue Mar 08 10:41:19 2005] [notice] child pid 14808 exit signal 
> Segmentation fault (11)
> .. more like that ...
> [Tue Mar 08 11:03:30 2005] [notice] child pid 14967 exit signal 
> Segmentation fault (11)
> [Tue Mar 08 11:04:48 2005] [notice] caught SIGTERM, shutting down
> 
> Could give me a hint about SSLSessionCache please?

The hint is that it wants to be set - although not doing so is unlikely 
to cause this particular crash, especially as you dont seem to be using 
https.

For more info, see:
http://httpd.apache.org/docs-2.0/mod/mod_ssl.html#sslsessioncache

It defaults to "none", if not specified;
My vanilla FreeBSD Apache2 installs have it set to:

SSLSessionCache         dbm:/var/run/ssl_scache

> 
> Thanks
> 
> Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Progress installing svn (Was: rusty razorblade)

Posted by Mike Dewhirst <mi...@dewhirst.com.au>.
Ben
At 11:26 am 8/03/2005, Ben Collins-Sussman wrote:
>On Mar 7, 2005, at 5:59 PM, Mike Dewhirst wrote:
>>  Could not read status line: connection was closed by server. 
>> (http://192.168.0.11)
>This message usually means that the httpd process crashed.  Look at the 
>apache errorlog for details.

Finally found the log. Should have thought of it before asking - but I'm 
none the wiser at the moment. Here are the last few lines ...

[Tue Mar 08 10:40:47 2005] [warn] Init: Session Cache is not configured 
[hint: SSLSessionCache]
[Tue Mar 08 10:40:47 2005] [notice] suEXEC mechanism enabled (wrapper: 
/usr/sbin/suexec2)
[Tue Mar 08 10:40:48 2005] [notice] Apache/2.0.49 (Linux/SuSE) configured 
-- resuming normal operations
[Tue Mar 08 10:41:19 2005] [notice] child pid 14808 exit signal 
Segmentation fault (11)
.. more like that ...
[Tue Mar 08 11:03:30 2005] [notice] child pid 14967 exit signal 
Segmentation fault (11)
[Tue Mar 08 11:04:48 2005] [notice] caught SIGTERM, shutting down

Could give me a hint about SSLSessionCache please?

Thanks

Mike



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Progress installing svn (Was: rusty razorblade)

Posted by Ben Collins-Sussman <su...@collab.net>.
On Mar 7, 2005, at 5:59 PM, Mike Dewhirst wrote:

>  Could not read status line: connection was closed by server. 
> (http://192.168.0.11)
>
>

This message usually means that the httpd process crashed.  Look at the 
apache errorlog for details.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Progress installing svn (Was: rusty razorblade)

Posted by Mike Dewhirst <mi...@dewhirst.com.au>.
Sean

Thank you for your notes. I haven't followed them adequately because I'm 
getting a connection error ...

(Konqueror) http://localhost/repos/testing --- gives Connection to host 
localhost is broken

and via TortoiseSVN on a WinXP machine on selecting Import, after entering 
the URL ...

http://192.168.0.11/repos/testing --- gives PROPFIND request failed on 
'/repos'/testing ... Could not read status line: connection was closed by 
server. (http://192.168.0.11)

I have checked all the conf files and I think they are all OK.

Any ideas?

TIA

Mike

At 06:51 pm 7/03/2005, Sean Moss-Pultz wrote:
>I've attached my notes on how to install using the same setup as you. Hope 
>they help you.
>
>-Sean
>
>On 7 Mar 05, at 11:48 AM, Mike Dewhirst wrote:
>
>>I'm trying to get subversion happening with Apache2 on a SuSE 9.1 machine 
>>but have run into a (mental) block.
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Much progress (was rusty razorblade - part 2)

Posted by Mike Dewhirst <mi...@dewhirst.com.au>.
Thanks to Sean and others - I am nearly there. I'm new to Linux and svn so 
please bear with me.

Here is a portion of etc/apache2/subversion.conf which IS working :) with 
an embedded tag showing where it can be made to fail ...

# <working>
<Location /repos>
    DAV svn
    SVNParentPath /srv/svn/repos

    # <fails>
    # our access control policy
    # AuthzSVNAccessFile /srv/svn/user_access/access-policy
    # </fails>

    #<moved from LimitExcept>
    AuthType Basic
    AuthName "repositories"
    AuthUserFile /srv/svn/user_access/auth-file
    # only authenticated users access repositories
    Require valid-user
    #</moved from LimitExcept>

    # move 'Require valid-user' to here
    # to provide public read only access
    # and require a valid user for GET etc below
    <LimitExcept GET PROPFIND OPTIONS REPORT>
       #
    </LimitExcept>
</Location>
# </works>

When AuthzSVNAccessFile is un-commented userid's and passwords stop being 
recognised. Here is the content of the above AuthzSVNAccessFile ...

# groups and access policy
[groups]
testing = miked
everyone = miked, rob

[testing:/repos/testing]
@testing = rw
@everyone = r
#eof

Any ideas ??

TIA very much

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: rusty razorblade - part 1

Posted by Mike Dewhirst <mi...@dewhirst.com.au>.
Sean

Many thanks - I'm on to it. Might be tomorrow before I can focus though :)

Cheers

Mike

At 06:51 pm 7/03/2005, Sean Moss-Pultz wrote:
>I've attached my notes on how to install using the same setup as you. Hope 
>they help you.
>
>-Sean
>
>On 7 Mar 05, at 11:48 AM, Mike Dewhirst wrote:
>
>>I'm trying to get subversion happening with Apache2 on a SuSE 9.1 machine 
>>but have run into a (mental) block.
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: rusty razorblade - part 1

Posted by Sean Moss-Pultz <se...@moss-pultz.com>.
I've attached my notes on how to install using the same setup as you. 
Hope they help you.

-Sean

On 7 Mar 05, at 11:48 AM, Mike Dewhirst wrote:

> I'm trying to get subversion happening with Apache2 on a SuSE 9.1 
> machine but have run into a (mental) block.