Configure testlink in centos

Source: Internet
Author: User
Tags apache php php mysql 403 forbidden error testlink

1. Check the installed Apache PHP MySQL version in centos:

(The installation method of Apache MySQL PHP is RPM or # Yum install)

# Httpd-V

Server version: Apache/2.2.3

Configuration File:/etc/httpd/CONF/httpd. conf

# PHP-V

PHP 5.2.16 (CLI) (built: Dec 17 2010 14:09:03)

Configuration File:/etc/PHP. ini

# Mysql-V

Server version: 5.1.52 MySQL


Use yum in centos 5.1.16 to Upgrade PHP to 5.2.16

Recently, testlink 1.82 was used. It is mentioned that PHP needs to be upgraded to 5.2 or above, while centos 5. x currently provides PHP version 5.1.6,

It is convenient to Upgrade PHP to 5.2 using the following methods. We recommend this method to you.

Import the following addresses first.

# Rpm -- import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

# Vi/etc/yum. Repos. d/CentOS-Base.repo Add the following information

[Utterramblings]

Name = Jason's utter ramblings Repo

Baseurl = http://www.jasonlitka.com/media/el?releasever/?basearch/

Enabled = 1

Gpgcheck = 1

Gpgkey = http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

Run the command to automatically upgrade the instance.

Yum update PHP-y

Yum install libmcrypt-y

Upgrade PHP to 5.2.16

# Rpm-Qa | grep PHP is installed with PHP-mysql *

If not, run: # Yum install PHP-MySQL

Automatic configuration and installation of PHP-MySQL

VI/var/www/html/test. php

<? PHP

Phpinfo ();

?>


In the address bar, enter
Http: // localhost/test. php

You can view the configuration of PHP.

>

2. Configure testlink

Download the testlink package (I used testlink_1.9_beta3.tgz)

Decompress the package and move it to/var/www/html /.

 

Modify permissions:

# Chmod-r 755 testlink

# Chmod-r 777 testlink/GUI/templates_c

 

Configure Apache

You only need to modify the httpd. conf file in three places.

VI/etc/httpd/CONF/httpd. conf check whether the file path is correct.

1. Remove the addhandler CGI-script. cgi annotation.

2. Find <directory "/var/www/html"> and add two sentences.

Options execcgi followsymlinks

AllowOverride limit

3. Find the directoryindex and add index. cgi to the end of the sentence.

Directoryindex index.html. var index. cgi

Finally, run the restart Apache command: Service httpd restart

Enter http: // localhost/testlink in the address bar

Error

 

403 Forbidden Error

You don't have permission to access/testlink on this server.

Solution:

1. Insufficient document access permissions. More than 755 of permissions are required. Solution: Run chmod 755/var/www/or another directory.

2. SELinux or firewall reasons. Solution: first disable SELinux and enable the firewall to access the WWW Service.

Modify the/etc/SELinux/config file

SELinux = disabled

 

3. the VM configuration is incorrect. Solution: reconfigure the VM or temporarily disable it.

4. settings of DocumentRoot. The solution is as follows:

Open the Apache configuration file httpd. conf and find the code:

<Directory/>

Options followsymlinks

AllowOverride none

Order deny, allow

Deny from all

</Directory>

Sometimes, since PHP is configured, "Deny from all" here has rejected all connections. Change this line to "allow from all". The modified code is as follows. The problem is solved.

<Directory/>

Options followsymlinks

AllowOverride none

Order deny, allow

Allow from all

</Directory>

# Service myslqd restart

# Service httpd restart

 

3. Install testlink

Enter http: // localhost/testlink in the address bar

Install

Root

Null

Admin

Admin

Follow the prompts

Under/var/www/html/testlink

# Vi config_db.inc.php

<? PHP

// Automatically generated by testlink Installer

Define ('db _ type', 'mysql ');

Define ('db _ user', 'admin ');

Define ('db _ pass', 'admin ');

Define ('db _ host', 'localhost ');

Define ('db _ name', 'testlink ');

Define ('db _ table_prefix ','');

?>

 

Enter http: // localhost/testlink in the address bar

You can log on directly.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.