昨天晚上,把svn+ssl在
fedora apache上的配置搞定了,结合
redmine,公司的项目管理终于可以步上正规化,要感谢redmine,感谢Ruby社区带给我们一个如此好的产品,下面是我们boss对redmine的评价。
Finally, we got a tool does 95% of what we really want! I have been
experiencing it for the whole day. Great tool! I even see the hour
booking function which never see it in any other tools but very
necessary for European clients.
I got requests from every of
client for a project management tool, I tried to build one before but
obviously I lack the time of it. It seems strange that this guy did aMUCH MUCHbetter job than I can think of.
This is the company platform, everyone should be active here.
Have fun and I am loving it.
很高的评价,不是吗?
在昨天装好svn+SSL后我也在redmine上写了篇新闻。
This is the first time trying to installSVNandSSLunder a linux server. I did it under ubuntu on my own computer before.
They
are quite different. our linux server’s version is Fedora Core 4 and I
only have some experiences on ubuntu distribution system. and the one I
used is desktop edition and the linux server we’re on it right now is
server edition. for example: you can useapt-get install subversionto install packages on ubuntu, but you have to useyum install subversionto install them on the server.
For security reason, I’ve setupSSLto protect the source code when we check-in or check-out. I used
openssl to generate a cert file and configured it in the httpd.conf
configuration file of apache. there are some tips would be very useful.
so write them down here.(I remembered that DongHui guy has asked me for
OpenSSL, I hope this information would be a help for him.)
- create the key and request:
openssl req -new > new.cert.csr
- remove the passphrase from the key (optional):
openssl rsa -in privkey.pem -out new.cert.key
- convert request into signed cert:
openssl x509 -in new.cert.csr -out new.cert.cert -req -signkey new.cert.key -days 1024
The
other steps are pretty easy like under windows. the only thing I met
was I couldn’t find mod_dav_svn.so and mod_authz_svn.so these 2 files.
but fortunately I got a way to solve this by using these code:yum install mod_dav_svn/yum install mod_authz_svn.
OK,
to tell the truth there was another problem we ever had. that’s caused
by the permissions. I use ‘svnadmin create’ to create a repository, and
it seemed working fine. I could log into it and saw the revision
number, but when we tried to check-in code files, it said that we had
no permission to do that. that’s caused by when I loged into the system
as root and created a repository, so the default owner of this
directory is root and the apache account couldn’t write contents to the
directory. that’s why we got this error. when we knew this, the
solution was pretty easy,chown apache.apache /svn/ -R, OK, no problem now.
Finally,
it’s working. there is one thing left and I have no idea for now, it’s
we have to log into the system via ssh when we want to create a svn
account.
This spent me about 2 hours to do that. but I think it’s worth. from it I know something about linux andSVN. :)
However,
I think this is very valuable experience, so I write it down here to
share with all of us and also to improve my English. ;)
Have fun and keep hard-working!