Securing-Optimizing-RH-Linux-1_2_361
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
361
Linux MM Shared Memory Library for Apache
Overview
I recommend to compile and install this small program only if you are intended to install and use
Apache web server with third party modules like mod_ssl for encryption data, mod_perl for
programming language, or mod_php for server-side scripting language. This program will provide
a significant performance to Apache modules. For instance if you need to install Apache with SSL
support for your electronic commerce on the Internet, this will allows SSL protocol to use a high-
performance RAM-based session cache instead of a disk-based one.
As explained in the MM Shared Memory Library web site:
The MM library is a 2-layer abstraction library, which simplifies the usage of shared memory
between forked (and this way strongly related) processes under Unix platforms. On the first layer
it hides all platform dependent implementation details (allocation and locking) when dealing with
shared memory segments and on the second layer it provides a high-level malloc(3)-style API for
a convenient and well known way to work with data-structures inside those shared memory
segments.
The library is released under the term of an open-source (BSD-style) license because it's
originally written for a proposed use inside next versions of the Apache web server as a base
library for providing shared memory pools to Apache modules (because currently Apache
modules can only use heap-allocated memory which isn't shared across the pre-forked server
processes). The requirement actually comes from comprehensive modules like mod_ssl,
mod_perl and mod_php, which would benefit a lot from easy to use shared memory pools.
These installation instructions assume
Commands are Unix-compatible.
The source path is /var/tmp (other paths are possible).
Installations were tested on RedHat Linux 6.1.
All steps in the installation will happen in superuser account root.
Mm version number is 1.0.12
Packages
MM Homepage: http://www.engelschall.com/sw/mm/
You must be sure to download: mm-1.0.12.tar.gz
Tarballs
It is a good idea to make a list of files on the system before you install MM, and one afterwards,
and then compare them using diff to find out what file it placed where. Simply run find /* >
mm1 before and find /* > mm2 after you install the software, and use diff mm1 mm2 > mm to
get a list of what changed.
Compilation
Decompress the tarball (tar.gz).
[root@deep /]# cp mm_version.tar.gz /var/tmp
[root@deep /]# cd /var/tmp
[root@deep tmp]# tar xzpf mm_version.tar.gz