How to install Rukovoditel in Ubuntu

To install Rukovoditel to manage projects in Ubuntu 16.04

Rukovoditel is an open source application to manage projects and its tasks etc. This permits the user to develop their own applications. In this article we will discuss about the installation of Rukovoditel. It is web based Interface so it requires a LAMP or LEMP Server.


To create a new user

Run the following command to install Mariadb package.

root@linuxhelp:~# apt-get install mariadb-server -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient20 libreadline5 libterm-readkey-perl mariadb-client-10.0 mariadb-client-core-10.0
mariadb-common mariadb-server-10.0 mariadb-server-core-10.0 mysql-common
Suggested packages:
libmldbm-perl libnet-daemon-perl libsql-statement-perl libipc-sharedcache-perl mailx mariadb-test tinyca
.
.
.
Setting up libreadline5:amd64 (5.2+dfsg-3build1) ...
Setting up mariadb-client-core-10.0 (10.0.25-0ubuntu0.16.04.1) ...
Setting up mariadb-client-10.0 (10.0.25-0ubuntu0.16.04.1) ...
Setting up mariadb-server-core-10.0 (10.0.25-0ubuntu0.16.04.1) ...
Setting up mariadb-server-10.0 (10.0.25-0ubuntu0.16.04.1) ...
Setting up libhtml-template-perl (2.95-2) ...
Setting up mariadb-server (10.0.25-0ubuntu0.16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...

Start and enable the services.

root@linuxhelp:~# systemctl start mysql
root@linuxhelp:~# systemctl enable mysql
mysql.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable mysql

Set the root password for Mariadb.

root@linuxhelp:~# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we' ll need the current
password for the root user.  If you' ve just installed MariaDB, and
you haven' t set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
.
.
.
By default, MariaDB comes with a database named ' test'  that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
ERROR 1008 (HY000) at line 1: Can' t drop database ' test'   database doesn' t exist
... Failed!  Not critical, keep moving...
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
Cleaning up...
All done!  If you' ve completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!

Install the apache package by running the following command.

root@linuxhelp:~# apt-get install apache2 -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
he following additional packages will be installed:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0
0 upgraded, 9 newly installed, 0 to remove and 69 not upgraded.
.
.
.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...

Install the PHP and PHP extensions necessary for Rukovoditel package.

root@linuxhelp:~# apt-get install php7.0 libapache2-mod-php7.0 php7.0-mbstring php7.0-curl php7.0-zip php7.0-gd php7.0-mysql php7.0-mcrypt -y

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libmcrypt4 libzip4 php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline
Suggested packages:
php-pear libmcrypt-dev mcrypt
The following NEW packages will be installed:
libapache2-mod-php7.0 libmcrypt4 libzip4 php-common php7.0 php7.0-cli php7.0-common php7.0-curl php7.0-gd php7.0-json php7.0-mbstring php7.0-mcrypt php7.0-mysql
php7.0-opcache php7.0-readline php7.0-zip
.
.
.
Creating config file /etc/php/7.0/mods-available/mcrypt.ini with new version
Setting up php7.0-mysql (7.0.4-7ubuntu2.1) ...
Creating config file /etc/php/7.0/mods-available/mysqlnd.ini with new version
Creating config file /etc/php/7.0/mods-available/mysqli.ini with new version
Creating config file /etc/php/7.0/mods-available/pdo_mysql.ini with new version
Setting up php7.0-zip (7.0.4-7ubuntu2.1) ...
Creating config file /etc/php/7.0/mods-available/zip.ini with new version
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for libapache2-mod-php7.0 (7.0.4-7ubuntu2.1) ...

Enable the rewrite module and then restart the apache service.

root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
root@linuxhelp:~# service apache2 restart

Download the package by using the following command.

root@linuxhelp:~# wget http://downloads.sourceforge.net/project/rukovoditel/rukovoditel_1.7.1.zip

--2016-07-19 12:56:41--  http://downloads.sourceforge.net/project/rukovoditel/rukovoditel_1.7.1.zip
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://nchc.dl.sourceforge.net/project/rukovoditel/rukovoditel_1.7.1.zip [following]
--2016-07-19 13:11:45--  (try: 2)  http://nchc.dl.sourceforge.net/project/rukovoditel/rukovoditel_1.7.1.zip
Connecting to nchc.dl.sourceforge.net (nchc.dl.sourceforge.net)|211.79.60.17|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 19693470 (19M), 19453366 (19M) remaining [application/octet-stream]
Saving to: ‘ rukovoditel_1.7.1.zip’ 
rukovoditel_1.7.1.zip                      100%[+=======================================================================================> ]  18.78M   461KB/s    in 35s
2016-07-19 13:12:20 (548 KB/s) - ‘ rukovoditel_1.7.1.zip’  saved [19693470/19693470]

Extract the downloaded package by using the following command.

root@linuxhelp:~# unzip rukovoditel_1.7.1.zip -d rukovoditel
Archive:  rukovoditel_1.7.1.zip
creating: rukovoditel/backups/
inflating: rukovoditel/backups/.htaccess
creating: rukovoditel/config/
inflating: rukovoditel/config/.htaccess
inflating: rukovoditel/config/database_example.php
inflating: rukovoditel/config/server.php
creating: rukovoditel/css/
inflating: rukovoditel/css/default.css
creating: rukovoditel/css/skins/
creating: rukovoditel/css/skins/blue/
.
.
.
inflating: rukovoditel/index.php
inflating: rukovoditel/.htaccess
inflating: rukovoditel/license.txt
inflating: rukovoditel/favicon.ico
inflating: rukovoditel/robots.txt
inflating: rukovoditel/css/.htaccess
inflating: rukovoditel/install/db_updates/update_1.7.sql
inflating: rukovoditel/install/db_updates/ext/ext_1.3.sql
inflating: rukovoditel/install/ext_autoupdate/from_1.2_to_1.3.php
inflating: rukovoditel/tmp/.htaccess
root@linuxhelp:~# ls
backups  css      Documents  examples.desktop  images    index.php  js           log      Music     plugins  readme.txt  rukovoditel            template   tmp      Videos
config   Desktop  Downloads  favicon.ico       includes  install    license.txt  modules  Pictures  Public   robots.txt  rukovoditel_1.7.1.zip  Templates  uploads
root@linuxhelp:~# mv rukovoditel/ /var/www/html/rukovoditel
Make sure the document root as the default ownership of apache user called www-data or else we need to set it manually as follows.
root@linuxhelp:~# chown www-data:www-data -R /var/www/html/rukovoditel/

Create the new configuration file and a soft link for the config file.

root@linuxhelp:~# touch /etc/apache2/sites-available/rukovoditel.conf
root@linuxhelp:~# ln -s /etc/apache2/sites-available/rukovoditel.conf /etc/apache2/sites-enabled/rukovoditel.conf

Open the config file by executing the following command.

root@linuxhelp:~# vim /etc/apache2/sites-available/rukovoditel.conf

Add the following Entries into it.

< VirtualHost *:80> 
ServerAdmin admin@linuxhelp.com
DocumentRoot /var/www/html/rukovoditel/
ServerName linuxhelp.com
ServerAlias www.linuxhelp.com
< Directory /var/www/html/rukovoditel/> 
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
< /Directory> 
ErrorLog /var/log/apache2/linuxhelp.com-error_log
CustomLog /var/log/apache2/linuxhelp.com-access_log common
< /VirtualHost> 

Restart the apache services.

root@linuxhelp:~# service apache2 restart

Open the browser and visit http://< IP_address> /rukovoditel

Select the preferred language.

Click “ Database Config” to configure your database.

Utilise the following command to develop the database for Rukovoditel.

root@linuxhelp:~# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with   or g.
Your MariaDB connection id is 50
Server version: 10.0.25-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type ' help '  or ' h'  for help. Type ' c'  to clear the current input statement.
MariaDB [(none)]>  CREATE DATABASE linuxhelp 
Query OK, 1 row affected (0.06 sec)
MariaDB [(none)]>  GRANT ALL PRIVILEGES ON linuxhelp.* TO ' linuxhelp' @' localhost'  IDENTIFIED BY ' linux'  
Query OK, 0 rows affected (0.08 sec)
MariaDB [(none)]>  FLUSH PRIVILEGES 
Query OK, 0 rows affected (0.02 sec)
MariaDB [(none)]>  exit
Bye

After creating database enter the details and Click Install Database.

Now start with the general configuration and click install.

After the installation completes, Click login.

Enter the user credentials to Login

The rukovoditel Dashboard appears.

A warning message appears at the top. To remove this error, remove the install folder after completing the rukovoditel installation.

root@linuxhelp:~# rm -rf /var/www/html/rukovoditel/install/

Dive into your browser again and reload the page.

To create a new project

Go to “ Projects” and choose “ Add Project”

Enter the details for the project and click “ Save” button.

To create a new user

Go to “ Users” and choose “ Add User”

Enter the details of the user and click “ Save” button.

Comment
linuxhelp
Jan 28 2019
kindly Run the Following command "systemctl status apache2.service" and post the errors you face
dennisaca
Jan 26 2019
Hi there
On "service apache2 restart"
I have got the following message (see below):
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
Add a comment
FAQ
Q
How to modify the .htaccess file in Rukovoditel?
A
If you do not have access to the PHP configuration file, you can try to set the values using the file .htaccess to add the following values:
php_value upload_max_filesize 20M
php_value post_max_size 20M
Changes to files .htaccess usually take effect immediately after saving.
Q
How to restrict a sending mail?
A
You need to set the option “Send via Cron” and configure the settings in accordance with the restrictions of your server.
Q
How to backup and wherein Rukovoditel?
A
we need to create a backup of the database every day. For a start go to Tools->Database Backup page and find the path to the PHP script which need to execute:

Cron backup: /home/yourlogin/public_html/pm/cron/backup.php
Q
Why you have created a symbolic link here?
A
Since only the sites-enabled configuration will be listening by apache created configuration from sites-available is symlinked to site enabled
Q
How to Increase Maximum Upload File Size in Rukovoditel?
A
n the configuration file php.ini with upload_max_filesize directive set the maximum size of uploaded files to the server. If you have access to the php.ini file you can change this value:
"upload_max_filesize = 20M"