1.下载xampp集成包

下载至:/usr/local/src/

赋权:chmod -R 777 xampp-linux-x64-7.1.7-0-installer.run

2.安装xampp安装包

安装:./xampp-linux-x64-7.1.7-0-installer.run

有提示时一直输入Y即可,直到安装完成;

3.配置xampp

配置:/opt/lampp/lampp security

根据提示:设置xampp密码(用户名xampp)、phpmyadmin密码(用户名pma)、mysql密码(用户名root)、ftp密码(用户名daemon)

4.配置局域网的其他PC可访问

配置文件:vi /opt/lampp/etc/extra/httpd-xampp.conf

注释:Require local

禁用防火墙:systemctl disable firewalld.service

5.设置xampp设置开机启动

设置:ln -s /opt/lampp/xampp /etc/rc.d/init.d/xampp

: chkconfig --add xampp

: chkconfig xampp on

 

6.数据库配置远程权限:

xampp集成mysql不能直接:mysql -uroot -p启动

至:/opt/lampp/bin下

:./mysql -u root -p 启动数据库

更改root用户权限:GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY 'gao690208' WITH GRANT OPTION;

创建新用户:CREATE USER 'testlink'@'%' IDENTIFIED BY 'gao690208';

为新建用户配置远程访问权限:GRANT ALL PRIVILEGES ON *.* TO 'testlink'@'%' WITH GRANT OPTION;

 

立即生效:flush privileges;

 

3306端口未开放:

进入mysql:

centos7+xampp+testlink环境搭建详细教程

 

为0时无法 访问

解决方案:

赋权:chmod -R 777 /opt/lampp/etc

chmod -R 777 /opt/lampp/mysql

 

7.php配置:

/opt/lampp/etc下:

vi php.ini

修改配置项:

session.gc_maxlifetime 修改为2880

max_execution_time修改为120

memory_limit修改为128

8.testlink安装

1)上传testlink.tar.gz至/opt/lampp/htdocs/

2) 解压:tar -zxvf testlink.tar.gz

修改文件夹名为testlink: mv testlink.1.9.16 /opt/lampp/htdocs/testlink

3) 赋权:chmod -R 777 testlink

4) 登录http://ip/testlink

5)下一步至数据库配置页面:

database type:mysql

database host:localhost

database name:testlink

database login:root

database password:password

testlink DB login:root

testlink DB password:password

 

 

相关文章: