简体   繁体   中英

SVN and LAMP Server together cannot access

I have a LAMP server where locally a database is created and all the databases are stored in /var/www/html/companyadmin and we can access the server by typing in browser the ip address of server ie 192.168.2.2

Then I installed svn in this server and put svn directory in /usr/etc/svn and created a repository named companyrepo . I have modified the subversion.conf file and set SVNParentpath to /usr/etc/svn .

When I tried to access my svn repository from browser ie http://192.168.2.2/svn/companyrepo , then the default homepage for the serer appears. I have tested in another machine where no web server is installed and I can access svn repository from browser. But the machine where LAMP is installed only the default page appears.

What should I do to make the server works in proper way.

It is very possible that your LAMP package doesn't have mod_dav_svn installed. XAMPP doesn't come with this module. You have two choices:

  • You can try these directions .
  • You can just run the Subversion server with svnserve rather than through Apache. The svnserve is actually faster and lighter weight than running Subversion under Apache. The big reason for using Apache over svnserve has to do with open ports: Your firewall will probably allow http on Port 80 through, but not svn on Port 3690. The other is that it's easier to get LDAP (and Windows Active Directory) logins though Apache rather than through svnserve. Also, svnserve. Also, svnserve isn't normally encrypted while Apache https is encrypted. If none of these are issues, then the easiest is to use is encrypted. If none of these are issues, then the easiest is to use svnserve` rather than Apache.

我修改了subversion.conf文件,在第28行附近,与<location>关联的命令有所不同,并将其更改为svn即( <location/svn> )后,它可以完美地工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM