How To Install GLPI 9.5 On CentOS7
How To Install GLPI 9.5 On CentOS7
A.安装GLPI基本要求:
1.Web服务器能支持 PHP, 例如:
- Apache 2 (或更新版);
- Nginx;
- Microsoft IIS.
2.PHP:
As of 9.5 release, GLPI requires PHP 7.2 or more recent.
注解:We recommend to use the most recent stable PHP release for better performances.
3.必备扩展依赖:
curl
: 用于 CAS 认证, GLPI 版本检查, 遥测技术, …;fileinfo
: 获取文件的扩展信息;gd
: 用于生成图片;json
: 用于支持 JSON 数据格式;mbstring
: 管理多字节字符;mysqli
: 连接和查询数据库。;session
: 用于获取用户session会话;zlib
: 用于数据库的备份与恢复功能;simplexml
;xml
;intl
.
4.可选的扩展
注解:即使这些扩展不是强制性的,我们建议您无论如何都要安装它们。
对于GLPI的一些额外特性,需要以下PHP扩展:
cli
: 用于命令行下使用 PHP (脚本, 自动动作, 或更多其他);domxml
: 用于 CAS 认证;imap
: 用于邮件收发或用户身份认证;ldap
: 使用 LDAP 目录来身份认证;openssl
: 通讯安全需要它;xmlrpc
: 使用 XMLRPC API.APCu
: 可用于高速缓存; 特别地 (参见 caching configuration (仅法语).
警告:当前, GLPI仅支持 MySQL (5.6 minimum) 以及 MariaDB (10.0 minimum) 数据库.
为了工作。
B.yum安装mariadb10.4
下载 按钮 GLPI 官方网站 (或从Github获取 Github release) 选择 glpi-{version}.tgz
文档.
1.删除CentOS7自带的mariadb5.5数据库及配置文件
[root@GLPI ~]# find -H /etc/ | grep my.c #查看默认数据库配置文件
/etc/pki/tls/certs/make-dummy-cert
/etc/pki/tls/certs/renew-dummy-cert
/etc/my.cnf
/etc/my.cnf.d
/etc/my.cnf.d/mysql-clients.cnf
[root@GLPI ~]# rm -rf /etc/my.cnf /etc/my.cnf.d/ #删除默认数据库配置文件
[root@GLPI ~]# find -H /etc/ | grep my.c #再次查看默认数据库配置文件
/etc/pki/tls/certs/make-dummy-cert
/etc/pki/tls/certs/renew-dummy-cert
[root@GLPI ~]# rpm -qa|grep mariadb-libs #卸载系统自带mariadb-libs
mariadb-libs-5.5.65-1.el7.x86_64
[root@GLPI ~]# yum remove mariadb-libs.x86_64 -y
2.添加mariadb yum源
[root@GLPI ~]# sudo tee /etc/yum.repos.d/MariaDB.repo<<EOF
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF
3.yum安装mariadb
[root@GLPI ~]# yum makecache
[root@GLPI ~]# yum install -y mariadb-server.x86_64 mariadb-devel.x86_64 mariadb.x86_64
4.启动和初始化mariadb 测试mariadb
[root@GLPI ~]# systemctl start mariadb.service
[root@GLPI ~]# systemctl enable mariadb.service
[root@GLPI ~]# mysql_secure_installation.....
[root@GLPI ~]# mysql -uroot -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 15
Server version: 10.4.13-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.MariaDB [(none)]> select version();
+-----------------+
| version() |
+-----------------+
| 10.4.13-MariaDB |
+-----------------+
1 row in set (0.000 sec)
5.设置默认字符集
修改 my.cnf文件如果没有就增加以下代码
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
character-set-server=utf8
验证是否成功
MariaDB [(none)]> show variables like 'character_set_%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.001 sec)
C.yum安装PHP7.4
1.安装源
yum install epel-release
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
2.安装YUM管理工具
yum install yum-utils
3. 查看PHP
yum search php74
4.安装PHP7.4
yum install php-74-php php74-php-gd php74-php-curl php74-php-fileinfo php74-php-json php74-php-mbstring php74-php-mysqli php74-php-session php74-php-zlib php74-php-simplexml php74-php-xml php74-php-intl php74-php-cli php74-php-domxml php74-php-imap php74-php-loap php74-php-openssl php74-php-xmlrpc php74-php-apcu php74-php-fpm php74-php-ldap php-pear-CAS php74-php-pecl-zip php74-php-opcache
5.配置PHP7.4
PHP 配置文件 (/etc/php.ini
) 必须加以调整,以反映下列变数:
memory_limit = 64M ; // max memory limit
file_uploads = on ;
max_execution_time = 600 ; // not mandatory but recommended
session.auto_start = off ;
session.use_trans_sid = 0 ; // not mandatory but recommended
6.数据库
D.yum 安装apache(httpd)
1.安装apache
[root@GLPI ~]# yum install httpd httpd-devel
[root@GLPI ~]# systemctl start httpd.service
[root@GLPI ~]# systemctl enable httpd.service
2.修改httpd.conf文件
vim /etc/httpd/conf/httpd.conf在AddType application*后面加如下一行
AddType application/x-httpd-php .php .html在DirectoryIndex index.html加上index.php
DirectoryIndex index.php index.html将AllowOverride None都改成AllowOverride All在此行内容下面添加Include conf.modules.d/*.conf
LoadModule rewrite_module modules/mod_rewrite.so
3.下载glpi系统并解压至/ar/www/html/目录下 并设置apache用户权限
wget https://github.com/glpi-project/glpi/releases/download/9.5.0/glpi-9.5.0.tgz
tar -xf glpi-9.5.0.tgz -C /var/www/html/
chown -R apache:apache /var/www/html/
4.关闭防火墙
[root@GLPI ~]# systemctl stop firewalld.service
[root@GLPI ~]# systemctl disable firewalld.service
5.关闭SELinux
[root@GLPI ~]# vi /etc/selinux/config
SELINUX=disabled
[root@GLPI ~]# systemctl restart httpd.service mariadb.service php74-php-fpm.service
6.访问配置http://ip/glpi进行设置系统
如果没有glpi数据库就在第二个选项输入数据库名字 点击Countinue系统自己创建
- 管理员帐号是 glpi/glpi
- 技术员帐号是 tech/tech
- 普通帐号是 normal/normal
- 只能发布的帐号是 post-only/postonly
How To Install GLPI 9.5 On CentOS7相关推荐
- centos7 r语言安装_CentOS7下安装所有的R包|Install all R packages in CentOS7
为了做R语言云计算服务,需要给服务器安装所有的R包,这样一来用户就不用担心安装和编译各种包的时候出现问题了. 打个小广告:一个月仅15元的R语言云计算服务 首先更新系统: yum update -y ...
- npm install时报平台不兼容Unsupported platform for xxx的解决办法:npm install -f强制安装(centos7下安装vite2 vue依赖时出现这个问题)
- ubuntu glpi及plugin install
GLPI是一个不仅仅是一个优秀的资产和服务台管理软件,还可以帮助企业部份实现ITIL,网上找的资料多是一些如何安装的.对于企业的IT部管理人员来,不仅仅是安装好软件就完了,更重要的是如何有效的使用软件 ...
- 7 centos 源码安装samba_在CentOS7.6里编译安装PHP7.4(最新版),很详细
拿到一个空的服务器,首先我们就要来用起来啦! 首先要先下载并编译安装PHP最新版本,请到php官网下载: 这里我首先在系统里在新建存储源码包的文件夹,比如我存放在这里 下载安装PHP7.4之前,你要先 ...
- python3.6.5安装教程-Centos7 安装Python3.6.5
一.centos7 安装 Python3.6.5教程 1.在安装Python之前,需要先安装一些后面遇到的依赖问题(如果有依赖问题,按照提示安装): yum -y install zlib-devel ...
- python3.6.5安装教程-Centos7 安装Python3.6.
一.centos7 安装 Python3.6.5教程 1.在安装Python之前,需要先安装一些后面遇到的依赖问题(如果有依赖问题,按照提示安装): yum -y install zlib-devel ...
- Ubuntu 12.04自带包安装GLPI IT资产管理软件
How to install GLPI (IT and asset Managemet Software) on Ubuntu 12.04 (Precise) Server GLPI stands f ...
- PXE网络装机之centos7(批量自动装机)
PXE远程服务器(192.168.1.1)所需准备: 安装源(系统盘文件): TFTP服务: DHCP服务: Linux内核: 能够向客户机裸机发送PXE引导程序: 启动菜单及无人应答文件等. 客户端 ...
- centos losf 安装_Linux Centos7部署环境安装-CentOS
Linux Centos7部署环境安装-CentOS Centos7部署环境安装及Linux常用命令 centos系统下各文件夹的作用 centos7修改系统默认语言 centos7安装rz/sz命令 ...
最新文章
- ssh 信息泄露 1 处,服务存在被爆破风险如何处理
- codeforces 650D. Zip-line 线段树
- WTL 出现的SetMsgHandled和IsMsgHandled 错误
- 孩子有必要学python吗_不学就落后了?孩子都能学得Python编程,究竟是什么?
- Build: 0 succeeded or up-to-date, 0 failed, 1 skipped
- python合并数组输出重复项_python - 不同数组项的所有可能组合[重复] - 堆栈内存溢出...
- [导入][转]sap学习手册二
- SpringBoot2.x整合quartz定时任务 快速入门
- ICMP报文分析(转)
- flask-sqlAlchemy 创建表
- Tomcat文件配置
- C++命名空间的玩法
- PAT甲级1013 (图,DFS举例详解)
- 计算机在医疗领域的发展未来,5G医疗在人工智能领域未来的发展
- OPENCV轮廓提取findContours和drawContours
- html打砖块小游戏源代码,javascript实现打砖块小游戏(附完整源码).pdf
- 如何使用微小区一键生成可打印的物业缴费通知单
- Win7上USB转串口芯片ch341驱动安装方法
- 阿铭Linux_网站维护学习笔记20190415
- 关于新版微信电脑版HOOK的技术经验(WX电脑版3.0)