准备
- linux服务器
- ssh
第一步 登录服务器下载xampp
- ssh 到远程服务器
- 在根目录下 执行 wget -c https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/7.2.0/xampp-linux-x64-7.2.0-0-installer.run # 下载XAMPP 版本选linux
- chmod 755 xxx.run 文件 #给XAMPP执行文件权限
- 还是当前目录下 执行 ./xampp…….run #安装过程中 一路yes 回车
- /opt/lampp/./lampp start # 开启xampp 正常情况应该 显示输出如下
- XAMPP: Starting Apache...ok.
- XAMPP: Starting MySQL...ok.
- XAMPP: Starting ProFTPD…ok.
如果遇到
问题1:
Contents of "/opt/lampp/var/proftpd/start.err":
host.localdomain proftpd[3363]: warning: unable to determine IP address of 'host.localdomain'
host.localdomain proftpd[3363]: error: no valid servers configured
host.localdomain proftpd[3363]: Fatal: error processing configuration file '/opt/lampp/etc/proftpd.conf’
解决办法:
- 在配置文件/etc/proftpd.conf里面增加VPS IP
- 打开proftpd.conf 文件 添加新的一行输入 DefaultAddress 你的ip地址
问题2:
[/opt/lampp/bin/gettext: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/lampp/bin/gettext)
/opt/lampp/bin/gettext: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/lampp/lib/libiconv.so.2)
解决办法:
- 看起来是编译的问题,这种问题不要细想,时间宝贵 删除xampp换个版本试试
- 删除命令:rm -rf /opt/lamps
问题3:
starting XAMPP for Linux 7.0.9-1…
XAMPP: Starting Apache...fail.
[XAMPP: Another web server is already running.]
解决办法:
- 可能是80端口被占用
- 打开vim /opt/lampp/lampp
- if testport 80 #把80端口改成其他没有被占用的端口
- then
- $GETTEXT -s "fail."
- echo "XAMPP: " $($GETTEXT 'Another web server is already running.’)
- 还是不成就 reboot
第二步 下载testlink到 /opt/lampp/htdoct/
- wget -c https://sourceforge.net/projects/testlink/files/TestLink%201.9/TestLink%201.9.18/testlink-1.9.18.tar.gz
- chmod 755 + 压缩包
- tar zxvf + 压缩包
- 打开testlink安装地址:http://ip/testlink-1.9.18/install/index.php
- 点 new installation安装
- I agree to the terms set out in this license. 打勾 继续
Maximum Session Idle Time before Timeout | 24 minutes and 0 seconds - (Short. Consider to extend.) |
Checking max. execution time (Parameter max_execution_time) | 30 seconds - We suggest 120 seconds in order to manage hundred of test cases (edit php.ini) |
- 打开php.ini文件修改以下两个值
- vim /opt/lampp/etc/php.ini
- session.gc_maxlifetime = 2880
- max_execution_time = 180
Checking Postgres Database | Failed! Postgres Database cannot be used. |
Checking MySQL Database | OK |
Checking MSSQL Database | Failed! MSSQL Database cannot be used. |
- Web and PHP这一栏
- MySQL显示OK就可以,其他可以错误可以忽略
- Read/write permissions这一栏可能会提醒
- Checking if /var/testlink/logs/ directory exists [S] Failed!
- Checking if /var/testlink/upload_area/ directory exists [S] Failed!
需要在config.inc.php中修改
- $tlCfg->log_path = '/var/testlink/logs/ -> ‘/opt/lampp/htdocs/testlink-1.9.18/logs/‘
- $g_repositoryPath = '/var/testlink/upload_area/‘ -> '/opt/lampp/htdocs/testlink-1.9.18/upload_area/‘
- :wq保存退出
可能还会出现文件不能读写的报错,给下面三个文件权限
- chmod 777 /opt/lampp/htdocs/testlink-1.9.18/upload_area/
- chmod 777 /opt/lampp/htdocs/testlink-1.9.18/logs/
- chmod 777 /opt/lampp/htdocs/testlink-1.9.18/gui/templates_c/
第三步 配置Definition of DB access
- 需要填的有
- Database admin login -> root
- Database admin password -> yourpassword
- TestLink DB login -> testlink
- TestLink DB password -> your password
- 点击 Process Testlink Setup
- 到这里已经完成了安装
- 接下来是配置testlink
- 打开服务器地址, 登录testlink
- over