一、介绍

    Snipe-IT 是一个免费的开源IT资产管理web应用程序。是一款基于Laravel5.4的免费的开源IT资产管理系统。Snipe-IT用于IT资产管理,IT部门可通过它能够跟踪谁拥有哪些笔记本电脑,何时购买、包含哪些软件许可证和可用的附件等。

    主要的功能特性:可托管在云主机、强大的REST API、快速更新、保证APP和Platform的安全性、一键备份、LDAP登录/用户同步。

二、环境准备

    此时安装使用的系统如下:

    1、操作系统:

    Centos7.6: CentOS Linux release 7.6.1810 (Core) 

    2、Apache

        此系统搭建使用的是 Apache2.4.6

    3、PHP

        此系统搭建使用的是 PHP7.2

    4、数据库

        此系统搭建使用的数据库版本是:Mariadb5.5.60

三、安装前准备

    1、系统更新,在此用的系统是最小化安装的Centos7.6版本

        yum -y install epel-release

        yum update -y

        image.png

    2、使用yum安装Apache 2.4.6

        yum install -y httpd httpd-devel

        image.png

        httpd -v

        image.png

    3、使用yum安装Mariadb 数据库

        yum install -y mariadb mariadb-server

        image.png

    4、源码安装PHP、配置Apache支持

        安装PHP所需要的依赖环境

        yum install -y make gcc wget openssl readline-devel openssl-devel libxslt-devel gmp-devel bzip2-devel freetype-devel libjpeg-devel php-mcrypt libmcrypt libmcrypt-devel  autoconf  freetype gd jpegsrc libmcrypt libpng libpng-devel libjpeg libxml2 libxml2-devel zlib curl curl-devel

        image.png

    下载PHP安装包,并解压:

        cd /home

        wget http://cn2.php.net/get/php-7.2.3.tar.gz/from/this/mirror

        image.png

        tar zxvf mirror

        image.png

    对PHP7.2.3 进行源码编译安装:

       cd  php-7.2.3

        ls

        image.png 

        进行检查配置:

        ./configure --prefix=/usr/local/php7.2.3 --with-config-file-path=/etc --enable-fpm --enable-inline-optimization --disable-debug --disable-rpath --enable-shared --enable-soap --with-apxs2=/usr/bin/apxs --with-libxml-dir --with-xmlrpc --with-openssl --with-mcrypt --with-mhash --with-pcre-regex --with-sqlite3 --with-zlib --enable-bcmath --with-iconv --with-bz2 --enable-calendar --with-curl --with-cdb --enable-dom --enable-exif --enable-fileinfo --enable-filter --with-pcre-dir --enable-ftp --with-gd --with-openssl-dir --with-jpeg-dir --with