CentOS7 TeamPass(团队密码管理)

1.配置PHP源并安装必备包

Centos 5.X:rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
CentOs 6.x:rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
CentOs 7.X:rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
yum install -y httpd mariadb-server php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring php56w-ldap php56w-bcmath

2.关闭selinux 防火墙

setenforce 0
sed -i ‘s/SELINUX=enforcing/\SELINUX=permissive/’ /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld

3.数据库配置

systemctl enable mariadb
systemctl start mariadb
mysql_secure_installation
mysql -u root -p
> create database teampassdb;
> create user ‘teampassuser’@‘localhost’ identified by ‘P@ssword01’;
> grant all privileges on teampassdb.* to teampassuser@localhost;
> flush privileges;

4.下载teampass并配置权限

cd /var/www/
git clone https://github.com/nilsteampassnet/TeamPass.git
useradd apache -s /sbin/nologin -M
chown -R apache:apache /var/www/TeamPass

5.Apache与PHP配置
vim /etc/php.ini

date.timezone = Asia/Phnom_Penh
log_errors = syslog
max_execution_time = 120

vim /etc/httpd/conf.d/teampass.conf
<VirtualHost *:80>
ServerAdmin sysadmin@techspacekh.com
ServerName teampass.techspacekh.com
DocumentRoot /var/www/TeamPass
ErrorLog “/var/log/httpd/teampass.techspacekh.com.log”
CustomLog “/var/log/httpd/teampass.techspacekh.com.log” combined

5.
systemctl start httpd

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值