Traduora is a web-based application that provides an essential means of managing translations and multilingual content in various software projects. This tutorial will guide you through the steps of installing and configuring Traduora on Debian Latest.
Traduora is built on Laravel, a web application framework that runs on the PHP programming language. Therefore, we need to install PHP and its accompanying modules, as well as the NGINX web server, which will serve as our webserver for multiple translation projects.
Enter the command below to install PHP and NGINX to your Debian machine:
sudo apt-get install -y nginx wget curl composer unzip php-fpm php-cli php-mbstring php-xml php-curl php-gd php-zip php-mysql
You will be prompted to enter your administrative password, then press 'y' to proceed with the installation.
After installing the dependencies, download Traduora from the official website using the command below:
wget https://s3.us-west-2.amazonaws.com/traduora/release/2.2.0/traduora-v2.2.0.zip
Once downloaded, use the command below to unzip the file:
unzip traduora-v2.2.0.zip
This will create a directory named traduora
in your current working directory.
Traduora requires a webserver, so we will configure NGINX to serve as its webserver.
Create a configuration file for Traduora by running the following command.
sudo nano /etc/nginx/sites-available/traduora
Add the following content to the file:
server {
listen 80;
server_name your_domain.com;
root /var/www/traduora/public;
index index.php index.html index.htm index.nginx-debian.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
Replace your_domain.com
with your domain name or server IP address.
Save the file by pressing Ctrl + X, then Y and enter.
Create a symbolic link to enable this configuration.
sudo ln -s /etc/nginx/sites-available/traduora /etc/nginx/sites-enabled/
Restart NGINX to activate the new configuration:
sudo systemctl restart nginx
Create a new server block file for Traduora by running the following command.
sudo nano /etc/nginx/conf.d/traduora.conf
Add the following content to the file:
client_max_body_size 20M;
client_body_timeout 300s;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
resolver 127.0.0.1;
Save the file by pressing Ctrl + X, then Y and Enter.
Go to the Traduora directory.
cd traduora
Run the following command to install Laravel dependencies.
composer install
Rename the example .env.example
file to .env
.
mv .env.example .env
Edit .env
file using the following command.
nano .env
Replace the following sections with your appropriate settings:
APP_URL=http://your_domain.com
DB_DATABASE=your_databasename
DB_USERNAME=your_databaseusername
DB_PASSWORD=your_databasepassword
After configuring the .env
file, run the following command to create the necessary tables in your database:
php artisan migrate
You will be prompted to confirm the migration execution.
Type “yes” and press enter if the details are correct.
Run the following command to generate the application key:
php artisan key:generate
This will generate a unique application key for each running instance and improve security.
Launch the application by running the command below:
php artisan serve
Visit your Traduora's homepage at http://your_domain.com:8000
Traduora is now installed on your Debian server. You can then create a new user account on the homepage to start managing translations and content. Enjoy!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!