Created
August 6, 2015 14:57
-
-
Save dmds1993/fa26f83b65de44990ad9 to your computer and use it in GitHub Desktop.
How to installer testLink for ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Para instalar o testLink é necessário seguir estes passos | |
1° instalação do MySQL (se não tiver) | |
$ sudo apt-get install mysql-server | |
2° PHP5 e bibliotecas (se não tiver) | |
$ sudo apt-get install php5 php5-mysql php5-gd php5-ldap php5-json | |
3° instalação do Apache (se não tiver) | |
$ sudo apt-get install apache2 | |
Agora realizar o download do arquivo tar.gz do testlink via browser | |
http://sourceforge.net/projects/testlink/ | |
Finalizando o donwload dezipar o arquivo com o comando | |
tar -xvf nomedoarquivo.tar | |
Enviar o arquivo para o diretório do qual o servidor apache realiza a leitura dos arquivos. | |
exemplo: /var/www/html | |
Renomear a o arquivo para testlink | |
Configurar o arquivo httpd.conf com as seguintes informção, este arquivo fica localizado em /etc/apache2/httpd.conf | |
AddType application/x-httpd-php .php .htm .html | |
AddDefaultCharset UTF-8 | |
ServerName 127.0.0.1 | |
Salvar e reiniciar o apache | |
sudo /etc/init.d/apache2 restart | |
Caso a seguinte mensagem seja impressa no terminal | |
AH00558:apache2:Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 Set the 'ServerName' directive global | |
É necessario inserir o seguinte comando no arquivo apache2.conf, este arquivo fica localizado em /etc/apache2/apache2.conf | |
ServerName localhost | |
Restartar o apache novamente | |
É necessário criar uma base de dados com nome testlink | |
Realizei esta ação usando o gerenciador de banco de dados Workbench | |
create database testlink; | |
No browser, qualquer seja chrome ou firefox | |
inserir na url | |
127.0.0.1/testlink | |
Aqui sera feita a continuidade da instalação do testlink via browser | |
Para desabilitar mensagens do tipo warning. Alterar a configuração no arquivo config.inc.php (dentro de var/www/html/testlink). | |
$tlCfg->config_check_warning_mode = 'SILENT'; | |
Para habilitar a "API Key", que exibe um botão "Generate a new key" na página pessoal. Alterar a configuração no arquivo config.inc.php (dentro de var/www/html/testlink). | |
$tlCfg->api->enabled = TRUE; | |
Possíveis Erros e Solução | |
Possível Erro 1: Checking if C:\xampp\htdocs\testlink\html/gui\templates_c directory is writable (by user used to run webserver process) Failed! | |
Solução: liberar permissão de escrita no diretório templates_c | |
cd /var/www//html/testlink | |
sudo chmod 777 ./gui/templates_c | |
Possível Erro 2: Checking if /var/testlink/html/logs/ directory exists [S] Failed! | |
Solução: alterar a configuração no arquivo config.inc.php (dentro de var/www/html/testlink) | |
$tlCfg->log_path = /var/www/html/testlink/logs | |
Possível Erro 3: Checking if /var/testlink/html/upload_area/ directory exists [S] Failed! | |
Solução: alterar a configuração no arquivo config.inc.php (dentro de var/www/html/testlink) | |
$g_repositoryPath = /var/www/testlink//html/upload_area | |
Possível Erro 4: Após a configuração do banco de dados ele não consegue gerar o arquivo de configuração do banco de dados (config_db.inc.php) | |
Possíveis Erros e Solução | |
Possível Erro 1: Checking if C:\xampp\htdocs\testlink\gui\templates_c directory is writable (by user used to run webserver process) Failed! | |
Solução: liberar permissão de escrita no diretório templates_c | |
cd /var/www/testlink | |
sudo chmod 777 ./gui/templates_c | |
Possível Erro 2: Checking if /var/testlink/logs/ directory exists [S] Failed! | |
Solução: alterar a configuração no arquivo config.inc.php (dentro de var/www/testlink) | |
$tlCfg->log_path = /var/www/testlink/logs | |
Possível Erro 3: Checking if /var/testlink/upload_area/ directory exists [S] Failed! | |
Solução: alterar a configuração no arquivo config.inc.php (dentro de var/www/testlink) | |
$g_repositoryPath = /var/www/testlink/upload_area | |
Possível Erro 4: Após a configuração do banco de dados ele não consegue gerar o arquivo de configuração do banco de dados (config_db.inc.php) | |
< ?php// Gerado automaticamente pelo TestLink | |
definir("Db_type ', 'mysql'); | |
definir('DB_USER', 'testLink'); | |
definir("DB_PASS ', 'testLink'); | |
definir("DB_HOST ', 'localhost'); | |
definir('DB_NAME', 'testLink'); | |
definir("DB_TABLE_PREFIX ', ''); | |
?> | |
Quando estava realizando a instalação achei algumas informações na internet da qual me ajudaram mt. | |
http://testknowhow.blogspot.com.br/2014/01/instalando-testlink-no-ubuntu.html | |
https://www.youtube.com/watch?v=FA1I9NfH7v4 | |
http://askubuntu.com/questions/256013/could-not-reliably-determine-the-servers-fully-qualified-domain-name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Muito bom obrigado