Skip to content

TestLink Installation on CentOS

Francisco Mancardi edited this page May 2, 2020 · 3 revisions

TestLink on CentOS

Software versions

Apache

[root@dogbert ~]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Apr 2 2020 13:13:23

apache (httpd daemon) is running under user/group apache/apache

MySQL / MariaDB

mysqld 10.4.12-MariaDB

PHP

[root@dogbgert ~]# php -v
PHP 7.4.5 (cli) (built: Apr 14 2020 12:54:33) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

Installation

Folder permissions

base folder /var/www/html/testlink

copy there the code from zip/tar.gz/tgz

Change permissions

[root@dogbert html]# chown -R apache:apache ./testlink/*
[root@dogbert html]# chown -R apache:apache ./testlink

ATTENTION with /var/www/html and selinux
https://stackoverflow.com/questions/45311124/directory-is-not-writable-centos7-apache-2-4-6-php-5-4-16

[root@dogbert ~]# mkdir -p /var/www/html/testlink/gui/templates_c
[root@dogbert ~]# chown -R apache:apache /var/www/html/testlink/gui/templates_c/*
[root@dogbert ~]# chown -R apache:apache /var/www/html/testlink/gui/templates_c
[root@dogbert ~]# chmod u+w /var/www/html/testlink/gui/templates_c

https://stackoverflow.com/questions/45311124/directory-is-not-writable-centos7-apache-2-4-6-php-5-4-16
[root@dogbert ~]# chcon -R -t httpd_sys_rw_content_t /var/www/html/

[root@dogbert ~]# mkdir -p /var/testlink/logs
[root@dogbert ~]# mkdir -p /var/testlink/upload_area
[root@dogbert ~]# chown -R apache:apache /var/testlink/*
[root@dogbert ~]# chown -R apache:apache /var/testlink

ISSUES

MySQL/MariaDB user creation

this issue is present (@20200430) and I'm going to work to solve it. Workaround create the DB user BEFORE start installation.

TestLink
SELINUX
Selinux