do the right things the right ways
分类: LINUX
2015-10-23 01:00:54
New XAMPP security concept:
Access to the requested object is only available from the local network.
This setting can be configured in the file "httpd-xampp.conf".
vi /opt/lamp/xampp/etc/extra/httpd-xampp.conf
修改:
#Require local
Order deny,allow
Allow from all
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
重启:
/opt/lamp/xampp restart
OK.
|
|
解决办法:
Done!
Processing:sql/mysql/testlink_create_tables.sql
OK!
Writing configuration file:OK!
YOUR ATTENTION PLEASE:
To have a fully functional installation You need to configure mail server settings, following this steps
Installation was successful!
You can now log in to .
设置数据库密码为空, 反复试几次
如果再出现问题,查看 tail -f 1234 /var/testlink/logs/*.log 配置的时候可能有权限问题
chmond 777 -R .htdocs/testlink
8. 结束
,,,,,,,
9. 汉化
vi ./testlink/config.inc.php
$tlCfg->default_language = 'zh_CN';
10. 禁止用户注册
vi ./testlink/config.inc.php
$tlCfg->user_self_signup = FLASE;
11. 备份和还原方法:
1.以管理员权限先开启mysql:
输入指令:/opt/lampp/bin/mysql -u root –p
例如:root@MMAX-11-Linux:/home/zxg# /opt/lampp/bin/mysql -u root –p
输入密码
2.再输入开启外围用户允许访问指令:grant all privileges on *.* to '用户名'@'%' identified by '密码' with grant option;
[例子:grant all privileges on *.* to'root' @'%' identified by 'a123456' with grant option;]
写入权限:flush privileges;
再退出:quit;
3.禁用防火墙:service iptables stop【即时生效,重启就恢复】【备注,有些linux安装版本不用禁用防火墙也能正常远程还原和备份,所以当1、2步完成后,就先测试一下能否备份,如果还不行,就禁用防火墙,再试。】
例如:root@MMAX-11-Linux:/home/zxg# service iptables stop
iptables:unrecognized service
然后用mysql备份工具远程备份。就OK了。