Title: Greenstone.Installing.Linux.04 \\
Created: 2011-11-19 23:56:34 +0000 \\
====== Greenstone Digital Library, Chronicle, Wycliffe Journalism Library ======
===== 04. Configuring Apache2 =====
Still as root, change directories to the sites-available directory: $ cd /etc/apache2/sites-available
Make a backup of existing files in this directory: $ mkdir originals $ cp ./* ./originals/
Edit the default file (the port 80 setup): $ vim default
/ServerAdmin eric_swanson@wycliffe.net /DocumentRoot /var/www/gsdl-2-84 Paste the following lines at the bottom of the file: /ScriptAlias /greenstone/cgi-bin “/var/www/gsdl-2-84/cgi-bin” Options None AllowOverride None Order deny,allow Allow from all
Alias /greenstone/collect "/var/www/gsdl-2-84/collect"
Options None
AllowOverride None
Order deny,allow
Allow from all
Alias /greenstone "/var/www/gsdl-2-84"
Options None
AllowOverride None
Order deny,allow
Allow from all
Edit the default-ssl file (the secure http, port 443 setup): $ vim default-ssl
/ServerAdmin eric_swanson@wycliffe.net /DocumentRoot /var/www/gsdl-2-84 Paste the same lines from above at the bottom of this file.
Change to the sites-enabled directory: $ cd /etc/apache2/sites-enabled $ ls -al
The files in this directory are symbolic links to the files in the sites-available directory. If you need to create a symbolic link, use this method: $ ln -s -T /etc/apache2/sites-available/default default
Now we need to edit the ports.conf file: $ cd /etc/apache2 $ vim ports.conf
Add a line before the Listen 443 line (this will allow us to turn off port 80 when we are ready): NameVirtualHost *:443
Now we need to make sure the Apache2 module for SSL is installed: $ cd /etc/apache2/mods-available $ ls (you should see ssl.conf and ssl.load listed here.
Now let’s make sure SSL is enabled: $ cd /etc/apache2/mods-enabled $ ls (if you see symbolic links for ssl.conf and ssl.load the you are all set. However, if you do not see them, create symbolic links for them using the previously mentioned method.
Previous: [[GreenstoneInstallingOnUbuntu03]] :: Next: [[GreenstoneInstallingOnUbuntu05]]