Installation steps
- Install MySQL
- Install PHP
- Installing Apache
- Installing Testlink
Install MySQL
See wondows under Install MySQL
Install PHP
Download PHP after decompression, the address of the PHP file to add to the environment variable, you can.
Open cmd and enter php -v
if the version is displayed indicating that the environment is configured successfully.
Configure PHP to support MySQL
Open the PHP folder, copy a php.ini-development file, modify it to php.ini, this is to save a copy of the most original configuration file, and then modify the php.ini file.
Open the php.ini file and remove the previous comment symbol (;).
Installing Apache
Open Apache home page to find Apache server
Click for Windows
Download Apachehaus
Apachehaus:
Apache Lounge:
BitNami WAMP stack:bitname Integrated Installation
Wampserver:windows Integrated Installation
Integrated installation under the Xampp:linux
After download, extract it, according to the root directory of Read_first to install:
Steps:
- Run cmd as Administrator and go to the bin directory under Apache to run the command:
httpd.exe
if there is an error, it will output an error, according to the error modification, if there is an error, then the cursor is stuck there.
- Visit http://localhost and see the Apache Haus ' s page stating that the environment Ok,ctrl+c stop service.
- Enter the command to
httpd -k install
install Apache as a Windows service.
- Enter
httpd -k start
the command to launch the Apache service and access http://localhost to see if it started successfully.
Common Apache Commands
Stop Apache httpd -k stopRestart Apache httpd -k restartUninstall Apache Service httpd -k uninstallTest Config Syntax httpd -tVersion Details httpd -VCommand Line Options List httpd -h
Modify Configuration
Modify the Apache-related configuration file (apache24\conf\httpd.conf) as needed:
- To modify the Apache path:
Define SRVROOT "F:\Apache24"
- Port default 80 If the conflict is modified:
Listen 80
- URL root directory By default in the Apache directory, you can use this also can be customized:
DocumentRoot "${SRVROOT}/htdocs"
Configuring Support for PHP
To create a new test.php file at the site root, enter:
<?phpphpinfo();?>
Access to the file: http://localhost/test.php, the page shows the source code, indicating that Apache has not supported the parsing of PHP, you need to configure the Apache configuration file.
Add the following two lines to the Apache configuration file, the first line describes the LoadModule way to load PHP, the second line specifies the path of php.ini, the third line defines the HTML and PHP format files can execute PHP program:
LoadModule php5_module "F:\php-5.6.36-Win32-VC11-x64\php5apache2_4.dll"PHPIniDir "F:\php-5.6.36-Win32-VC11-x64"AddType Application/x-httpd-php .php .html
Restart Apache, re-access http://localhost/test.php, success:
Installing Testlink
Install Testlink is installed directly on the Web page, so all platforms are installed identically. Testlink.
The downloaded Testlink is placed in the root directory of the Apache website and is accessed. Browser input localhost:8080/testlink_1.9.13/index.php
, click new installation
, follow the prompts to install.
Last step configuration:
The red box in the picture, fill in the address of the database, especially note the yellow part, write if the database is used by the default port (3306) number does not add the port number (such as: localhost), if not the default port number, you need to add a port number (such as: localhost:5502).
Here on a big hole: The port number of 3306 MySQL, write the port number, the next step to create a database has been unsuccessful, error php_network_getaddresses: getaddrinfo failed
. Removing the port number will be OK.
Database Admin Login: DB login name
Database admin password: DB login password
Used primarily to create testlink databases.
Testlink DB Login: Create an account with Testlink db
Testlink db Password: Create a testlink db password
All requests that need to connect to the Testlink database use that account.
Summary of installation errors
Error 1
checking max.execution time
Modify the Max_execution_time time in the PHP installation directory (E:\php-5.6.12-Win32-VC11-x64) php.ini, change to 120, approximately 372 lines
max_execution_time = 120
Error 2
maximum session idle time before timeout
Modify the php.ini in the PHP installation directory (E:\php-5.6.12-Win32-VC11-x64)
session.gc_maxlifetime = 2400
Error 3
checking if testlink/logs/ directory existschecking if upload_area directory exists
Open a. config.inc.php file under Testlink:
Modifying the logs Path
$tlCfg->log_path = '[tesklink安装目录]/logs/';
Modifying the Upload_area Path
$g_repositoryPath = '[tesklink安装目录]/upload_area/';
Error 4 When you are finished installing, prompt to configure mail:
* copy from config.inc.php, [SMTP] Section into custom_config.inc.php.* complete correct data regarding email addresses and mail server.
Error 5
PHP Warning: date(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘UTC’...
Set the value of Date.timezone in php.ini to PRC, set it up later as: DATE.TIMEZONE=PRC, and uncomment this line of code.
Other displayed warnings are modified as prompted.
Once the installation is complete, open the http://localhost/testlink/index.html to start using it.
WAMP Integrated Installation
If you do not want to install individual programs separately, you can use Wamp to integrate the installation of PHP and a MySQL.
Bitnami-testlink Integrated Installation
You can also use Bitnami's integrated installation, Apache,mysql,phpadmin,bitnami-testlink.
Other
If you forget the Testlink password that was filled in during the installation, you can view the password of the database directly, and the password can convert MD5 to clear text.
Testlink Environment Construction under windows