[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
user:zeman:addicter [2010/02/22 12:50]
zeman Alignment viewer.
user:zeman:addicter [2010/02/22 13:26]
zeman How to install and configure Apache.
Line 12: Line 12:
   * To be able to generate alignments that will be displayed by Addicter, you need Giza++ or equivalent. The first training few steps of the Moses suite will do.   * To be able to generate alignments that will be displayed by Addicter, you need Giza++ or equivalent. The first training few steps of the Moses suite will do.
   * Check out Addicter code from the Failfinder SVN repository.   * Check out Addicter code from the Failfinder SVN repository.
 +
 +==== How to install and configure Apache ====
 +
 +This tutorial currently focuses on installing Apache HTTP Server on Microsoft Windows. If you are experienced user of another operating system and wish to share advice, please feel free to [[mailto:zeman@ufal.mff.cuni.cz|contact me]].
 +
 +  * Download the Apache HTTP Server from http://httpd.apache.org/download.cgi. For MS Windows, you can download a package for the Microsoft Installer (''.msi''). Install it by double-clicking on the installation file. I suggest installing Apache as a system service. That way, it will automatically start on startup of your computer.
 +  * Configure the server. This essentially means editing a configuration file and restarting the server. Depending on your system settings, Apache version etc., the configuration file will reside in a path similar to this: ''C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf''. Alternatively, you can access it via your Start Menu: Apache -> Apache HTTP Server 2.2 -> Configure Apache Server -> Edit the Apache httpd.conf Configuration File.
 +    * Look for a ''ScriptAlias'' directive. It tells the server: 1. what path on the hard disk contains scripts that can generate dynamic HTML content on the fly, and 2. how the path will be represented in the URL (web address). For example <code>ScriptAlias /cgi/ "C:/Documents and Settings/Dan/Documents/Web/cgi/"</code> says that the URL ''http://localhost/cgi/anyscript.pl'' leads to your script ''C:\Documents and Settings\Dan\Documents\Web\cgi\anyscript.pl'', and that it's a script (i.e., the server shall invoke it and send its output, instead of sending the script itself).
 +    * Under Windows, you will also want to set <code>ScriptInterpreterSource registry</code> It tells the server that the Windows registry shall be used to figure out how to run a script (e.g., that ''C:\Perl\Perl.exe'' binary must be run to interpret a ''.pl'' script).
 +  * Restart the server. On the main Windows panel, there is (typically in the lower right corner) a set of icons, including a new one for Apache. Right-click on it, select Open Apache Monitor, then Restart.
  
 ===== Alignment viewer ===== ===== Alignment viewer =====

[ Back to the navigation ] [ Back to the content ]