Running the website

From Apertium
Revision as of 10:00, 10 April 2009 by Francis Tyers (talk | contribs)
Jump to navigation Jump to search

This is instructions on how to get the Apertium website with it's services, in another host.

Setting up

cd apertium-tools/apertium-turl/
g++ turl.c -o turl
sudo cp turl /usr/local/bin/
cd -

cd webspace
vi config/apertium-config.php
sudo ln -s $PWD /var/www/apertium-www


sudo vi /var/lib/locales/supported.d/local

add:
en_GB.utf8  UTF-8
en_GB.UTF-8 UTF-8
es_ES.UTF-8 UTF-8

sudo dpkg-reconfigure locales
sudo locale-gen en_GB.utf8
locale -a


Now, edit /etc/apache2/sites-enabled/apertium and insert:


#NameVirtualHost *:80
<VirtualHost *:80>
#	ServerName www.apertium.org
	ServerAdmin webmaster@apertium.org
	
	DocumentRoot /var/www/apertium-www/
	AccessFileName .htaccess

	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
		deny from 85.176.169.45
	</Directory>

	Alias /styles/ /var/www/styles/
	<Directory "/var/www/styles/">
		AllowOverride None
		Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		DirectoryIndex index.cgi index.pl index.php index.html
		Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>

	ErrorLog /var/log/apache2/apertium-error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog /var/log/apache2/apertium-access.log combined
	ServerSignature On
</VirtualHost>