Grrr....

Oct. 8th, 2007 11:05 pm
ibneko: (Default)
...SVN, why is it so damn hard to compile and install you?

And why am I even doing this? I don't remember why I couldn't use the prebuilt binaries out there....

WebSVN

Mar. 8th, 2007 05:37 pm
ibneko: (Default)
I've been looking around for various web "front ends" for svn - essentially allowing comfortable browsing of an svn repository. The catch, however, is it must support remote repositories. As in, accessed through http:// or https://. Most, like Trac and ViewVC (was ViewCVS) either are working on handling it, or don't handle it at all.

So WebSVN [http://websvn.tigris.org/] handles it. And runs in PHP. That is good. (Trac and ViewVC are python based, a bit more of a hassle to install, at least for me.)

"XML error: no element found (3) at line 3 column 0 byte 45"

This error is due to a custom certificate. If you hit this, you'll need to find some way to tell svn to accept that certificate. Since my certificate was signed by CACert, all I had to do with add their root file to the svn config:
(in ~/.subversion/servers, on the bottom, after the [global])
ssl-authority-files = /etc/ssl/certs/cacert-root-ca.crt

And then I hacked configclass.inc (and modified config.inc)
Diff as follows:
Diff, generated by svn )

Note: the configuration location set function must be called BEFORE setSVNCommandPath. ie;
$config->setSVNConfigPath("/Path/To/Subversion/config/.subversion ie. /Users/benjamin/.subversion");
$config->setSVNCommandPath("/usr/local/bin/");

Also, yes, it does use your subversion settings. I see no problems with this, but I may be sadly mistaken. If you want to play it safe, recreate the folder somewhere and set the "servers" file there.

--
Side note: accessing an SVN repository remotely is quite slow. If you have alternatives, use them.
ibneko: (Default)
Found this thing called Trac [ http://trac.edgewall.org/ ]. Looks spiffy. Got it installed after about 3 hours of mussing around on windows XP.

Note: I already had Apache 2.0 installed, along with svn 1.4.[something?].

steps:
Installed Python 2.4.4.
Discovered that it was conflicting with XAMPP's outdated python install that I had forced onto the system. Whoops.
Discovered that it didn't set my path for me. Bah. Path set (My Computer > Properties > Advanced > Environment Variables). Modified PATH to include C:\Python24. Added a PYTHONPATH=C:\Python24\. Probably not necessary.
Installed trac 0.10.3 using the binary installer/executable.
Installed pysqlite-2.3.2.win32-py2.4.exe.
Installed svn-python-1.4.2.win32-py24.exe.
Installed mod_pythong-3.3.1.win32-py24.exe.
Installed clearsilver-0.9.14.win32-py24.exe.

Added to httpd.conf: LoadModule python_module modules/mod_python.so
<Location /some/location>
   SetHandler mod_python
   PythonHandler trac.web-modpythong_frontend
   PythonOption TracEnv "C:\Pythong24\Scripts\trac\highbrow"
   PythonOption TracUriRoot /some/location
</Location>

Discovered that I couldn't view sources. Was annoyed.
Installed enscript-1.6.3-9-bin.exe
Installed docutils.
Installed SilverCity-0.9.7win32-py24.exe.

Modified trac.ini (in C:\Python24\Scripts\trac\[project]\conf):
[mimeviewer]
...
enscript_path = "C:\Program Files\GnuWin32\bin\enscript.exe"
...
php_path = "C:\Program Files\xampp\php\php.exe"
...
tab_width = 4

So I now have trac working. It's pretty. Yayness.

The alternative would have been ViewCV, which livejournal uses. Doesn't include the bug ticket support, extra wiki, milestones, etc, though. But I imagine it would have been easier to install. Although 3 hours isn't too bad...
ibneko: (Default)
Apache 2.0.59 AND Apache 2.2 installed. Hah!

The steps I had to take:
1) installed Apache 2.0.59. I ended up using the binary found here: http://hunter.campbus.com/ instead of the binary distributed by the Apache group/foundation/people. Reason: putting in SSL caused crashes to occur.

2) Modified the registry so I can have an Apache 2.0 service and an Apache 2.2 service, both controlled by the useful Apache monitor (comes with the Apache-distributed copy of Apache 2.0). There's an awesome tool called the Registry Explorer, which lets you browse the windows registry as you would browse normal folders. And not only that, you can copy and paste/duplicate various keys, which regedit lacks. I just copied the Apache2 key that was installed by xampp, and modified it for my own use. The installer for 2.0 from the Apache group/people installed their own key, I believe, but the key names will clash with xampp's installation, and while xampp will finish the installation process, you won't be able to start up the correct apache with xampp's control panel.

3) installed SVN. http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91. Should be painless.

4) installed TortoiseSVN (Windows GUI - letting you do everything SVN related by right-clicking in explorer). Should also be painless. Requires a reboot, unfortunately.

5) set up Apache SSL according to the awesome help manual included with the TortoiseSVN installation. This guide was also helpful, although it did not cover SSL setup.

I've got me a HTTPS svn server! W00t. No, it's not open to the public, since it's for a project that I don't fully own.

*Note to others coming here to install apache(w/ssl)+svn on windows:
It may take you from 2 hours to 2 days. It took me 2 days to get everything figured out, including annoying limitations on stuff. If you don't run a different apache, and you know what you're doing, it shouldn't take more than 2 hours to get everything up and running properly.
ibneko: (Default)
Dear Windows,

Why don't you have a better regedit. One where you can copy/paste/duplicate keys and stuff. And why is it so damn hard to run things on you, compared to unix, linux, and macos x?

Annoyed,
Ben

--
Dear XAMPP,

For being a all-in-one package (PHP, MySQL, Apache, etc. all in one easy installer), I love you so much. But why won't you let me downgrade Apache to 2.0.59?

Not so annoyed,
Ben

--
Dear Apache 2.0.59

You need to be slightly more userfriendly. Give me something to install yourself in the registry again. And let me modify that Apache monitor thing that.. is stupid, like the XAMPP monitor and only checks to see if the Apache2 service is active. Or something like that.

Ben

----
Story behind this post:
I'm trying to get a SVN server up and running on the Windows box. It's being a pain in the ass, 'cause the mod_dav_svn.so doesn't want to work with Apache 2.2, which comes installed with XAMPP. But the prebuilt Apache 2.0.59 doesn't seem to come with SSL, which might be a problem later. And I don't know/don't really want to try to compile Apache 2.0.59 on Windows. I don't know what I need, or how big of a hassle that might be.

I should probably just use svnserve. Really. That would be so much easier, right? Maybe I'll try to get that working first . . . . .
ibneko: (Default)
...'cause I'm out of Safari tabs again. Well, not "out", but... making another one won't be visible.

DIY Cintiq. Spiffiest thing EVARH! Beyond me, though.
http://www.bongofish.co.uk/wacom/wacom_pt1.html

Want to try to install my own Subversion Server on HTTP:
http://subversion.tigris.org/
http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.serverconfig.httpd
(and for better browsing: http://www.viewvc.org/)

Ski Liberty's Learn to Ski for $10: 1/11/07
http://www.skiliberty.com/palearntoski.htm
(thinking of it. No solid plans yet, though... since snow's like, non-existant.

Expand Cut Tags

No cut tags

Profile

ibneko: (Default)
ibneko

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Page generated Jul. 6th, 2025 11:01 am
Powered by Dreamwidth Studios
January 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2021