centos 安装glpi9.1

前端之家收集整理的这篇文章主要介绍了centos 安装glpi9.1前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1 安装PHP5.6源(glpi需要PHP5.4以上的支持

rpm-Uvhhttp://mirror.webtatic.com/yum/el6/latest.rpm

2 安装lamp环境

yum-yinstallgccgcc-c++flexbisonautoconfautomakebzip2-develzlib-develncurses-devellibjpeg-devellibpng-devellibtiff-develfreetype-develpam-developenssl-devellibxml2-develgettext-develpcre-develMysqLMysqL-serverhttpdPHP56w.x86_64PHP56w-cli.x86_64PHP56w-common.x86_64PHP56w-gd.x86_64PHP56w-ldap.x86_64PHP56w-mbstring.x86_64PHP56w-mcrypt.x86_64PHP56w-MysqL.x86_64PHP56w-pdo.x86_64

3 MysqL数据库的授权

serviceMysqLdstart
MysqL-uroot
MysqL>useMysqL;
MysqL>updateusersetpassword=password('123456')whereuser='root';#初始化root密码
MysqL>CREATEUSER'glpi'@'%'IDENTIFIEDBY'123456';
MysqL>GRANTUSAGEON*.*TO'glpi'@'%'IDENTIFIEDBY'glpipassword';
MysqL>createdatabaseglpi;
MysqL>grantselect,insert,update,delete,create,droponglpi.*to'glpi'@'localhost'identifiedby'123456';
MysqL>flushprivileges;
MysqL>\q

4 下载、解压、权限glpi

wgethttps://github.com/glpi-project/glpi/releases/download/9.1/glpi-9.1.tar.gz
tarxfglpi-9.1.tar.gz-C/var/www/html/
chown-Rapache.apache/var/www/html/
chmod777-R/var/www/html/glpi/config/
chmod777-R/var/www/html/glpi/files/

5 开始安装

servicehttpdrestart#需要重启apache服务
serviceMysqLdrestart#重启MysqL服务

6 浏览器输入ip/glpi,下面就是一顿截图


wKiom1hGWSyCrw7nAAAtjOhvojA690.png


wKiom1hGWc2AnqPzAABJFfUA3tM140.png


wKiom1hGWc2BuCmOAAAyGDrFQYE828.png



wKioL1hGWcywrvIjAAA-5Jsv6BU211.png


wKiom1hGWczQZwlwAABFioQRKdk773.png


wKioL1hGWcyhCO44AABA5nZlZvs939.png


wKioL1hGWczSkK1lAAApZ_6mxwc585.png


wKiom1hGWcygnWE7AABGqHIpvVA036.png


wKiom1hGWcvgmSRtAAAgC-7CZVo331.png


wKioL1hGWcvTxcMWAAB8Y6XB0S8498.png




7 错误暂时没解决,先记录

  1. Web access to the files directory,should not be allowed
    Check the .htaccess file and the web server configuration

wKiom1hGMdXBmUulAABI9PrjTbE865.png

猜你在找的CentOS相关文章