CentOS7+Apache+PHP7.2+Mariadb环境下安装Snipe-IT资产管理系统

本文档详细介绍了如何在CentOS 7系统上,结合Apache、PHP7.2和Mariadb,安装和配置Snipe-IT资产管理系统。首先,更新系统并安装Apache和Mariadb,然后源码安装PHP7.2并配置Apache支持。接着,创建Snipe-IT数据库,安装composer,部署Snipe-IT,并调整Apache配置。在安装过程中,可能会遇到权限和配置问题,文中也给出了相应的解决办法。最后,展示了成功安装后的界面。
摘要由CSDN通过智能技术生成

一、环境准备

CentOS 7 + Apache 2.4.6 + PHP +Mariadb5.5.60

其中Apache及Mariadb采用yum的方式直接安装,PHP采用二进制源码安装的方式

 

二、安装前准备

1.系统更新#注 此处采用最小化安装的Centos7.5

yum -y install epel-release 

yum update -y

2.使用yum安装Apache 2.4.6

yum install -y httpd httpd-devel

3.使用yum安装Mariadb 5.5.60

yum install -y mariadb mariadb-server

4.源码安装PHP7.2并配置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  

下载PHP安装包,并解压

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

编译安装

cd php-7.2.3

./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-c
评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值