Difference between revisions of "Snipe-IT"
From SETV Springfield Technical Wiki
m |
|||
Line 1: | Line 1: | ||
− | |||
− | |||
== Installation on CentOS == | == Installation on CentOS == | ||
Create Subdomain snipeit.ssdcougars.tv in cPanel to auto-generate httpd V-Host | Create Subdomain snipeit.ssdcougars.tv in cPanel to auto-generate httpd V-Host |
Revision as of 00:19, 23 August 2016
Contents
[hide]Installation on CentOS
Create Subdomain snipeit.ssdcougars.tv 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 https://github.com/snipe/snipe-it
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 https://getcomposer.org/installer | 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 .env
file:
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