[ 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
Previous revision
Next revision Both sides next revision
user:zeman:addicter [2010/02/22 14:36]
zeman The first how-to guide.
user:zeman:addicter [2010/05/28 09:10]
zeman A note on Apache on Ubuntu.
Line 14: Line 14:
  
 ==== How to install and configure Apache ==== ==== How to install and configure Apache ====
 +
 +=== Microsoft Windows ===
  
 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]]. 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]].
Line 22: Line 24:
     * 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).     * 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.   * 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.
 +
 +=== Ubuntu Linux ===
 +
 +Install the Apache HTTP server package. After successful installation, there should be a file ''/etc/apache2/sites-enabled/000-default''. Edit it (you need root permissions). There should be a section similar to the following:
 +
 +<code>
 + ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
 + <Directory "/usr/lib/cgi-bin">
 + AllowOverride None
 + Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
 + Order allow,deny
 + Allow from all
 + </Directory>
 +</code>
 +
 +Either create a copy of the section with new alias and path (eg. ''ScriptAlias /addicter-cgi/ /home/user/addicter/cgi/'') or use the ''/usr/lib/cgi-bin'' (or whatever folder you see by default) for your addicter CGI scripts and data (see below).
  
 ==== How to install Addicter ==== ==== How to install Addicter ====
Line 62: Line 80:
 <code>addictindex.pl \ <code>addictindex.pl \
     -trs train.en -trt train.hi -tra train.ali \     -trs train.en -trt train.hi -tra train.ali \
-    -s test.en -r test.hi -h test.joshua.hi -ra test.ali -ha test.joshua.ali \+    -s test.en -r test.hi -h test.system.hi -ra test.ali -ha test.system.ali \
     -o $CGI</code>     -o $CGI</code>
  

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