User Tools

Site Tools


eric:computer:greenstone_digital_library:greenstone.installing.linux.04

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 <html>

</html>eric_swanson@wycliffe.net<html>

</html> /DocumentRoot <html>

</html>/var/www/gsdl-2-84 <html>

</html> Paste the following lines at the bottom of the file: /ScriptAlias /greenstone/cgi-bin “/var/www/gsdl-2-84/cgi-bin” <Directory “/var/www/gsdl-2-84/cgi-bin”> Options None AllowOverride None Order deny,allow Allow from all <html></Directory></html>

  Alias /greenstone/collect "/var/www/gsdl-2-84/collect"
  <Directory "/var/www/gsdl-2-84/collect">
     Options None
     AllowOverride None
     Order deny,allow
     Allow from all
  </Directory>

  Alias /greenstone "/var/www/gsdl-2-84"
  <Directory "/var/www/gsdl-2-84">
     Options None
     AllowOverride None
     Order deny,allow
     Allow from all
  </Directory>

Edit the default-ssl file (the secure http, port 443 setup): $ vim default-ssl

/ServerAdmin <html>

</html>eric_swanson@wycliffe.net<html>

</html> /DocumentRoot <html>

</html>/var/www/gsdl-2-84 <html>

</html> 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 <html>

</html>Listen 443<html>

</html> 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 <html>

</html>ssl.conf<html>

</html> and <html>

</html>ssl.load<html>

</html> listed here.

Now let’s make sure SSL is enabled: $ cd /etc/apache2/mods-enabled $ ls (if you see symbolic links for <html>

</html>ssl.conf<html>

</html> and <html>

</html>ssl.load<html>

</html> 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

eric/computer/greenstone_digital_library/greenstone.installing.linux.04.txt · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki