Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 535 #561
i
i
i
i
i
i
i
i
22
The Apache Web Server
system is booted, check runlevels 3 and 5 in the runlevel editor. To
test whether Apache is running, go to http://localhost/ in a
browser. If Apache is active, you will see an example page, provided
apache2-example-pages is installed.
22.6.3 Modules for Active Contents
To use active contents with the help of modules, install the modules for the
respective programming languages. These are apache2-mod_perl for
Perl, mod_php4 for PHP, and mod_python for Python. The use of these
modules is discribed in Section 22.9.5 on page 544.
22.6.4 Other Recommended Packages
Additionally, you should install the extensive documentation provided
in apache2-doc. An alias (Section 22.7 on the following page explains
what an alias is) is available for the documentation, enabling you to access
it with the URL http://localhost/manual following installation.
To develop modules for Apache or compile third-party modules, install
apache2-devel and the needed development tools. These include the
apxs tools, which are described in Section 22.6.5.
22.6.5 Installation of Modules with apxs
apxs2 is an important tool for module developers. This program enables
the compilation and installation of modules from source code with a single
command (including the required changes to the configuration files). Fur-
thermore, you can also install modules available as object files (extension
.o) or static libraries (extension .a). When installing from sources, apxs2
creates a dynamic shared object (DSO), which is directly used by Apache
as a module.
The installation of a module from source code can be performed with a
command like apxs2 -c -i -a mod_foo.c. Other options of apxs2
are described in its man page.
apxs2 is available in several versions: apxs2, apxs2-prefork, and
apxs2-worker. apxs2 installs modules so they can be used for all
MPMs. The other two programs install modules so they can only be
used for the respective MPMs (prefork or worker). apxs2 installs mod-
ules in /usr/lib/apache2/ and apxs2-prefork installs modules in
/usr/lib/apache2-prefork/.
535SUSE LINUX Enterprise Server