LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 12-30-2014, 03:21 AM   #16
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600

Attach your /etc/httpd/conf.d/subversion.conf or post its complete contents between [code]Text here.[/code] tags?
 
Old 12-30-2014, 03:34 AM   #17
systems@pickzy.com
LQ Newbie
 
Registered: Dec 2014
Posts: 24

Original Poster
Rep: Reputation: Disabled
"subversion.conf "file

Code:
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

#
# Example configuration to enable HTTP access for a directory
# containing Subversion repositories, "/var/www/svn".  Each repository
# must be both:
#
#   a) readable and writable by the 'apache' user, and
#
#   b) labelled with the 'httpd_sys_content_t' context if using
#   SELinux
#

#
# To create a new repository "http://localhost/repos/stuff" using
# this configuration, run as root:
#
#   # cd /var/www/svn
#   # svnadmin create stuff
#   # chown -R apache.apache stuff
#   # chcon -R -t httpd_sys_content_t stuff
#

<Directory /svn>
Allow from all
</Directory>
<Location /svn>
   DAV svn
  SVNParentPath on
   SVNParentPath /var/www/svn

   # Limit write permission to list of valid users.
   <LimitExcept GET PROPFIND OPTIONS REPORT>
      # Require SSL connection for password protection.
      # SSLRequireSSL

      AuthType Basic
      AuthName "Authorization Realm"
      AuthUserFile /etc/svn-usres
      Require valid-user
   </LimitExcept>
</Location>
 
Old 12-30-2014, 04:29 AM   #18
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You told us before you would be using "AuthUserFile /etc/svn-users" but you actually are using "AuthUserFile /etc/svn-usres"???
 
1 members found this post helpful.
Old 12-30-2014, 04:46 AM   #19
systems@pickzy.com
LQ Newbie
 
Registered: Dec 2014
Posts: 24

Original Poster
Rep: Reputation: Disabled
sorry sorry!!!

i was tried by changing more passwd files but no one method is working



now i'm using "svn-users" buddy

pls give me a currect one solution friend
 
Old 12-30-2014, 05:43 AM   #20
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by systems@pickzy.com View Post
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 View Post
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 View Post
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 View Post
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.
 
Old 12-30-2014, 08:55 AM   #21
systems@pickzy.com
LQ Newbie
 
Registered: Dec 2014
Posts: 24

Original Poster
Rep: Reputation: Disabled
sorry boss....i can't

i dont have the following directory

#/etc/httpd/conf.modules.d


what to do
 
Old 12-30-2014, 09:42 AM   #22
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
That's OK, just check where your "LoadModule" statements are. They may be in /etc/httpd/conf/httpd.conf.
 
1 members found this post helpful.
Old 12-30-2014, 10:47 PM   #23
systems@pickzy.com
LQ Newbie
 
Registered: Dec 2014
Posts: 24

Original Poster
Rep: Reputation: Disabled
thanks boss....

yeah the followings are in /etc/httpd/conf/httpd.conf

I thing these are the loadmodules


Code:
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so

# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#Include conf.d/*.conf

i think some modules are not loaded right?


then what to do friend

Last edited by systems@pickzy.com; 12-30-2014 at 10:50 PM.
 
Old 12-31-2014, 04:59 AM   #24
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If
Code:
httpd -D DUMP_MODULES|egrep "(dav_|authz_svn|dontdothat)"|nl
returns 6 lines you're good to go.
 
Old 12-31-2014, 07:06 AM   #25
systems@pickzy.com
LQ Newbie
 
Registered: Dec 2014
Posts: 24

Original Poster
Rep: Reputation: Disabled
sorry for that

it returns only two lines..

[root@svn Desktop]# httpd -D DUMP_MODULES|egrep "(dav_|authz_svn|dontdothat)"|nl
Syntax OK
1 dav_module (shared)
2 dav_fs_module (shared)



can u guess what is the problem ??
i cant guess why this is doing like this...pls help me boss...
 
Old 12-31-2014, 10:28 AM   #26
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by systems@pickzy.com View Post
Code:
#
# Load config files from the config directory "/etc/httpd/conf.d".
#Include conf.d/*.conf
Somehow that last line is disabled?..
That means your "subversion.conf" (which is located in /etc/httpd/conf.d/) won't be loaded.
Enable it and try again.
 
1 members found this post helpful.
Old 01-01-2015, 11:19 PM   #27
systems@pickzy.com
LQ Newbie
 
Registered: Dec 2014
Posts: 24

Original Poster
Rep: Reputation: Disabled
After changinging this code
Code:
# Load config files from the config directory "/etc/httpd/conf.d".
#Include conf.d/*.conf

As

Code:
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf
I got this output
Code:
 [root@svn conf]# httpd -D DUMP_MODULES|egrep "(dav_|authz_svn|dontdothat)"|nl
Syntax OK
     1	 dav_module (shared)
     2	 dav_fs_module (shared)
     3	 dav_svn_module (shared)
     4	 authz_svn_module (shared)
I dont knw how to load a "/etc/httpd/conf.d/" this directory ..Is this right ???
friend??

output of

find /var/www/svn/ -printf "%p %Z %m %u %g\n"

Code:
[root@svn Desktop]# find /var/www/svn/ -printf "%p %Z %m %u %g\n"
/var/www/svn/ unconfined_u:object_r:httpd_sys_rw_content_t:s0 700 apache apache
/var/www/svn/project_repo unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/README.txt unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/format unconfined_u:object_r:httpd_sys_rw_content_t:s0 440 apache apache
/var/www/svn/project_repo/conf unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/conf/authz unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/conf/hooks-env.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/conf/passwd unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/conf/svnserve.conf unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/txn-current-lock unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/current unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/txn-current unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/transactions unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/fs-type unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/txn-protorevs unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/uuid unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/revprops unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/revprops/0 unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/revprops/0/0 unconfined_u:object_r:httpd_sys_rw_content_t:s0 440 apache apache
/var/www/svn/project_repo/db/format unconfined_u:object_r:httpd_sys_rw_content_t:s0 440 apache apache
/var/www/svn/project_repo/db/write-lock unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/min-unpacked-rev unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/revs unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/revs/0 unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/revs/0/0 unconfined_u:object_r:httpd_sys_rw_content_t:s0 440 apache apache
/var/www/svn/project_repo/db/fsfs.conf unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/hooks unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/start-commit.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/post-unlock.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/post-lock.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/pre-unlock.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/pre-commit.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/pre-revprop-change.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/post-revprop-change.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/pre-lock.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/post-commit.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/locks unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/locks/db-logs.lock unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/locks/db.lock unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
[root@svn Desktop]# find /var/www/svn/ -printf "%p %Z %m %u %g\n"
/var/www/svn/ unconfined_u:object_r:httpd_sys_rw_content_t:s0 700 apache apache
/var/www/svn/project_repo unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/README.txt unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/format unconfined_u:object_r:httpd_sys_rw_content_t:s0 440 apache apache
/var/www/svn/project_repo/conf unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/conf/authz unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/conf/hooks-env.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/conf/passwd unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/conf/svnserve.conf unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/txn-current-lock unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/current unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/txn-current unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/transactions unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/fs-type unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/txn-protorevs unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/uuid unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/revprops unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/revprops/0 unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/revprops/0/0 unconfined_u:object_r:httpd_sys_rw_content_t:s0 440 apache apache
/var/www/svn/project_repo/db/format unconfined_u:object_r:httpd_sys_rw_content_t:s0 440 apache apache
/var/www/svn/project_repo/db/write-lock unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/min-unpacked-rev unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/db/revs unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/revs/0 unconfined_u:object_r:httpd_sys_rw_content_t:s0 2750 apache apache
/var/www/svn/project_repo/db/revs/0/0 unconfined_u:object_r:httpd_sys_rw_content_t:s0 440 apache apache
/var/www/svn/project_repo/db/fsfs.conf unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/hooks unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/start-commit.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/post-unlock.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/post-lock.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/pre-unlock.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/pre-commit.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/pre-revprop-change.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/post-revprop-change.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/pre-lock.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/hooks/post-commit.tmpl unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/locks unconfined_u:object_r:httpd_sys_rw_content_t:s0 750 apache apache
/var/www/svn/project_repo/locks/db-logs.lock unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
/var/www/svn/project_repo/locks/db.lock unconfined_u:object_r:httpd_sys_rw_content_t:s0 640 apache apache
And another one output for
"tac /var/log/httpd/* | grep -m30 "svn/"

Code:
[root@svn Desktop]# tac /var/log/httpd/* | grep -m30 "svn/"
10.0.0.251 - - [02/Jan/2015:10:52:06 -0500] "GET /svn/ HTTP/1.1" 404 280 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [02/Jan/2015:10:52:01 -0500] "GET /svn/project_repo/ HTTP/1.1" 404 293 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [02/Jan/2015:10:51:58 -0500] "GET /svn/project_repo HTTP/1.1" 404 292 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [02/Jan/2015:10:51:36 -0500] "GET /var/www/svn/project_repo HTTP/1.1" 404 300 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [02/Jan/2015:10:23:48 -0500] "GET /svn/ HTTP/1.1" 404 280 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [02/Jan/2015:10:23:39 -0500] "GET /svn/ HTTP/1.1" 404 278 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [30/Dec/2014:15:52:42 -0500] "GET /var/www/svn/site HTTP/1.1" 404 290 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [30/Dec/2014:15:52:20 -0500] "GET /svn/ HTTP/1.1" 404 278 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [30/Dec/2014:14:12:54 -0500] "PROPFIND /svn/repository1 HTTP/1.1" 405 319 "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [30/Dec/2014:14:12:54 -0500] "OPTIONS /svn/repository1 HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [30/Dec/2014:14:12:54 -0500] "OPTIONS /svn/repository1 HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [30/Dec/2014:14:11:22 -0500] "PROPFIND /svn/repository1 HTTP/1.1" 405 319 "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [30/Dec/2014:14:11:22 -0500] "OPTIONS /svn/repository1 HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [30/Dec/2014:14:11:22 -0500] "OPTIONS /svn/repository1 HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [30/Dec/2014:12:16:07 -0500] "GET /svn/ HTTP/1.1" 404 278 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [30/Dec/2014:12:16:03 -0500] "GET /svn/ HTTP/1.1" 404 278 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [30/Dec/2014:11:35:52 -0500] "GET /svn/ HTTP/1.1" 404 278 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [30/Dec/2014:11:35:41 -0500] "GET /var/www/svn/ HTTP/1.1" 404 286 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [30/Dec/2014:11:35:26 -0500] "GET /svn/ HTTP/1.1" 404 278 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [30/Dec/2014:11:28:22 -0500] "PROPFIND /svn/project_repo HTTP/1.1" 405 318 "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [30/Dec/2014:11:28:22 -0500] "OPTIONS /svn/project_repo HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [30/Dec/2014:11:28:22 -0500] "OPTIONS /svn/project_repo HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [30/Dec/2014:11:18:48 -0500] "GET /svn/ HTTP/1.1" 404 278 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
10.0.0.251 - - [30/Dec/2014:10:53:14 -0500] "PROPFIND /svn/project_repo HTTP/1.1" 405 318 "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [30/Dec/2014:10:53:14 -0500] "OPTIONS /svn/project_repo HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [30/Dec/2014:10:53:14 -0500] "OPTIONS /svn/project_repo HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
::1 - - [30/Dec/2014:10:52:14 -0500] "PROPFIND /svn/project_repo HTTP/1.1" 405 317 "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
::1 - - [30/Dec/2014:10:52:14 -0500] "OPTIONS /svn/project_repo HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
::1 - - [30/Dec/2014:10:52:14 -0500] "OPTIONS /svn/project_repo HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [29/Dec/2014:20:21:56 -0500] "GET /svn/ HTTP/1.1" 404 278 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
Is this any error??? ji

Last edited by unSpawn; 01-02-2015 at 02:56 AM.
 
Old 01-02-2015, 03:06 AM   #28
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by systems@pickzy.com View Post
I got this output
Code:
 [root@svn conf]# httpd -D DUMP_MODULES|egrep "(dav_|authz_svn|dontdothat)"|nl
Syntax OK
     1	 dav_module (shared)
     2	 dav_fs_module (shared)
     3	 dav_svn_module (shared)
     4	 authz_svn_module (shared)
I dont knw how to load a "/etc/httpd/conf.d/" this directory ..Is this right ???[/code]
Looks right, you just don't have the dav_lock and dontdothat modules...


Quote:
Originally Posted by systems@pickzy.com View Post
And another one output for "tac /var/log/httpd/* | grep -m30 "svn/"
Code:
10.0.0.251 - - [30/Dec/2014:10:53:14 -0500] "PROPFIND /svn/project_repo HTTP/1.1" 405 318 "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [30/Dec/2014:10:53:14 -0500] "OPTIONS /svn/project_repo HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
10.0.0.251 - - [30/Dec/2014:10:53:14 -0500] "OPTIONS /svn/project_repo HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
No idea why it's throwing a "405" and
Quote:
Originally Posted by systems@pickzy.com View Post
Code:
::1 - - [30/Dec/2014:10:52:14 -0500] "PROPFIND /svn/project_repo HTTP/1.1" 405 317 "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
::1 - - [30/Dec/2014:10:52:14 -0500] "OPTIONS /svn/project_repo HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
::1 - - [30/Dec/2014:10:52:14 -0500] "OPTIONS /svn/project_repo HTTP/1.1" 200 - "-" "SVN/1.8.10 (x86_64-redhat-linux-gnu) serf/1.3.7"
you seem to be running IPv6 too and
Quote:
Originally Posted by systems@pickzy.com View Post
Code:
10.0.0.251 - - [29/Dec/2014:20:21:56 -0500] "GET /svn/ HTTP/1.1" 404 278 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
this is a human error because you're not allowed to access /svn/ but only subdirectories like /svn/project_repo.



If unsure run
Code:
tail -f /var/log/httpd/*
and in another terminal access your repo or run any 'svn import', 'svn verify', 'svn dump' commands. When you get errors then check "tail" output for anything that's not a "200".
 
1 members found this post helpful.
Old 01-02-2015, 04:12 AM   #29
systems@pickzy.com
LQ Newbie
 
Registered: Dec 2014
Posts: 24

Original Poster
Rep: Reputation: Disabled
when i enter the URL "10.0.0.251/svn"
displays

Code:
Forbidden

You don't have permission to access /svn/ on this server.
Apache/2.2.15 (CentOS) Server at svn.demo.com Port 80
FOr "10.0.0.251/svn/project_repo"
displays

Code:
project_repo - Revision 0: /

Powered by Apache Subversion version 1.8.10 (r1615264).

i think this is the permission problem ..but i gave full permission for svn and itd files

by
Code:
#chmod -R 777 /var/www/svn/
#chmod -R 777 /var/www/
now what is the problem friend???

when i enter "tail -f /var/log/httpd/*"

i got more than these continuesly ..ANd this is not stopped

Code:
[Mon Dec 22 08:01:58 2014] [notice] Digest: generating secret for digest authentication ...
[Mon Dec 22 08:01:58 2014] [notice] Digest: done
[Mon Dec 22 08:01:58 2014] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations
[Mon Dec 22 09:42:02 2014] [notice] SIGHUP received.  Attempting to restart

==> /var/log/httpd/error_log-20141229 <==
[Sat Dec 27 19:12:51 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Dec 27 19:12:51 2014] [notice] Digest: generating secret for digest authentication ...
[Sat Dec 27 19:12:51 2014] [notice] Digest: done
[Sat Dec 27 19:12:51 2014] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations
[Sat Dec 27 19:56:20 2014] [notice] caught SIGTERM, shutting down
[Mon Dec 29 08:10:08 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Dec 29 08:10:09 2014] [notice] Digest: generating secret for digest authentication ...
[Mon Dec 29 08:10:09 2014] [notice] Digest: done
[Mon Dec 29 08:10:09 2014] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations
[Mon Dec 29 09:34:02 2014] [notice] SIGHUP received.  Attempting to restart

==> /var/log/httpd/ssl_access_log <==

==> /var/log/httpd/ssl_error_log <==
[Fri Jan 02 15:19:48 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 02 15:19:48 2015] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Fri Jan 02 15:21:42 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 02 15:21:42 2015] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Fri Jan 02 15:21:42 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 02 15:21:42 2015] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Fri Jan 02 15:22:23 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 02 15:22:23 2015] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Fri Jan 02 15:22:23 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 02 15:22:23 2015] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?

==> /var/log/httpd/ssl_error_log-20141201 <==
[Sat Nov 29 01:53:06 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Nov 29 01:53:06 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Sun Nov 30 22:32:35 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Nov 30 22:32:35 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Sun Nov 30 22:32:35 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Nov 30 22:32:35 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Sun Nov 30 23:31:49 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Nov 30 23:31:49 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Sun Nov 30 23:31:49 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Nov 30 23:31:49 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?

==> /var/log/httpd/ssl_error_log-20141208 <==
[Fri Dec 05 22:09:38 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Dec 05 22:09:38 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Fri Dec 05 22:20:17 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Dec 05 22:20:17 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Fri Dec 05 22:20:17 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Dec 05 22:20:17 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Mon Dec 08 10:17:01 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Dec 08 10:17:02 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Mon Dec 08 10:17:02 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Dec 08 10:17:02 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?

==> /var/log/httpd/ssl_error_log-20141215 <==
[Fri Dec 12 17:17:37 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Dec 12 17:17:37 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Fri Dec 12 18:40:50 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Dec 12 18:40:50 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Fri Dec 12 18:40:50 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Dec 12 18:40:50 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Fri Dec 12 18:56:08 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Dec 12 18:56:08 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
[Fri Dec 12 18:56:08 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Dec 12 18:56:08 2014] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?

==> /var/log/httpd/ssl_request_log <==

==> /var/log/httpd/svn.ehowstuff.local-access_log <==

==> /var/log/httpd/svn.ehowstuff.local-error_log <==

==> /var/log/httpd/svn_logfile <==
[02/Jan/2015:15:05:04 -0500] - get-inherited-props / r0
[02/Jan/2015:15:05:04 -0500] - get-dir / r0 props
[02/Jan/2015:15:07:06 -0500] - get-dir / r0 props
[02/Jan/2015:15:07:06 -0500] - get-inherited-props / r0
[02/Jan/2015:15:07:06 -0500] - get-dir / r0 props
[02/Jan/2015:15:07:06 -0500] - get-inherited-props / r0
[02/Jan/2015:15:07:06 -0500] - get-dir / r0 props
[02/Jan/2015:15:17:54 -0500] - status / r0
[02/Jan/2015:15:19:53 -0500] - status / r0
[02/Jan/2015:15:21:49 -0500] - status / r0

Last edited by unSpawn; 01-02-2015 at 06:03 AM.
 
Old 01-02-2015, 06:10 AM   #30
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by systems@pickzy.com View Post
when i enter the URL "10.0.0.251/svn" displays
Code:
Forbidden

You don't have permission to access /svn/ on this server.
Apache/2.2.15 (CentOS) Server at svn.demo.com Port 80
For "10.0.0.251/svn/project_repo" displays
Code:
project_repo - Revision 0: /

Powered by Apache Subversion version 1.8.10 (r1615264).
i think this is the permission problem
No it is not.
I already told you that you MUST access a SVN repository like "/svn/project_repo" and MUST NOT access the SVN root "/svn/" directly!
(In short: it works OK now.)


Quote:
Originally Posted by systems@pickzy.com View Post
..but i gave full permission for svn and itd files by
Code:
#chmod -R 777 /var/www/svn/
#chmod -R 777 /var/www/
THAT IS NICE BUT IT IS WRONG.
CORRECT YOUR ERROR IMMEDIATELY.
AND DO NOT EVER TRY "FIXING" THINGS BY SETTING OCTAL "777" ACCESS RIGHTS AGAIN!
EVER.



Quote:
Originally Posted by systems@pickzy.com View Post
when i enter "tail -f /var/log/httpd/*" i got more than these continuesly ..ANd this is not stopped
Code:
==> /var/log/httpd/ssl_error_log <==
[Fri Jan 02 15:19:48 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 02 15:19:48 2015] [warn] RSA server certificate CommonName (CN) `server' does NOT match server name!?
If you chose to use a self-signed SSL certificate then this is not a fatal error, just a warning.


Quote:
Originally Posted by systems@pickzy.com View Post
Code:
==> /var/log/httpd/svn_logfile <==
[02/Jan/2015:15:05:04 -0500] - get-inherited-props / r0
[02/Jan/2015:15:05:04 -0500] - get-dir / r0 props
[02/Jan/2015:15:07:06 -0500] - get-dir / r0 props
[02/Jan/2015:15:07:06 -0500] - get-inherited-props / r0
[02/Jan/2015:15:07:06 -0500] - get-dir / r0 props
[02/Jan/2015:15:07:06 -0500] - get-inherited-props / r0
[02/Jan/2015:15:07:06 -0500] - get-dir / r0 props
[02/Jan/2015:15:17:54 -0500] - status / r0
[02/Jan/2015:15:19:53 -0500] - status / r0
[02/Jan/2015:15:21:49 -0500] - status / r0
These log contents show that SVN works OK.
Mission accomplished, case closed.
 
1 members found this post helpful.
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to upload file from different LAN in Centos SarahGurung Linux - Newbie 16 03-16-2012 05:58 AM
CentOS LAN router software linux hates me Linux - Software 5 03-10-2011 04:55 PM
Centos 5.3 vpn passthrough for NAT'ed lan cvee Red Hat 2 06-04-2009 10:17 PM
D-link Wireless LAN In Centos 5.1 megerdin Linux - Hardware 10 07-10-2008 03:03 PM
Hint: Wanna try Linux, so wanna rig your Windows system to dual-boot? sundialsvcs Linux - Newbie 2 08-16-2005 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 06:23 PM.

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