Re: Subversion: via Apache
On 07/18/2011 09:34 AM, Geoff Hoffman wrote: Test your config with -t Option -t on what command line? -t for svnserve means tunnel; svnadmin and svn have no -t option.
Re: Subversion: via Apache
On 7/18/2011 3:43 AM, Andy Canfield wrote: On 07/18/2011 09:34 AM, Geoff Hoffman wrote: Test your config with -t Option -t on what command line? -t for svnserve means tunnel; svnadmin and svn have no -t option. This thread is about Subversion: via Apache, so the Apache commandline :) Usage: httpd [-D name] [-d directory] [-f file] [-C directive] [-c directive] [-k start|restart|graceful|graceful-stop|stop] [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] Options: [...] -t : run syntax check for config files
Re: Subversion: via Apache
On Mon, Jul 18, 2011 at 4:50 AM, Dave Huang k...@azeotrope.org wrote: On 7/18/2011 3:43 AM, Andy Canfield wrote: On 07/18/2011 09:34 AM, Geoff Hoffman wrote: Test your config with -t Option -t on what command line? -t for svnserve means tunnel; svnadmin and svn have no -t option. This thread is about Subversion: via Apache, so the Apache commandline :) Usage: httpd [-D name] [-d directory] [-f file] [-C directive] [-c directive] [-k start|restart|graceful|graceful-stop|stop] [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] Options: [...] -t : run syntax check for config files Some httpd setups provide this in the init script, an /etc/init.d/httpd configtest option. Be careful to tease out the actual init options used by your init script: Debian hides a lot of them in /etc/default/apache2, for example.
Re: Subversion: via Apache
I have requested our system administrator re-install Apache and all it's mod_dav modules and tell me the distribution versions of everything. After it gets done I can re-test. In the meantime I can hope to get svn talking to svnserve via port 3690. So far failed on permissions, but more testing tomorrow.
Subversion: via Apache
WHOA! Near as I can tell, if you have an apache2 server offering web sites http://example.com/alpha http://example.com/beta http://example.com/gamma and you configure the apache2 web server for Subversion support, suddenly you can no longer access alpha and beta and gamma. DOES SUBVERSION TAKE OVER THE ENTIRE APACHE SERVER? Apparently so. Yet the book makes no mention of this! Well, we can not have subversion stealing our apache server; after all we plan to use subversion to maintain a web site being hosted by that very server. So we'll have to use svnserve.
Re: Subversion: via Apache
I removed the Location /svn block. No, Apache does not function. *telnet hk.pimco.mobi 80 Trying 202.181.201.137... Connected to hk.pimco.mobi. Escape character is '^]'. HEAD / HTTP/1.0* (pressed Enter twice) *Connection closed by foreign host.* In my last message I did not include the Apache version number; the output of '/usr/sbin/httpd -v' is: *Server version: Apache/2.2.14 (Unix) Server built: Feb 10 2010 22:22:39* Is there any way to check the version number of the SVN modules if they are not working? On 07/17/2011 08:15 PM, Andy Levy wrote: Strip your httpd.conf.subversion down to ONLY load the modules. Do not include theLocation /svn block. Does Apache function? Telnet to hk.pimco.mobi on port 80 and enter the following: HEAD / HTTP/1.0 Then ENTER twice. You should get an HTTP/1.1 200 OK response (see http://tonycode.com/wiki/index.php?title=Making_HTTP_requests_via_telnet for more details on this). If this doesn't work, then you likely have a difference between the version of Apache you're running and the SVN modules. They need to be built using the same version of APR, IIRC.
Re: Subversion: via Apache
Test your config with -t
Re: Subversion: via Apache
On Sun, Jul 17, 2011 at 22:29, Andy Canfield andy.canfi...@pimco.mobi wrote: I removed the Location /svn block. No, Apache does not function. telnet hk.pimco.mobi 80 Trying 202.181.201.137... Connected to hk.pimco.mobi. Escape character is '^]'. HEAD / HTTP/1.0 (pressed Enter twice) Connection closed by foreign host. In my last message I did not include the Apache version number; the output of '/usr/sbin/httpd -v' is: Server version: Apache/2.2.14 (Unix) Server built: Feb 10 2010 22:22:39 Is there any way to check the version number of the SVN modules if they are not working? If Apache isn't working at all with your Location block ripped out, then the problem is the modules themselves. Rather than trying to figure out what versions you have now, just remove what you have replace with a version compiled with an APR version that matches your Apache installation. If you installed both Subversion Apache via your distro's packaging system, this should have all been taken care of for you. On 07/17/2011 08:15 PM, Andy Levy wrote: Strip your httpd.conf.subversion down to ONLY load the modules. Do not include the Location /svn block. Does Apache function? Telnet to hk.pimco.mobi on port 80 and enter the following: HEAD / HTTP/1.0 Then ENTER twice. You should get an HTTP/1.1 200 OK response (see http://tonycode.com/wiki/index.php?title=Making_HTTP_requests_via_telnet for more details on this). If this doesn't work, then you likely have a difference between the version of Apache you're running and the SVN modules. They need to be built using the same version of APR, IIRC.
Re: Subversion: via Apache
On 7/17/11 9:41 PM, Andy Levy wrote: Rather than trying to figure out what versions you have now, just remove what you have replace with a version compiled with an APR version that matches your Apache installation. If you installed both Subversion Apache via your distro's packaging system, this should have all been taken care of for you. The packages may depend on the distribution. For example, for Red Hat or Centos it would be httpd, subversion, and mod_dav_svn, and you'd get a snippet of the httpd config in /etc/httpd/conf.d/subversion.conf where you can customize the setup. -- Les Mikesell lesmikes...@gmail.com
Re: Subversion: via Apache
On Sun, Jul 17, 2011 at 11:07 PM, Les Mikesell lesmikes...@gmail.com wrote: On 7/17/11 9:41 PM, Andy Levy wrote: Rather than trying to figure out what versions you have now, just remove what you have replace with a version compiled with an APR version that matches your Apache installation. If you installed both Subversion Apache via your distro's packaging system, this should have all been taken care of for you. The packages may depend on the distribution. For example, for Red Hat or Centos it would be httpd, subversion, and mod_dav_svn, and you'd get a snippet of the httpd config in /etc/httpd/conf.d/subversion.conf where you can customize the setup. The reference to /etc/apache2/httpd.conf indicates that it's probably Debian or Ubunty. Red Hat correctly refers to it as httpd. -- Les Mikesell lesmikes...@gmail.com