|
Lines 68-73
Link Here
|
| 68 |
<arg choice="opt"> |
68 |
<arg choice="opt"> |
| 69 |
<option>-dghusDE</option> |
69 |
<option>-dghusDE</option> |
| 70 |
<option>--soft</option> |
70 |
<option>--soft</option> |
|
|
71 |
<option>--copy</option> |
| 71 |
<option>--secure</option> |
72 |
<option>--secure</option> |
| 72 |
</arg> |
73 |
</arg> |
| 73 |
<arg choice="req"> |
74 |
<arg choice="req"> |
|
Lines 217-230
Link Here
|
| 217 |
</refsect2> |
218 |
</refsect2> |
| 218 |
|
219 |
|
| 219 |
<refsect2> |
220 |
<refsect2> |
| 220 |
<title>Hard Linking vs Soft Linking</title> |
221 |
<title>File Copying Options</title> |
| 221 |
<para>A <glossterm>virtual copy</glossterm> is built mostly by creating hard links to files under <filename>/usr/share/webapps</filename>. If a hard link cannot be created, the file is copied from <filename>/usr/share/webapps</filename> instead.</para> |
222 |
<para>A <glossterm>virtual copy</glossterm> is built mostly by creating hard links to files under <filename>/usr/share/webapps</filename>. If a hard link cannot be created, the file is copied from <filename>/usr/share/webapps</filename> instead.</para> |
| 222 |
<para>Hard links can only be created to files on the same filesystem. If you keep <filename>/usr/share/webapps</filename> and <filename>/var/www</filename> on different filesystems, <command>webapp-config</command> cannot use hard links, and will be forced to copy the files instead.</para> |
223 |
<para>Hard links can only be created to files on the same filesystem. If you keep <filename>/usr/share/webapps</filename> and <filename>/var/www</filename> on different filesystems, <command>webapp-config</command> cannot use hard links, and will be forced to copy the files instead.</para> |
| 223 |
<para>There are two ways to get around the hard link problem.</para> |
224 |
<para>There are three ways to get around the hard link problem.</para> |
| 224 |
<para>The easiest way is to make <filename>/usr/share/webapps</filename> a symlink to a directory under <filename>/var/www</filename>. For most people, this will ensure that everything is on the same filesystem.</para> |
225 |
<para>The easiest way is to make <filename>/usr/share/webapps</filename> a symlink to a directory under <filename>/var/www</filename>. For most people, this will ensure that everything is on the same filesystem.</para> |
| 225 |
<para>However, if you keep the websites you host on separate filesystems (like I do), then <command>webapp-config</command> is never going to be able to hard-link files for you.</para> |
226 |
<para>However, if you keep the websites you host on separate filesystems (like I do), then <command>webapp-config</command> is never going to be able to hard-link files for you.</para> |
| 226 |
<para>You can choose to use the <option>--soft</option> command-line switch instead. This switch tells <command>webapp-config</command> to create symbolic links instead of hard links. Symbolic links work across filesystems.</para> |
227 |
<para>As an alternative you can choose to use the <option>--soft</option> command-line switch. This switch tells <command>webapp-config</command> to create symbolic links instead of hard links. Symbolic links work across filesystems.</para> |
| 227 |
<para>The problem with using symbolic links is that some packages do not work when the virtual copy is made from symbolic links. Many users - and system administrators alas - have also complained that they find directories full of symbolic links confusing. For these reasons, symbolic links are not used by default in <command>webapp-config</command> any more.</para> |
228 |
<para>The problem with using symbolic links is that some packages do not work when the virtual copy is made from symbolic links. Many users - and system administrators alas - have also complained that they find directories full of symbolic links confusing. For these reasons, symbolic links are not used by default in <command>webapp-config</command> any more.</para> |
|
|
229 |
<para>You may also choose the <option>--copy</option> command-line switch. This particular switch tells <command>webapp-config</command> to directly copy the files from <filename>/usr/share/webapps/</filename> instead of hard links. Copying directly works across filesystems with the drawback of using more space but if you are going to use it across file systems you may want this instead of symbolic links, as this means that the files in <filename>/usr/share/webapps/</filename> will not be touched when the files in the location of your virtualhost are altered.</para> |
| 228 |
</refsect2> |
230 |
</refsect2> |
| 229 |
|
231 |
|
| 230 |
<refsect2> |
232 |
<refsect2> |
|
Lines 465-476
Link Here
|
| 465 |
<varlistentry> |
467 |
<varlistentry> |
| 466 |
<term><option>--soft</option></term> |
468 |
<term><option>--soft</option></term> |
| 467 |
<listitem> |
469 |
<listitem> |
| 468 |
<para>Use this option to create the virtual copy using symbolic links instead of hard links.</para> |
470 |
<para>Use this option to create the virtual copy using symbolic links.</para> |
| 469 |
<para>You may find this option useful if <filename>/usr/share/webapps</filename> is on a different filesystem to your htdocs directories. However, it has been discovered that some packages do not work with this option, which is why it is no longer the default behaviour. You are always better off making <filename>/usr/share/webapps</filename> a symlink to a directory on the same filesystem as your htdocs directories.</para> |
471 |
<para>You may find this option useful if <filename>/usr/share/webapps</filename> is on a different filesystem to your htdocs directories. However, it has been discovered that some packages do not work with this option, which is why it is no longer the default behaviour. You are always better off making <filename>/usr/share/webapps</filename> a symlink to a directory on the same filesystem as your htdocs directories.</para> |
| 470 |
</listitem> |
472 |
</listitem> |
| 471 |
</varlistentry> |
473 |
</varlistentry> |
| 472 |
|
474 |
|
| 473 |
<varlistentry> |
475 |
<varlistentry> |
|
|
476 |
<term><option>--cp</option></term> |
| 477 |
<term><option>--copy</option></term> |
| 478 |
<listitem> |
| 479 |
<para>Use this option to create the virtual copy by copying the files from the <filename>/usr/share/webapps/</filename> directories.</para> |
| 480 |
<para>This option is useful if you want to copy the files directly from <filename>/usr/share/webapps/</filename> to your virtual host in /var/www without the use of softlinks, or hardlinks. Be aware that because this is a direct copying of files it will prove to take up more space on your filesystem as opposed to the other two options since you are duplicating the webapp.</para> |
| 481 |
</varlistentry> |
| 482 |
|
| 483 |
<varlistentry> |
| 474 |
<term><option>--secure</option></term> |
484 |
<term><option>--secure</option></term> |
| 475 |
<listitem> |
485 |
<listitem> |
| 476 |
<para>Use this option to install into the <filename>htdocs-secure</filename> directory rather than into the <filename>htdocs</filename> directory.</para> |
486 |
<para>Use this option to install into the <filename>htdocs-secure</filename> directory rather than into the <filename>htdocs</filename> directory.</para> |
| 477 |
- |
|
|