How to Install Tine 2.0 on CentOS 7
In this tutorial we will show you how to install Tine 2.0 on a CentOS 7 VPS with Apache, PHP and MariaDB.
Tine 2.0 is an open source groupware and customer relationship management (CRM) application. Listed below are some of the main Tine 2.0 features:
- Address book
- File manager
- Human resources
- Synchronisation with mobile devices
- Task management
- Time tracker
- VoIP integration
- Web based mail client etc.
In order to install Tine 2.0 on your server, you need to make sure it meets the following requirements:
- PHP 5.3 or later with the following PHP extensions enabled: ctype, date, dom, gd, hash, iconv, json, mcrypt, mysql, pdo_mysql, SimpleXML, SPL, xml and zip;
- Apache Web Server 2.0 or later compiled with mod_rewrite module;
- MySQL 5.0 or later or MariaDB installed on your virtual server.
Make sure that all OS packages are up to date by executing the following command:
yum -y update
Install the required packages:
yum install mariadb mariadb-server httpd php php-common php-gd php-ldap php-mcrypt php-mbstring php-xml unzip
Start the Apache web server and MariaDB database server and enable them to start on boot:
systemctl start httpd systemctl start mariadb systemctl enable httpd systemctl enable mariadb
Download the latest stable version of Tine at http://www.tine20.org/download/ to the ‘/opt’ directory on the server. Then, extract it and move the Tine files and directories to the ‘/var/www/html/tine’ directory. At the time of writing this tutorial, the latest stable version of Tine is 2.0.
cd /opt/ wget http://packages.tine20.org/source/2015.07.6/tine20-allinone_2015.07.6.zip mkdir -p /var/www/html/tine unzip -d /var/www/html/tine tine20*.zip
Create a new MariaDB database and user for the Tine 2.0 application:
mysql -uroot -p MariaDB [(none)]> CREATE DATABASE tinedb DEFAULT CHARACTER SET 'UTF8'; MariaDB [(none)]> GRANT ALL PRIVILEGES ON tinedb.* TO 'tine'@'localhost' IDENTIFIED BY 'y0ur_passw0rd'; MariaDB [(none)]> FLUSH PRIVILEGES; MariaDB [(none)]> quit
Create a new Apache configuration file (e.g. /etc/httpd/conf.d/your-domain.com.conf):
Add the following virtual host directives to it:
<VirtualHost YOUR_SERVER_IP:80> ServerAdmin firstname.lastname@example.org DocumentRoot "/var/www/html/tine" ServerName your-domain.com ServerAlias www.your-domain.com ErrorLog "/var/log/httpd/your-domain.com-error_log" CustomLog "/var/log/httpd/your-domain.com-access_log" combined <Directory "/var/www/html/tine/"> DirectoryIndex index.html index.php Options FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost>
Restart the Apache service for the changes to take effect:
systemctl restart httpd
Copy the sample Tine configuration file:
cp /var/www/html/tine/config.inc.php.dist /var/www/html/tine/config.inc.php
Then, edit the newly created ‘config.inc.php’ configuration file. Add the database information and specify login credentials for the setup user. For example:
<?php return array( 'captcha' => array('count'=>0), 'database' => array( 'host' => 'localhost', 'dbname' => 'tinedb', 'username' => 'tine', 'password' => 'y0ur_passw0rd', 'adapter' => 'pdo_mysql', 'tableprefix' => 'tine20_', ), 'setupuser' => array( 'username' => 'setupuser', 'password' => 'Ax6hd35RbM' ), );
Do not forget to change the password for the setup user.
The web server user (Apache) needs to be able to write to certain files and directories, so you can easily accomplish that by executing the following command:
chown apache:apache -R /var/www/html/tine
You may also create an empty ‘config.inc.php’ configuration file, make it writeable to the web server and modify it later via the setup interface:
touch /var/www/html/tine/config.inc.php chown apache:apache -R /var/www/html/tine/config.inc.php chmod 644 /var/www/html/tine/config.inc.php
Open http://your-domain.com/setup.php in your favorite web browser to run the Tine installer and log in using the user login credentials defined in the Tine configuration file. Then, follow the installer’s instructions:
Accept the license and privacy agreements, click on ‘Setup Checks’ from the left-hand menu and if all PHP requirements are met, click on ‘Config Manager’ and set /tmp as a temporary file path.
Click on ‘Authentication/Accounts’ and set the admin login credentials, configure password settings and click on ‘Save config and install’ button.
Select ‘Application manager’ and install additional Tine modules, such as calendar, CRM, file manager, FeLaMiMail web-based IMAP email client, tasks etc. If you install FeLaMiMail, do not forget to configure IMAP and SMTP settings via ‘Email menu’.
That is it. The Tine installation is now complete. Log out as setup user and log in to the administrator back-end using the newly created administrator account. Here you can manage users, groups, specify privileges based on groups, manage installed Tine modules etc.
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install Tine 2.0 online group collaboration and customer relationship management software for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.