Quote:
Originally Posted by systems@pickzy.com
I cant run this
Code:
# svn import --username jerry --password [jerry] -m "Test import" /tmp/svn/ "http://10.0.0.251:80/svn/project_repo"
svn: E175002: Unexpected HTTP status 405 'Method Not Allowed' on '/svn/project_repo'
svn: E175002: Additional errors:
svn: E175002: PROPFIND request on '/svn/project_repo' failed: 405 Method Not Allowed
|
So it recognizes WebDAV commands but it isn't allowing any...
Quote:
Originally Posted by systems@pickzy.com
and i cant run also
Code:
#svnListParentPath on
bash: svnListParentPath: command not found
|
That is an Apache directive, not some command line command.
You should not use it anyway.
Quote:
Originally Posted by systems@pickzy.com
Code:
(..)
<Directory /svn>
Allow from all
</Directory>
|
PLEASE DO NOT add random stuff until you have a working configuration.
Quote:
Originally Posted by systems@pickzy.com
Code:
<Location /svn>
DAV svn
SVNParentPath on
|
This is NOT how the SVNParentPath directive is to be used. I suggest you read the
http://svnbook.red-bean.com/en/1.7/s...fig.httpd.html chapter in full.
To finish this off here is my Apache configuration.
/etc/httpd/conf.modules.d/00-dav.conf:
Code:
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
/etc/httpd/conf.modules.d/10-subversion.conf:
Code:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule dontdothat_module modules/mod_dontdothat.so
/etc/httpd/conf.d/subversion.conf:
Code:
<Location /svn>
DAV svn
SVNParentPath /var/www/svn
<LimitExcept GET PROPFIND OPTIONS REPORT>
AuthType Basic
AuthName "SVN authentication required"
AuthUserFile /etc/svn-users
Require valid-user
</LimitExcept>
</Location>
CustomLog logs/svn_logfile "%t %u %{SVN-ACTION}e" env=SVN-ACTION
This above work for me.
I have adapted it to what you use.
DO NOT CHANGE these until you know what you are doing.
*Please note: if you are replying then I expect you to:
0) have run these commands before:
Code:
chown -R root.root /etc/httpd
chcon -R -t httpd_config_t /etc/httpd/conf.modules.d /etc/httpd/conf.d
chown -R apache.apache /etc/svn-users /var/www/svn
chcon -R -t httpd_sys_rw_content_t /var/www/svn
/etc/init.d/httpd restart
and
1) add output of these to your reply:
Code:
cat /etc/httpd/conf.d/subversion.conf
find /var/www/svn/ -printf "%p %Z %m %u %g\n"
tac /var/log/httpd/* | grep -m30 "svn/"
always.