Page tree

Versions Compared

Key

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

...

sudo apt-get install php5-mysql php5-gd

Install Oracle Java

(needed by openTMStermTagger, which is used by translate5)

sudo apt-add-repository ppa:webupd8team/java 
sudo apt-get update 
sudo apt-get install oracle-java8-installer

Install Zend Framework

Download the Zend Framework version currently used by translate5 from

http://www.translate5.net/downloads/Zend.zip

Unzip the file. 

Move the contained folder "Zend" to "/usr/share/php". The resulting path should look like

/usr/share/php/Zend

Open your php.ini-file for editing (on Ubuntu it resides in /etc/php5/apache2/php.ini)

Look for a line starting with

;include_path = "

Uncomment it (remove the starting ";") and make sure it contains the path /usr/share/php. It should look like this:

include_path = ".:/usr/share/php"

Save the php.ini file

Configure translate5 apache vhost

Create translate5 directory

sudo mkdir /var/www/translate5
sudo chown apache:apache /var/www/translate5

Create config file

sudo touch /etc/apache2/sites-available/translate5.conf
sudo chmod 550 /etc/apache2/sites-available/translate5.conf

Open the file and paste the following content to it

<VirtualHost *:80>
DocumentRoot "/home/marcstandard/NetBeansProjects/app-mittagqi-translate5Net/public"
ServerAlias translate5.l
SetEnv APPLICATION_ENV application
SetEnv APPLICATION_AGENCY marc
<Directory "/home/marcstandard/NetBeansProjects/app-mittagqi-translate5Net/public">
AllowOverride All
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>

Restart apache

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

sudo /etc/init.d/apache2 restart

Install git

The easiest way to install and update translate5 with its submodules and dependencies is so use git.

sudo apt-get update
sudo apt-get install git

Install translate5

The public git master branch of translate5 will always contain the latest stable version of the master branch. New features may not be in the master branch for a longer time, though.

git clone git@bitbucket.org:mittagqi/translate5_released.git .

The trailing "." is important, otherwise you will get another directory inside your directory.

Step-by-step guide

 

Info

...