centos 7 上安裝 testlink 1.9.15/1.9.16/1.9.17/1.9.18 (mysql/php/httpd)

1.9.18 System Requirements - server。注意,適用於 1.9.15 及之後。php

Server environment should consist of:html

  • web-server: Apache 2.x
  • PHP > 5.5
  • DBMS: MySQL 5.6.x / MariaDB 10.1.x, Postgres 9.x, MS-SQL 2008/2012

Supported client web-browsers:node

  • Firefox
  • Internet Explorer 9.x or greater
  • Chrome

Testlink tar 包下載地址:https://sourceforge.net/projects/testlink/?source=typ_redirectmysql

最新版本的安裝指導:https://github.com/TestLinkOpenSourceTRMS/testlink-code, 包含系統需求,migration and upgrade 指導。linux

安裝包中的安裝指導: http://118.24.41.169/testlink/docs/testlink_installation_manual.pdfgit

遷移升級論壇:http://forum.testlink.org/viewforum.php?f=58github


安裝步驟web

一. 安裝 web-server: Apache 2.xsql

首先在系統上面查詢一下是否已經安裝了apache 軟件:rpm -qa|grep httpd數據庫

     若是沒有,使用yum安裝:yum -y install httpd

    配置系統開機自動啓動:  chkconfig   httpd  on 

   啓動  httpd : service httpd start

二:安裝 mysql.

     注意, centos 7上默認使用MariaDB,版本默認是5.5.x, 版本過低, testlink要求 MariaDB 10.1.x。 若是安裝了MariaDB 低版本,刪除掉, 這裏改用mysql.

刪除步驟(注意MariaDB有多是小寫, 若是刪除 mysql 或者是其它的用yum安裝的包,用一樣方法。)

查詢所安裝的MariaDB組件:

[root@localhost logs]# rpm -qa | grep Maria*
MariaDB-server-5.5.49-1.el7.centos.x86_64
MariaDB-common-5.5.49-1.el7.centos.x86_64
MariaDB-client-5.5.49-1.el7.centos.x86_64

 

卸載數據庫:

[root@localhost logs]# yum -y remove mariadb

 

刪除數據庫文件(若是刪除安裝的mysql的話,這一步也要作):

[root@localhost logs]# rm -rf /var/lib/mysql/*

安裝mysql 5.6 步驟:

連接:http://sharadchhetri.com/2014/07/31/how-to-install-mysql-server-5-6-on-centos-7-rhel-7/

How to install MySQL Server 5.6 on CentOS 7 / RHEL 7

In this tutorial we will learn, how to install MySQL Server 5.6 on CentOS 7 / RHEL 7 . In our previous post, we have installed MySQL Server 5.6 on CentOS 6.x/RHEL 7.x.

In CentOS 7/ RHEL 7 , now MariaDB is introduced as a defualt database. Still many Organisations/Company would like to continue with MySQL. Whereas System Admin who earlier worked on MySQL can easily work on MariaDB. MariaDB is a community-developed fork of the MySQL relational database management system.

MariaDB’s lead developer is Michael 「Monty」 Widenius, the founder of MySQL and Monty Program AB. He had previously sold his company, MySQL AB, to Sun Microsystems for US$1 billion. MariaDB is named after Monty’s younger daughter, Maria. (Reference taken from Wikipedia)

Install MySQL Server 5.6 on CentOS 7 / RHEL 7

Follow the given below steps to install MySQL Server 5.6 .
You must be login with root user in system

Download the Yum Repo package of MySQL Server 5.6

Download the rpm package, which will create a yum repo file for MySQL Server installation.

yum install wget
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

Install mysql-community-release-el7-5.noarch.rpm package

Install this downloaded rpm package by using rpm command.

rpm -ivh mysql-community-release-el7-5.noarch.rpm

After the installation of this package. We will get two new yum repo related to MySQL

[root@localhost ~]# ls -1 /etc/yum.repos.d/mysql-community* /etc/yum.repos.d/mysql-community.repo /etc/yum.repos.d/mysql-community-source.repo [root@localhost ~]#

Installing MySQL Server

By using yum command, now we will install MySQL Server 5.6 . All dependencies will be installed itself.

yum install mysql-server

How to start/stop/restart MySQL Server

Now MySQL Server is installed on your system.

To start MySQL Service, run command

systemctl start mysqld

To stop MySQL Service, run command

systemctl stop mysqld

To restart MySQL Service, run command

systemctl restart mysqld

To get status of MySQL Service, run command

systemctl status mysqld

Reset MySQL root password

On fresh installation of MySQL Server. The MySQL root user password is blank.
For good security practice, we should reset the password MySQL root user.

On newly installed MySQL Server, we generally recommend to use the command script. You have to just follow the instructions.

mysql_secure_installation

In another method,you can log into MySQL server database and reset the password in secure way.

mysql -u root

You will see mysql prompt like this mysql> . Use the below given commands to reset root’s password.

mysql> use mysql; mysql> update user set password=PASSWORD("GIVE-NEW-ROOT-PASSWORD") where User='root'; mysql> flush privileges; mysql> quit

 

三. 安裝PHP 5.6

 連接:https://www.tecmint.com/install-php-5-6-on-centos-7/

1. To install PHP 5.6, you have to install and enable EPEL and Remi repository to your CentOS 7 system using the commands below.(注意不一樣版本的centos, EPEL and Remi repository 不同 )

# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

2. Next, install yum-utils which is an assortment of utilities that integrate with yum to enhance its default features, giving it more advanced package management options and also making it easier to use.

A few of its important features include manipulating repositories, enabling or disabling packages on the go and lots more, without any manual configurations.

# yum install yum-utils

3. One of the most important program provided by yum-utils is yum-config-manager, which you can use to active Remi repository as the default repository for installing various PHP versions. For example, if you want to install PHP 5.5, PHP 5.6 or PHP 7.2 on CentOS 7, just enable it and install as shown.

# yum-config-manager --enable remi-php55 [Install PHP 5.5]
# yum-config-manager --enable remi-php56 [Install PHP 5.6]
# yum-config-manager --enable remi-php72 [Install PHP 7.2]

4. Now that you’ve enabled selected versions of PHP, you can install PHP (here, we have chosen to install PHP 5.6) with all needed modules as follows

# yum-config-manager --enable remi-php56 [Install PHP 5.6]
# yum install php php-opcache php-devel  php-mbstring php-mcrypt php-cli php-gd php-curl php-mysql  php-mysqlnd php-ldap php-zip php-fileinfo   php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof

Afterwards, double check the installed version of PHP on your system.

# php -v

注意:若是安裝的php包不對,如何卸載及其確保php相關包卸載乾淨

1. rpm -qa | grep php

2.若是是yum 安裝的包, 能夠用yum remove php*

3. 若是rpm -qa | grep php, 還有內容 好比:

php-cli-5.6.36-1.el7.remi.x86_64

php-mcrypt-5.6.36-1.el7.remi.x86_64

能夠下面命令一一刪除:

rpm -e php-cli-5.6.36-1.el7.remi.x86_64

 rpm -e php-mcrypt-5.6.36-1.el7.remi.x86_64 

或者 --nodeps 不考慮依賴關係,強制卸載

rpm -e --nodeps php-cli-5.6.36-1.el7.remi.x86_64

四. 安裝testlink 

wget https://github.com/TestLinkOpenSourceTRMS/testlink-code/archive/1.9.16.tar.gz (也能夠直接從官網下載)
sudo tar -zxvf 1.9.16.tar.gz -C /var/www/html

安裝配置步驟與前一篇 centos 6上安裝 teslink 1.9.14 相同。此次安裝配置 testlink總結,看清楚 system requirement 對apache, php, mysql/mariadb 版本的需求。 注意不一樣操做系統 各軟件安裝源不同。

相關文章
相關標籤/搜索