TestLink

TestLink 1.6 Documentation

User manual (one html page)

Installation & Configuration manual (one html page)

TestLink 1.5 Documentation

User manual (one html page)

Installation & Configuration manual (one html page)

TestLink 1.0.4 Documentation

Printer Friendly Version
<< DependenciesTable of ContentsProducts >>


Setup for Linux

Here are some instructions that a user sent me to that describes the setup process on Linux.

Linux version: RH9 x86

MySQL version: 3.23.58

Apache version: 2.0.49

PHP Version: 4.3.4

I used the MySQL that’s already installed on the system.

MySQL Setup:

1-Install/create the default DB

/usr/bin/mysql_install_db

2-Start mysql

/usr/bin/safe_mysqld –user=mysql &

I ran into problems here because I did the above as user “root”

And sql startup was failing. I had to go to /var/lib/mysql where all

The mysql DB were located and changed the file ownership

To mysql and group mysql

- chown mysql <file>

- chgrp mysql <file>

After I did that, mysql started up.

Apache 2.0 Setup.

1- Downloaded the apache tar.gz from the Apache website (www.apache.com) and save in /tmp

2- Unzip and Untar via “gunzip tar_file | tar xvf –“

3- This creates a directory called “/tmp/httpd-2.0.49”

4- Cd to this directory

5- I followed the instructions that is documented on the INSTALL document

6- I installed apache in /usr/local/apache2

7- Cd to “/usr/local/apache2/conf”

8- Edit the httpd.conf and set -> ServerRoot "/usr/local/apache2"

9- Restart the httpd daemon via “/usr/sbin/apachectl restart”

PHP Setup:

1 – Download the tar.gz file from the php website (www.php.net) and save in /tmp

2 – Unzip and Untar via “gunzip tar_file | tar vxf –“

3 – This creates a directory called “/tmp/php-4.3.4”

4 – Run “./configure –with-mysql –with-apxs=/usr/local/apache2/bin/apxs”

5 – Cd to /user/local/apache2/conf”

6 – Add the following to httpd.conf

# Example:

# LoadModule foo_module modules/mod_foo.so

LoadModule php4_module modules/libphp4.so

#

# AddType for php

AddType application/x-httpd-php .php .phtml

AddType application/x-httpd-php-source .phps

7 – cp /tmp/php-4.3.4/php.ini-dist to /usr/local/lib/php.ini

8 – Edit /usr/local/lib/php.ini and set

extension_dir = "/usr/local/lib/php/extensions"

9 – Restart the apache server

10- Create a file called phpinfo.php in /usr/local/apache2/htdocs.

11-Add the line below to the phpinfo.info file.

<? Phpinfo(); ?>

12-Open a browser and type URL of “http:/<system_name>/phpinfo.php

13-If you installed PHP correctly; you should see your php installation configuration information

Testlink Setup:

1 – Download the testlink.tar file in /usr/local/apache2

2 – Untar via “tar vxf testlink_tar”

3 – This will create a testlink directory

4 – cd to the testlink directory

5 – Edit the functions/header.php file and put the following information. I used the naming conventions below for my install.

I did not setup bugzilla yet.

$dbhost = "localhost"; //the host name for the server. Use either localhost,server name, or IP

$dbuser = "testlink"; //the mysql user

$dbpasswd = ""; //the mysql password

$dbname = "testlink_db"; //the name of the testlink database

$basehref = "http://<system_FQDN>/testlink/"; //Sets the basehref variable which is your testlink directory location

seen through your websever. So, if your testlink is installed in htdocs/testlink on your local host you would use the variable that

is there by default

//Important to note that a forward slash "/" is needed in the end of the basehref

$loginurl = "http://<system_FQDN>/testlink/login.php"; // where you go back to login

6 – Now setup the Testlink DB schema. Use DB name of testlink_db

- Run “mysqladmin create testlink_db”

- Run “mysql”. This brings you into mysql

mysql> use testlink_db;

From here, cut and paste SQL statements in /usr/local/apache2/testlink/testlink.sql to create the

Testlink tables and values.

7 – Cd to /usr/local/apache2/htdocs

8 – Create a link to the testlink directory via “ln –s /usr/local/apache2/testlink testlink”

This is the part that I did not do for the DB rights that caused all that php errors.

>mysql -u root

use mysql;

GRANT ALL PRIVILEGES ON testlink_db.* to testlink@localhost with GRANT

OPTION;

Now, launch a browser and point to http://<system_name>:80/tesltink/login.php

Login as admin/admin.

Login should be successful!



Printer Friendly Version
<< DependenciesTable of ContentsProducts >>