old-www/HOWTO/Caudium-HOWTO/directory.html

387 lines
6.8 KiB
HTML

<HTML
><HEAD
><TITLE
>Directory organization</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
REL="HOME"
TITLE="Caudium HOWTO"
HREF="index.html"><LINK
REL="UP"
TITLE="Creating your first server"
HREF="creating.html"><LINK
REL="PREVIOUS"
TITLE="Stopping from command line"
HREF="stopping.html"><LINK
REL="NEXT"
TITLE="Upgrading Caudium"
HREF="upgrade.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Caudium HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="stopping.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 4. Creating your first server</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="upgrade.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="directory">4.4. Directory organization</H1
><P
></P
><UL
><LI
><P
>&#13; configurations:
</P
><P
>&#13; Contains the config files used by the <SPAN
CLASS="abbrev"
>CIF.</SPAN
>. These files use the XML syntax. You don't have to modify them by hand. If for some reason you do, make sure to do it when Caudium is stopped because they will get overwritten with the server's current configuration when the server is stopped. An alternate method is to edit the file, then send the HUP signal to the Caudium process. Another method is to use the <SPAN
CLASS="abbrev"
>CIF.</SPAN
>: Go into <TT
CLASS="option"
>Action</TT
> -&#62; <TT
CLASS="option"
>Maintenance</TT
> -&#62; <TT
CLASS="option"
>Reload configurations from disk</TT
>. This will cause Caudium to reload its configuration from disk. As you may have guessed, each file has the name of the corresponding virtual server. One file however has a special name - <TT
CLASS="filename"
>Global_Variables</TT
>. This file contains information about Caudium's global variables (See the Global Variables tab in the <SPAN
CLASS="abbrev"
>CIF.</SPAN
>).
</P
></LI
><LI
><P
>&#13; logs:
</P
><P
>&#13; Contains useful information such as debug log, virtual server logs, start/stop status. See also <A
HREF="starting.html"
>Section 4.2</A
>.
</P
></LI
><LI
><P
>&#13; readme:
</P
><P
>&#13; It's all in the name.
</P
></LI
><LI
><P
>&#13; server:
</P
><P
>&#13; This directory contains the actual server.
</P
><P
></P
><UL
><LI
><P
>&#13; base_server:
</P
><P
>&#13; Contains the server core Pike code: API, <SPAN
CLASS="abbrev"
>CIF.</SPAN
>, etc. Newbies should not modify these files.
</P
></LI
><LI
><P
>&#13; bin:
</P
><P
>&#13; First binary code that is run when you use the start script. There are also some Pike scripts running as CGIs and without Caudium API.
</P
></LI
><LI
><P
>&#13; caudium-images:
</P
><P
>&#13; This directory contains Caudium static images from the Caudium Group, such as the <SPAN
CLASS="QUOTE"
>"powered by"</SPAN
> series.
</P
></LI
><LI
><P
>&#13; config_actions:
</P
><P
>&#13; These are files used in the <TT
CLASS="option"
>Action</TT
> tab on the <SPAN
CLASS="abbrev"
>CIF.</SPAN
>. You may use some of these functions in your code.
</P
></LI
><LI
><P
>&#13; etc:
</P
><P
>&#13; Caudium includes files used by the Caudium core and its modules. For example, it contains .html files for error messages. Two directories are important for a module developer:
</P
><P
></P
><UL
><LI
><P
>&#13; include:
</P
><P
>&#13; Put your .h files here.
</P
></LI
><LI
><P
>&#13; module:
</P
><P
>&#13; Put your module files here (.pmod). Pike module files are used to provide two-level functions/class/methods for your modules. When you modify any of these files, you must restart the server.
</P
></LI
></UL
></LI
><LI
><P
>&#13; fonts:
</P
><P
>&#13; Contains some compatibility fonts with some older versions. The new directory is nfonts.
</P
></LI
><LI
><P
>&#13; languages:
</P
><P
>&#13; Some basic language translations for time/date.
</P
></LI
><LI
><P
>&#13; lib:
</P
><P
>&#13; Some of the C code used to speed Caudium up. This code is a set of dynamic libraries (.so).
</P
></LI
><LI
><P
>&#13; modules:
</P
><P
>&#13; Contains Caudium modules. These are all the modules you see when you click <B
CLASS="command"
>Add Module</B
> after you have selected one of your servers in the <SPAN
CLASS="abbrev"
>CIF.</SPAN
>. Browsing this directory will be useful to understand Caudium.
<P
></P
><UL
><LI
><P
>&#13; 3rdparty:
</P
><P
>&#13; This special directory contains third party modules for Caudium. These may be useful but are provided without any warranty and will not be maintained by the Caudium Group but they may be by the individuals who wrote them.
</P
></LI
></UL
>
</P
></LI
><LI
><P
>&#13; more_modules:
</P
><P
>&#13; Some modules that meet a specific need, are not up-to-date, or are humorous.
</P
></LI
><LI
><P
>&#13; nfonts:
</P
><P
>&#13; Fonts for graphical things like &#60;gtext&#62; and &#60;gbutton&#62;.
You can have several types of properties like bold or italic for the same font name.
</P
></LI
><LI
><P
>&#13; Perl:
</P
><P
>&#13; Needed to run Perl scripts within Caudium. At the time of writing this document, Perl support is broken, and we will be pleased to get help on this issue.
</P
></LI
><LI
><P
>&#13; protocols:
</P
><P
>&#13; Contains protocol modules (for handling HTTP, FTP and the like).
</P
></LI
><LI
><P
>&#13; server_templates:
</P
><P
>&#13; The templates you can choose from when you create a new a virtual server.
</P
></LI
><LI
><P
>&#13; unfinished_modules:
</P
><P
>&#13; For modules in development.
</P
></LI
></UL
></LI
></UL
><P
>&#13; You can also see <TT
CLASS="filename"
>readme/README</TT
> relative to <TT
CLASS="filename"
>/usr/local/caudium</TT
> in our example.
</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="stopping.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="upgrade.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Stopping from command line</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="creating.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Upgrading Caudium</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>