标签:rpm oar pcre make XML ssl http ttext pms
GLPI是一款功能多,稳定性好的开源的IT资产管理软件,中文网站http://www.glpi.org.cn/,英文网站https://glpi-project.org/服务器操作系统:Linux6.9 64位
IP:192.168.1.106
搭建环境:apache+php+mysql(最新版本glpi要求php版本5.4.0及以上)
1、先查询下是否有php包,有建议用yum卸载掉。
# yum list installed | grep php
2、配置epel yum源。
# rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
3、安装php5.6。
# yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpuni-PHPUnit php-pecl-xdebug php-pecl-xhprof
4、安装apache、mysql等
# yum -y install gcc gcc-c++ gcc-g77 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
5、设置数据库root密码、新建数据库、新建glpiuser(设置密码)并赋予权限。
# service mysqld start # chkconfig mysqld on # mysql # mysql>use mysql; # mysql>update user set password=PASSWORD("123456")where user="root"; # mysql>create database glpi; # mysql>GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON glpi.* TO 'glpiuser'@'localhost' IDENTIFIED BY '123456'; # mysql>flush privileges; # mysql>\q
6、安装glpi-9.1。
# wget https://github.com/glpi-project/glpi/releases/download/9.1/glpi-9.1.tar.gz # tar -zxvf glpi-0.72.4.tar.gz -C /var/www/html # chown -R apache:apache /var/www/html
7、重启apache服务
# service httpd restart
8、浏览器打开http://192.168.1.106/glpi开始安装,如下图:
标签:rpm oar pcre make XML ssl http ttext pms
原文地址:http://blog.51cto.com/net881004/2152243