LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-31-2010, 05:12 AM   #1
mikcsabee
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
SVN passwd file problem on Debian 5.0.7 and Apache2


Hi!
I have a Debian 5.0.7 installed to my server. I try to install Apache and SVN to this server. I use this tutorial: http://www.howtoforge.com/subversion...-ubuntu-server
But is unfortunately not working.
My apache virtual host configuration file is:
Code:
<VirtualHost *:80>
  ServerName svn.test
  <Location /test>
    DAV svn
    AuthType Basic
    AuthName "svn.test"
    AuthUserFile /var/local/svn/svn.test/conf/passwd
    AuthzSVNAccessFile /var/local/svn/svn.test/conf/authz
    SVNPath /var/local/svn/svn.test
    Require valid-user
  </Location>
  CustomLog /var/log/apache2/svn.test/access.log combined
  ErrorLog /var/log/apache2/svn.test/error.log
</VirtualHost>
This passwd file containing 1 user:
Code:
user:*****(I hide this :))
The rights for the passwd file:
Code:
-rwxrwxrwx 1 www-data www-data   24 Dec 30 19:50 passwd
And apache2 is running like this:
Code:
ps axu | grep apache2
root     21597  0.0  4.3  14040  2820 ?        Ss   Dec30   0:00 /usr/sbin/apache2 -k start
www-data 21599  0.0  4.4  14280  2908 ?        S    Dec30   0:00 /usr/sbin/apache2 -k start
www-data 21601  0.0  4.3  14208  2856 ?        S    Dec30   0:00 /usr/sbin/apache2 -k start
www-data 21603  0.0  4.4  14280  2908 ?        S    Dec30   0:00 /usr/sbin/apache2 -k start
www-data 21604  0.0  4.3  14208  2856 ?        S    Dec30   0:00 /usr/sbin/apache2 -k start
www-data 21605  0.0  3.2  14040  2156 ?        S    Dec30   0:00 /usr/sbin/apache2 -k start
www-data 21641  0.0  3.2  14040  2160 ?        S    Dec30   0:00 /usr/sbin/apache2 -k start
And if I try to login to my page I got an "Internal Server Error" page.
And my error is in the apache log is this:
Code:
(13)Permission denied: Could not open password file: /var/local/svn/svn.test/conf/passwd
So I'm a little bit confused about it. The apache2 should have rights to open this file. I checked it, the file is exist and the apache2 is have rights for it. I don't understand it.
Have anybody idea about it?
 
Old 12-31-2010, 07:48 AM   #2
thegeek
Member
 
Registered: Oct 2009
Location: Amsterdam
Distribution: CentOS,Fedora,Puppy
Posts: 62

Rep: Reputation: 20
Hello

Look at the permissions of the directory below your passwd file, eg.

ls -ld /var/local/svn/svn.test/conf

It can be that the user www-data is allowed to see the file, but the directory containing the file is not allowed, therefore you get permission denied error.

HTH

Neil
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem while updating file in svn ashraflinux1@gmail.com Linux - Server 1 01-21-2010 06:58 PM
SVN + LDAP + Apache in Debian Can't open file /db/txn-current-lock Permission denied Ricio Linux - General 3 06-14-2009 04:46 PM
anon svn read-only over apache: '.svn/entries': No such file hedpe Linux - Software 2 04-29-2009 06:31 AM
/etc/passwd File Problem sobia Linux - General 3 02-20-2007 05:04 AM
[SVN+Apache2] SVNParentPath directive Creak Linux - Software 2 07-05-2005 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration