Securing-Optimizing-RH-Linux-1_2_404
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
404
Compilation
Decompress the tarball (tar.gz).
[root@deep /]# cp FAQ-O-Matic-version.tar.gz /var/tmp/
[root@deep /]# cd /var/tmp/
[root@deep tmp]# tar xzpf FAQ-O-Matic-version.tar.gz
Compile
To install the Faq-O-Matic program in your computer, move into the new FAQ-O-Matic directory
and type the following commands on your terminal:
[root@deep FAQ-OMatic-2.709]# perl Makefile.PL
[root@deep FAQ-OMatic-2.709]# make
[root@deep FAQ-OMatic-2.709]# make install
[root@deep FAQ-OMatic-2.709]# mv fom /home/httpd/cgi-bin/ (or wherever your CGIs live).
[root@deep FAQ-OMatic-2.709]# mkdir -p /home/httpd/cgi-bin/fom-meta
[root@deep FAQ-OMatic-2.709]# mkdir -p /home/httpd/faqomatic
[root@deep FAQ-OMatic-2.709]# chown root.www /home/httpd/cgi-bin/fom
[root@deep FAQ-OMatic-2.709]# chown -R www.www /home/httpd/cgi-bin/fom-meta/
[root@deep FAQ-OMatic-2.709]# chown -R www.www /home/httpd/faqomatic/
The make command will compile all source files into executable binaries, and make install
will install the Perl programs and any supporting files into the appropriate locations. The mv
command will move the main fom CGI program of Faq-O-Matic to the cgi-bin directory of your
Apache web server. The mkdir will create new directories named fom-meta and faqomatic
under the /home/httpd/ directory where well handle all related FAQ-O-Matic files. Finally, the
chown command will set the owner of the fom CGI program to be the super-user root and
the group to be the user Apache run as www and will set the directories fom-meta and
faqomatic to be owned by www and group by www.
NOTE: Youll receive a temporary password via mail during the compilation of the software. This
password will be necessary to complete later the installation of Faq-O-Matic through the web
interface.
Inform Apache about the location of Faq-O-Matic files
Once Faq-O-Matic has been installed in the system, we must add the following lines in the
httpd.conf file of Apache to be able to locate and use it feature.
Step 1
Edit the httpd.conf file (vi /etc/httpd/conf/httpd.conf) and add the following lines between the
section <IfModule mod_alias.c> and </IfModule>:
Alias /faqomatic/ "/home/httpd/faqomatic/"
<Directory "/home/httpd/faqomatic">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /bags/ "/home/httpd/faqomatic/bags/"
<Directory "/home/httpd/faqomatic/bags">
Options None
AllowOverride None
Order allow,deny