Installing TimeTrex on CentOS Linux v8 from the .ZIP File

This guide walks you through the process of installing TimeTrex on a CentOS Linux v8 machine using the .ZIP file. Please follow each step carefully to ensure successful installation.

Installation Steps

Step 1:

				
					dnf -y install http://rpms.remirepo.net/enterprise/remi-release-8.rpm epel-release
dnf config-manager --set-enabled remi
dnf -y module install php:remi-8.1
dnf -y install php-cli php-pgsql php-pspell php-gd php-gettext php-imap php-intl php-json php-soap php-zip php-curl php-ldap php-xml php-xsl php-mbstring php-bcmath php-process httpd postgresql-server unzip nano policycoreutils-python-utils
				
			

Step 2:

				
					systemctl enable httpd
service httpd restart
				
			

Step 3:

				
					firewall-cmd --permanent --zone=public --add-port=80/tcp
firewall-cmd --permanent --zone=public --add-port=443/tcp
firewall-cmd --reload
				
			
A penguin in front of a computer

Step 4:

Step 5:

				
					unzip <TimeTrex-installer>.zip -d /var/www/html/
				
			
				
					mv /var/www/html/TimeTrex_v<version>/ /var/www/html/timetrex
				
			

Step 6:

				
					mv /var/www/html/timetrex/timetrex.ini.php-example_linux /var/www/html/timetrex/timetrex.ini.php
				
			

Step 7:

				
					nano /var/www/html/timetrex/timetrex.ini.php
				
			
				
					mkdir -p /var/timetrex/storage
mkdir -p /var/log/timetrex
chgrp -R apache /var/timetrex
chmod 775 -R /var/timetrex
chgrp -R apache /var/log/timetrex
chmod 775 -R /var/log/timetrex
chgrp apache -R /var/www/html/timetrex
chmod 775 -R /var/www/html/timetrex
				
			
				
					semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/timetrex(/.*)?"
semanage fcontext -a -t httpd_sys_rw_content_t "/var/timetrex(/.*)?"
semanage fcontext -a -t httpd_sys_rw_content_t "/var/log/timetrex(/.*)?"
restorecon -r "/var"
setsebool -P httpd_can_network_connect 1
setsebool -P httpd_can_sendmail 1
				
			

Step 8:

				
					postgresql-setup initdb
systemctl start postgresql
systemctl enable postgresql
su postgres
psql
CREATE USER timetrex WITH CREATEDB CREATEROLE LOGIN PASSWORD 'passwordhere';
CREATE DATABASE timetrex;
\q
exit
				
			
				
					nano /var/lib/pgsql/data/pg_hba.conf
				
			
				
					"local   all             all                                     peer"

				
			
				
					"local   all             all                                     md5"
				
			
				
					systemctl restart postgresql
				
			

Step 9:

				
					http://<web server address>/<timetrex directory>/interface/install/install.php
				
			

Step 10:

Thank you for choosing TimeTrex. We look forward to being part of your operational excellence.

See the following guides for instructions on installing TimeTrex for other operating systems:

Linux – Ubuntu/Debian
Linux – CentOS
Windows / Windows Server