一、yum安裝相關軟件
Yum–y install mysql-server mysql php php-mysql php-devel php-ldap php-gd
二、準備安裝
1、解壓testlink包,復制到var/www/html/并命名為testlink
[root@ip-10-21-168-116 opt]# ll
drwxr-xr-x ?4 root ??root ??????4096 Apr 13 18:03 agent
drwxr-xr-x ?2 root ??root ??????4096 May 31 ?2016 aws
drwxrwxrwx 12 centos centos ????4096 Jul ?2 ?2011 testlink-1.9.3
-rw-r--r-- ?1 root ??root ??22706719 Apr 17 16:18 testlink-1.9.3.tar.gz
?[root@localhost testlink]# cp –rp testlink-1.9.3?/var/www/html/testlink
2、對teslink目錄下的文件進行授權(否則配置的時候會報錯)
cd /var/www/html/testlink
chmod 777 logs upload_area/
cd gui
chmod 777 templates_c
3、對httpd.conf文件修改
vi /etc/httpd/conf/httpd.conf
AddType application/x-httpd-php .php .htm .html 添加這一行,源文件沒有
DirectoryIndex index.html index.php index.html.var添加index.php:
Listen 10.**.***.116:8080 添加testlink服務器地址和監聽端口
<VirtualHost 10.**.***.116:8080> 添加虛擬主機
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/html/testlink // 實際testlink目錄
ServerName?www.testlink.com//改成實際域名地址,沒有的話,只能通過IP訪問(目前此方法無用)
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
三、開始安裝
1、在瀏覽器中輸入testlink安裝地址:(install的路徑在/opt/tmp/install/index.php)
http://127.0.0.1:7000/install(地址自己定義)
點擊process teatlink setup
服務啟動:service httpd start
停止服務:service httpd stop