Apache2 webserver >= 2.2.x with the following Apache modules enabled
rewrite
filter
deflate
headers
expires
The setup requires root access privileges. You need to open the command line and enter the listed commands. After each command press ENTER.
sudo apt-get install apache2
Apache web server needs to be fine tuned for translate5 to work properly. Switch to Apache directory with
cd /etc/apache2
and enter these commands to enable required Apache submodules
sudo a2enmod rewrite filter deflate headers expires
sudo apache2ctl restart
Last command is mandatory for changes to take effect. If you see, upon issuing sudo apache2ctl restart, the following warning:
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
do not worry, it’s not important.
sudo apt-get install mysql-server mysql-client
The installation process will prompt a few times for a new root password access for MySQL. It’s fine leaving it blank; otherwise, please ensure you type the same every time. You can test the reachability of the database by issuing at a terminal:
mysql -u root -p
If you specified a password during MySQL setup, type it when prompted; otherwise, just hit Return. If everything went fine, you should see the greeting message and the shell prompt:
mysql>
Leave mysql shell prompt with
exit;
Add the php 5.6 repository, since it is not yet included in Ubuntu
sudo add-apt-repository ppa:ondrej/php5-5.6
If you get an error here, you need to install python-software-properties first (and then do the line above again):
sudo apt-get update sudo apt-get install python-software-properties
Now refresh your package list
sudo apt-get update
and install php
sudo apt-get install php5
Check if you have the correct version of php installed
php5 -v
Install the extension dom, fileinfo, iconv, mbstring, zip
sudo apt-get install libapache2-mod-php5
Install extensions pdo_mysql and gd
sudo apt-get install php5-mysql
php5-gd
(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
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
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
<Directory "/var/www/translate5/public">
AllowOverride All
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
Save the file.
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.
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
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.
cd /var/www/translate5
git clone git@bitbucket.org:mittagqi/translate5_released.git .
The trailing "." is important, otherwise you will get another directory inside your directory.
git submodule sync
git submodule update --init
git submodule foreach git checkout master
git submodule foreach git pull
No get the submodules of the ZfExtended library and the translate5 editor module
cd library/ZfExtended
git submodule sync
git submodule update --init
git submodule foreach git checkout master
git submodule foreach git pull
cd /var/www/translate5/application/modules/editor
git submodule sync
git submodule update --init
git submodule foreach git checkout master
git submodule foreach git pull
Download database bootstrap from
http://www.translate5.net/downloads/translate5-DB-init.zip
Unzip it. On the command line change to the directory with the extracted DbInit.sql
cd /path_to_your_dir/
Import the DbInit.sql to your MySQL
mysql -u root -p < DbInit.sql
You have to restart apache to apply all changes made to configuration.
sudo /etc/init.d/apache2 restart
Open your browser and call http://translate5.l and have fun with translate5.
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|