{"id":19529,"date":"2016-07-06T07:50:18","date_gmt":"2016-07-06T12:50:18","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=19529"},"modified":"2022-06-03T03:42:48","modified_gmt":"2022-06-03T08:42:48","slug":"how-to-install-traq-on-an-ubuntu-16-04-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-traq-on-an-ubuntu-16-04-vps\/","title":{"rendered":"How To Install Traq on Ubuntu 16.04"},"content":{"rendered":"
<\/p>\n
We’ll show you, How To Install Traq on Ubuntu 16.04. Traq is powerful project management and issue tracking system based on PHP. It is capable of handling multiple projects with per-project permissions, custom fields, milestones, email notifications and much more. In this tutorial we will show you how to install Traq on an Ubuntu 16.04 VPS<\/a> with Apache and PHP.<\/p>\n Traq comes with a lot of useful features such as:<\/p>\n In order to run Traq, your Ubuntu 16.04 VPS has to meet the following requirements:<\/p>\n In this tutorial we will install all of the requirements.<\/p>\n Let’s start with the installation. First of all make sure your server OS packages are fully up-to-date:<\/p>\n Run the following command on your Ubuntu VPS to install Apache web server<\/p>\n Once Apache is installed, start it and enable it to start on boot<\/p>\n Install PHP and few PHP modules required by Traq<\/p>\n Next, install MySQL database server<\/p>\n Enable the MySQL server to start on boot:<\/p>\n Once the installation is completed, it is recommended to execute the ‘mysql_secure_installation’ script, to secure your MySQL server and set a root password<\/p>\n Traq requires an empty database to store its data. Create a new MySQL database by logging in to the MySQL server and executing the following commands:<\/p>\n Don’t forget to replace ‘Your_Password’ with an actual, strong password.<\/p>\n Change the current working directory to the document root directory and clone Traq from their official GitHub repository<\/p>\n And checkout the latest version<\/p>\n To run Traq properly, create a new\u00a0 .htaccess file<\/p>\n With the following content<\/p>\n Set the correct ownership<\/p>\n Create a new virtual host directive in Apache.<\/p>\n with the following content<\/p>\n Run the following command to enable the configuration file<\/p>\n And restart the Apache web server for the changes to take effect:<\/p>\n If you closely followed this tutorial, you will be able to access Traq by pointing your favorite web browser at http:\/\/your-domain.com . Traq’s web installation wizard will show up. Follow the wizard to complete the installation.<\/p>\n For more information and documentation about Traq, please visit their official website.<\/p>\n Of course you don\u2019t have to\u00a0install Traq on Ubuntu 16.04 if you use one of our Web Hosting Plans<\/a>, in which case you can simply ask our expert Linux admins to install Traq on Ubuntu 16.04,\u00a0 for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/strong><\/span> If you liked this post, on how to\u00a0install Traq on Ubuntu 16.04,\u00a0 please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" We’ll show you, How To Install Traq on Ubuntu 16.04. Traq is powerful project management and issue tracking system based … <\/p>\n\n
\nand many more…<\/li>\n<\/ul>\n\n
apt-get update && apt-get upgrade\r\napt-get install git<\/pre>\n
apt-get install apache2<\/pre>\n
systemctl start apache2\r\nsystemctl enable apache2<\/pre>\n
apt-get install php php-common php-mcrypt<\/pre>\n
apt-get install mysql-server mysql-client<\/pre>\n
systemctl enable mysql<\/pre>\n
mysql -u root -p\r\nmysql> create database traqdb;\r\nmysql> GRANT ALL PRIVILEGES ON traqdb.* TO 'traquser'@'localhost' IDENTIFIED BY 'Your_Password';\r\nmysql> flush privileges;\r\nmysql> quit<\/pre>\n
cd \/var\/www\/html\/\r\ngit clone --recursive https:\/\/github.com\/nirix\/traq<\/pre>\n
cd traq\/\r\ngit checkout v3.6.0<\/pre>\n
vim\u00a0 .htaccess<\/pre>\n
RewriteEngine On\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteRule ^(.*)$ index.php\/$1 [L]<\/code><\/pre>\n
chown -R www-data: \/var\/www\/html\/traq\/<\/pre>\n
vim \/etc\/apache2\/sites-available\/traq.conf<\/pre>\n
<VirtualHost *:80>\r\nServerAdmin admin@your-domain.com\r\nDocumentRoot \/var\/www\/html\/traq\/\r\nServerName your-domain.com\r\nServerAlias www.your-domain.com\r\n<Directory \/var\/www\/html\/your-domain.com\/>\r\nOptions FollowSymLinks\r\nAllowOverride All\r\n<\/Directory>\r\nErrorLog \/var\/log\/apache2\/your-domain.com-error_log\r\nCustomLog \/var\/log\/apache2\/your-domain.com-access_log common\r\n<\/VirtualHost><\/pre>\n
a2ensite traq.conf<\/pre>\n
service apache2 restart<\/pre>\n
\n