|
Start the Apache Mod_Perl Server
|
|---|
|
An Apache startup configuration file is needed to control the Apache Mod_Perl Server. The following commands demonstrate how to create and modify this file.
Copy the apachectl file from the Apache Perl Server 'bin' directory to a target directory. In this demonstration it is placed in the /opt/conf/ directory.
|
cp /opt/apache-perl/bin/apachectl /opt/conf/apachectl-perl
|
|
Insure the file is executable:
|
chmod +x /opt/conf/apachectl-perl
|
|
Create a symbolic link within the services directory:
|
ln -s /opt/conf/apachectl-perl /etc/rc.d/init.d/
|
|
Open the apachectl-perl file in a text editor. Change the HTTPD= line so that it reads in the proper httpd.conf.perl file.
|
HTTPD='/opt/apache-perl/bin/httpd -f /opt/conf/httpd.conf.perl'
|
|
You should now be able to start the Apache Mod_Perl Server.
|
service apachectl-perl start
|
|
Check for operation using 'ps' and check the error logs if errors exist.
|