1. How do I configure an Apache server?
The configuration of the Apache server is controlled by a text file called
httpd.conf. On a Linux machine this is most likely found at /etc/httpd/conf/.
On a Windows machine it is most likely found at C:/Program Files/Apache Group/Apache(2)/conf/.
This file can be editted in any text editor.
The easiest way to configure the Apache server to run GPM, is to change Apache's
DocumentRoot directive to "C:/Program Files/Apache Group/Apache2/htdocs/thegpm" on Windows
or "/var/www/thegpm/" on Linux. Make the same change to the line about 25 lines
down, as follows for Windows:
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Program Files/Apache Group/Apache2/htdocs/thegpm">
or for Linux:
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/thegpm">
The only other changes required if Apache is set up this way is to add
a new ScriptAlias directive as follows for Windows:
ScriptAlias /thegpm-cgi/ "C:/Program Files/Apache Group/Apache2/htdocs/thegpm/thegpm-cgi/"
or for Linux:
ScriptAlias /thegpm-cgi/ "/var/www/thegpm/thegpm-cgi/"
And set the permissions on thegpm-cgi directory by adding the following for Windows:
<Directory "C:/Program Files/Apache Group/Apache2/htdocs/thegpm/thegpm-cgi">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
or for Linux:
<Directory "/var/www/thegpm/thegpm-cgi">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
It is not manditory to configure Apache with the DocumentRoot changed this
way, but otherwise a number of Alias directives must be added for folders
within thegpm folder. These changes are made in the Alias section of httpd.conf.
For example on Windows:
Alias /tandem/ "C:/www/thegpm/tandem/"
<Directory "C:/www/thegpm/tandem">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
or on Linux:
Alias /tandem/ "/pathto/custom/thegpm/tandem/"
<Directory "/pathto/custom/thegpm/tandem">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Aliases must be added as above for the 'cache', 'gpm' and 'pics' folders as well. Be sure to restart the Apache service after the changes are made. On Windows
from the start menu go to Settings/Control Panel/Administrative Tools/Services.
On Linux open a command prompt and enter the following command: service httpd restart
or /etc/sbin/httpd restart.
|