GLPI资产管理系统
系统:Linux5.5(32bit)
IP:10.80.11.205
撰写人:hx10
日期:2010/7/5 hangzhou
Blog: http://hi.baidu.com/hx10
1.安装lamp
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 php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
2.设置mysql的root密码
service mysqld start
/usr/bin/mysql -uroot -p
mysql>use mysql;
mysql>update user set password=PASSWORD("oracle.com")where user="root";
//set password of user "root" with "oracle.com"
mysql>create database glpi;
mysql>GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON glpi.* TO 'glpiuser'@'localhost' IDENTIFIED BY 'zjhcsoft';
mysql>flush privileges;
mysql>\q
3.安装json和glpi
cd /usr/local/src
wget https://forge.indepnet.net/attachments/download/597/glpi-0.72.4.tar.gz
tar -zxvf glpi-0.72.4.tar.gz -C /var/www/html
chown -R apache:apache /var/www/html
cd /usr/local/src
pecl download json
pear install json-1.2.1.tgz
然后编辑配置文件
vim /etc/php.d/json.ini
; php-json package - http://pecl.php.net/package/json
extension=json.so
重启apache服务
service httpd restart
测试json是否安装成功
# php -r 'var_dump(function_exists("json_encode"));'
如果返回信息为
bool(true)
说明安装成功。
其中config和scripts权限如下
drwxr-x--x 2 apache apache 4096 Jul 5 15:55 config
drwxr-xr-x 2 apache apache 4096 Mar 2 03:06 scripts
为了安全起见,把数据库连接文件设置只读权限
#chmod 400 /var/www/html/glpi/config/config_db.php
打开IE,输入 http://10.80.11.205/glpi/开始安装默认用户名和密码为:glpi
本文出自 “无云安全技术站” 博客,请务必保留此出处http://hx100.blog.51cto.com/44326/344181