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
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,下面就是一顿截图
Web access to the files directory,should not be allowed
Check the .htaccess file and the web server configuration