1 安装php5.6源(glpi需要php5.4以上的支持)
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
2 安装lamp环境
yum -y install gcc gcc-c++ flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libxml2-devel gettext-devel pcre-devel mysql mysql-server httpd php56w.x86_64 php56w-cli.x86_64 php56w-common.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mcrypt.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64
3 mysql数据库的授权
service mysqld start mysql -uroot mysql>use mysql; mysql>update user set password=password('123456') where user='root'; #初始化root密码 mysql>CREATE USER 'glpi'@'%' IDENTIFIED BY '123456'; mysql> GRANT USAGE ON *.* TO 'glpi'@'%' IDENTIFIED BY 'glpipassword'; mysql>create database glpi; mysql>grant select,insert,update,delete,create,drop on glpi.* to 'glpi'@'localhost' identified by '123456'; mysql>flush privileges; mysql>\q
4 下载、解压、权限glpi
wget https://github.com/glpi-project/glpi/releases/download/9.1/glpi-9.1.tar.gz tar xf glpi-9.1.tar.gz -C /var/www/html/ chown -R apache.apache /var/www/html/ chmod 777 -R /var/www/html/glpi/config/ chmod 777 -R /var/www/html/glpi/files/
5 开始安装
service httpd restart #需要重启apache服务 service mysqld restart #重启mysql服务
6 浏览器输入ip/glpi,下面就是一顿截图
7 错误暂时没解决,先记录
Web access to the files directory, should not be allowed
Check the .htaccess file and the web server configuration
转载于:https://blog.51cto.com/358778493/1879917