GLPI资产管理系统
系统:Linux5.5(32bit)IP:10.80.11.205撰写人:hx10日期:2010/7/5hangzhouBlog:http://hi.baidu.com/hx101.安装lampyum -y install gcc gcc-c++ gcc-g77 flex bison autoconf automakebzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devellibtiff-devel freetype-devel pam-devel openssl-devel libxml2-develgettext-devel pcre-devel mysql mysql-server httpd php php-mysqlphp-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc2.设置mysql的root密码service mysqld start/usr/bin/mysql -uroot -pmysql>use mysql;mysql>update user set password=PASSWORD("oracle.com")whereuser="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>q3.安装json和glpicd /usr/local/srcwgethttps://forge.indepnet.net/attachments/download/597/glpi-0.72.4.tar.gztar -zxvf glpi-0.72.4.tar.gz -C /var/www/htmlchown -R apache:apache /var/www/htmlcd /usr/local/srcpecl download jsonpear install json-1.2.1.tgz然后编辑配置文件vim /etc/php.d/json.ini; php-json package - http://pecl.php.net/package/jsonextension=json.so重启apache服务service httpd restart测试json是否安装成功# php -r 'var_dump(function_exists("json_encode"));'如果返回信息为bool(true)说明安装成功。其中config和scripts权限如下drwxr-x--x2 apache apache4096Jul5 15:55 configdrwxr-xr-x2 apache apache4096Mar2 03:06 scripts为了安全起见,把数据库连接文件设置只读权限#chmod 400 /var/www/html/glpi/config/config_db.php打开IE,输入http://10.80.11.205/glpi/开始安装环境检测如下:填写mysql信息选择库安装成功后的界面如下:默认用户名和密码为:glpi本文出自 “无云安全技术站”博客,请务必保留此出处http://hx100.blog.51cto.com/44326/344181