Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Please ensure on pasting the above line, that between "127.0.0.1" and "translate5.local" is a TAB and not multiple spaces. In the latter case it is possible, that the name resolution does not work properly!

Configure translate5 apache vhost

Create the apache vhost config file

Code Block
languagebash
sudo touch /etc/apache2/sites-available/translate5.conf
sudo chmod 660 /etc/apache2/sites-available/translate5.conf
sudo ln -s ../sites-available/translate5.conf /etc/apache2/sites-enabled/translate5.conf

Edit the config file and paste the following content to it

Code Block
languagetext
title/etc/apache2/sites-available/translate5.conf
<VirtualHost *:80>
  DocumentRoot "/var/www/translate5/public"
  ServerAlias translate5.local
  SetEnv APPLICATION_ENV application
  php_value include_path .:/var/www/translate5/library/zend/:/usr/share/php5:/usr/share/php
  <Directory "/var/www/translate5/public">
    AllowOverride All
    Options Indexes FollowSymLinks
    Order allow,deny
    Allow from all
    Require all granted
  </Directory>
</VirtualHost>

Save the file.

If you use an already existing virtual host, please add at least the following both settings:

  SetEnv APPLICATION_ENV application
php_value include_path .:/var/www/translate5/library/zend/:/usr/share/php5:/usr/share/php

Please be aware, that you have to check your webserver and this apache configuration regarding security, if you oppose your translate5 instance to the internet. Your security is your responsibility and can not be covered by this manual.

Restart apache

You have to restart apache to apply all changes made to configuration.

Code Block
languagebash
sudo /etc/init.d/apache2 restart

Download and install Translate5

...

Code Block
languagetext
titleExample output of install-and-update.sh
collapsetrue
Checking server for updates and packages:
=========================================

Downloader: Downloading Translate5 X.Y.Z from http://www.translate5.net/downloads/translate5.zip
Downloader: Updated application translate5
Downloader: Downloading translate5 DB init from http://www.translate5.net/downloads/translate5-DB-init.zip
Downloader: Fetched dependency translate5-DB-init
Downloader: Installed dependency translate5-DB-init
[... more dependency downloads ...]

Translate5 Installation
=======================

Please enter the MySQL database settings, the database must already exist.
Default character set must be utf8. This can be done for example with the following command:
  CREATE DATABASE IF NOT EXISTS `translate5` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

Please enter the DB host (default: localhost): 
Please enter the DB username (default: root):
Please enter the DB password: 
Please enter the DB database (default: translate5):

Creating the database base layout...
Translate5 tables created.

DB Config successfully stored in ./application/config/installation.ini!


Please enter the hostname of the virtual host which will serve Translate5 (default: translate5.local):

Updating Translate5 database scheme
===================================

DB Update OK
  New statement files: 14
  Modified statement files: 21

Translate5 installation / update done.
Please visit http://translate5.local/ to enjoy Translate5.
In case of errors on installation / update please contact support@translate5.net

Configure translate5 apache vhost

Create the apache vhost config file

Code Block
languagebash
sudo touch /etc/apache2/sites-available/translate5.conf
sudo chmod 660 /etc/apache2/sites-available/translate5.conf
sudo ln -s ../sites-available/translate5.conf /etc/apache2/sites-enabled/translate5.conf

Edit the config file and paste the following content to it

Code Block
languagetext
title/etc/apache2/sites-available/translate5.conf
<VirtualHost *:80>
  DocumentRoot "/var/www/translate5/public"
  ServerAlias translate5.local
  SetEnv APPLICATION_ENV application
  php_value include_path .:/var/www/translate5/library/zend/:/usr/share/php5:/usr/share/php
  <Directory "/var/www/translate5/public">
    AllowOverride All
    Options Indexes FollowSymLinks
    Order allow,deny
    Allow from all
    Require all granted
  </Directory>
</VirtualHost>

Save the file.

If you use an already existing virtual host, please add at least the following both settings:

  SetEnv APPLICATION_ENV application
php_value include_path .:/var/www/translate5/library/zend/:/usr/share/php5:/usr/share/php

Please be aware, that you have to check your webserver and this apache configuration regarding security, if you oppose your translate5 instance to the internet. Your security is your responsibility and can not be covered by this manual.

Restart apache

You have to restart apache to apply all changes made to configuration.

Code Block
languagebash
sudo /etc/init.d/apache2 restartplease visit http://confluence.translate5.net or post a message in translate5 user group, which is linked from http://www.translate5.net/index/usage/.

openTMStermTagger Configuration

openTMStermTagger is not part of translate5, but translate5 builds on it to find and highlight terminology.

...