NOTES: Testlink Deployment on Ubuntu

Source: Internet
Author: User
Tags php web server testlink

1. Installing apache2

sudo apt-get install apache2

2. Sudo/etc/init.d/apache2 Restart Test: http:\localhost or IP address

3. Install php:

sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server

An article to build PHP more detailed, refer to http://www.cnblogs.com/wenanry/archive/2012/11/13/2767779.html

Successful Installation verification: http:\localhost\test.php

sudo vim/var/www/html/test.php

Then enter:

<?php Echo ' <p>hello word</p> ';? >

4. install the mysql database :

sudo apt-get install mysql-server mysql-client

5. installing phpmyadmin-mysql database Management

sudo apt-get install phpMyAdmin

6. phpMyAdmin Settings:

During installation, you will be asked to select the Web server:apache2 or LIGHTTPD, use the SPACEBAR to choose Apache2, press the TAB key, and then OK. You will then be asked to enter the MySQL database password for the setup password password of the database ' s administrative user.

7. Connect the phpMyAdmin to the Apache2

www directory in/var/www/html

PHP myadmin in the/usr/share/phpmyadmin directory

sudo ln-s/usr/share/phpmyadmin/var/www/html

phpMyAdmin test: Open Http://localhost/phpmyadmin in the browser address bar

8. set Ubuntu file to execute read and write permissions

After the lamp is assembled and installed, the default settings for the PHP Web server root directory are:/var/www. Because of the security principle of Linux system, the file read and write permission in the directory is only allowed by root user, so we can't create a new php file in www folder or modify or delete it, we must first modify the read and write permission of the/var/www directory. In the interface manager through the right-click property cannot modify the file permissions, you have to execute the root terminal command:

sudo chmod 777/var/www, then you can write HTML or PHP files. 777 is the highest privilege in Linux, which means readable, writable, and executable.

9. Configure apache2

--Sudo vi/etc/apache2/apache2.conf

Add the following content:

AddType application/x-httpd-php. php. htm. html

Adddefaultcharset UTF-8

ServerName localhost

-Restart Apache2:

Sudo/etc/init.d/apache2 restart

Restart MySQL:

Sudo/etc/init.d/mysql restart

installation Testlink

Download Testlink to/home/arya/downloads (or local download with FileZilla on Linux server)

MV Testlink-1.9.15.tar.gz/var/www

Unzip Tar zxvf testlink-1.9.15.tar.gz

ls Command view

--For easy Operation Rename the folder to Testlink

sudo mv testlink/var/www/html move testlink unzip file to our Site configuration folder/html below

One by one. Execute Testlink Setup Wizard

http://192.168.203.128/testlink/install/

--very unfortunate, meet the following question

Find all the folders that contain Log_path, modify the configuration,

VI config.inc.php

, find/log_path and/repositorypath, and change to your own installation folder below

And then it's going to die like this.

Change permissions execute chmod 777 logs and chmod 777 Upload_area

OK, we can continue.

->:( What a sad reminder. And I met the stalk below.

--check log, said the following default value is invalid, the solution is to change the datetime to timestamp, this has to check the MySQL related things, see what's going on

tired sleep do not love have wood, and wrong

Look at log: MySQL can only have one field set in a table Current_timestamp

Reference Solution: Http://www.cnblogs.com/yjf512/archive/2012/11/02/2751058.html

MySQL script finally carried out, we come to the prompt to solve the configuration problem!

workaround.

Create the config_db.inc.php file in the Testlink directory and copy the information from the above to PHP

VI config_db.inc.php

+ + There are some details of configuration issues that need to be researched, user management, rights management, etc.

NOTES: Testlink Deployment on Ubuntu

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.