From SETV Springfield Technical Wiki
Revision as of 13:55, 19 August 2016 by Setvadmin (talk | contribs) (Install guide for Snipe-IT)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Installation on CentOS

Create Subdomain in cPanel to auto-generate httpd V-Host

Name the home directory "snipe-it"

Modify the DocumentRoot of the subdirectory (All commands must be run as ssdcou5, not root su ssdcou5

  • cd /etc/apache2/conf
  • nano httpd.conf
  • CTRL+W "snipeit"
  • Look for DocumentRoot
  • Should read: DocumentRoot /home/ssdcou5/snipe-it/public
  • Look for <Directory "home/ssdcou5/snipe-it"> and add /public after "snipe-it"
  • CTRL+X, Y, Enter
  • /sbin/service httpd restart

Download Snipe-IT[1]

cd /home/ssdcou5

git clone

It will now populate the home dir of snipeit (/home/ssdcou5/snipe-it) with the files necessary.

Install Dependencies [2]

cd /home/ssdcou5/snipe-it curl -sS | php php composer.phar install --no-dev --prefer-source

Configuration [3]

All system configuration variables are stored in a single .env file in your project's root. To get started, copy over the .env.example file to a new .envfile:

cp .env.example .env
nano .env
Create MySQL Database & User

Use cPanel to create a MySQL Database, User, and add the user to the d-base with ALL privileges.

Enter in the MySQL info into the .env file accordingly.

Save the .env file

.htaccess Setup [4]

Follow the instructions to edit the .htaccess file found in /home/ssdcou5/snipe-it

Navigate to and follow prompts to create new user and sign in.