12 |
so you will have to remove it from your web server's scope). |
so you will have to remove it from your web server's scope). |
13 |
</p> |
</p> |
14 |
|
|
15 |
|
<h3>Upgrade existing repository</h3> |
16 |
|
|
17 |
|
<p>If your currnet (v1.x) repository is called <tt>/home/httpd/html</tt> and |
18 |
|
new one is <tt>/home/httpd/repository</tt> you would have to do following: |
19 |
|
<small>(this assumes that you are going to use virtual hosts to host new |
20 |
|
repository. If you would rather user path to <tt>docman.php</tt> script |
21 |
|
path to separate installations <a href="#upgrade_path">look below</a>)</small> |
22 |
|
<ul> |
23 |
|
|
24 |
|
<li>move old repository out of web server scope |
25 |
|
<pre> |
26 |
|
mv /home/httpd/html /home/httpd/repository |
27 |
|
</pre> |
28 |
|
|
29 |
|
<li>create new web server exported directory and install docman it it |
30 |
|
<small>(if you keep name <tt>html</tt> you won't need to change |
31 |
|
Apache <tt>httpd.conf</tt>)</small> |
32 |
|
<pre> |
33 |
|
mkdir /home/httpd/html |
34 |
|
ln -s /home/httpd/docman2/docman.php /home/httpd/html/index.php |
35 |
|
ln -s /home/httpd/docman2/html/docman.css /home/httpd/html/docman.css |
36 |
|
</pre> |
37 |
|
You might want to add <tt>index.php</tt> to your Apache |
38 |
|
DirectoryIndex instead of existings <tt>.index.php</tt>. |
39 |
|
|
40 |
|
<li>move files to new realm locations |
41 |
|
<pre> |
42 |
|
mv /home/httpd/html/.docman.conf \ |
43 |
|
/home/httpd/docman2/realm/http_virtual_host.conf |
44 |
|
</pre> |
45 |
|
|
46 |
|
<li>move htusers file |
47 |
|
<pre> |
48 |
|
mv /home/httpd/html/.htusers \ |
49 |
|
/home/httpd/docman2/realm/http_virtual_host.htusers |
50 |
|
</pre> |
51 |
|
|
52 |
|
<li>move include_php file |
53 |
|
(<small><i>optionally</i> if you are using one</small>) |
54 |
|
<pre> |
55 |
|
mv /home/httpd/html/.tree.php \ |
56 |
|
/home/httpd/docman2/realm/http_virtual_host.tree.php |
57 |
|
</pre> |
58 |
|
|
59 |
|
<li>create trustee file |
60 |
|
(<small><i>optionally</i>, also read <a href="trustee.html">trustee |
61 |
|
documentation</a></small>) |
62 |
|
<pre> |
63 |
|
cp /home/httpd/docman2/realm/localhost.trustee \ |
64 |
|
/home/httpd/docman2/realm/http_virtual_host.trustee |
65 |
|
vi /home/httpd/docman2/realm/http_virtual_host.trustee |
66 |
|
</pre> |
67 |
|
</ul> |
68 |
|
</p> |
69 |
|
|
70 |
|
<a name="upgrade_path"> |
71 |
|
<h3>Upgrade v1.x repository to v2.x using script path</h3> |
72 |
|
|
73 |
|
<big>FIX</big> |
74 |
|
|
75 |
<A name="docman_conf"> |
<A name="docman_conf"> |
76 |
<h3>master configuration file</h3> |
<h3>master configuration file</h3> |
77 |
|
|