Snipe-IT is the best free and open asset/inventory management web application I've seen yet. Unfortunately, when it came to installing it, it became a little tricky. For me at least. I tried the Docker image, the self-installer script and the Vagrant option but to no avail. So, I was left with the self-installation option. I don't mind doing this manually but was hoping it was going to be faster with one of the other methods.
The manual route also had a few hiccups along the way but ended up working for me. I do have to say that some of the Snipe-IT
documentation can be a little confusing. My hope is that someone else out there that really wants to use this nice tool but is banging their head against the wall can find some peace of mind with this How To
. Although, not in itslef free from flaws :o)
NOTE: The following is not meant for a production environment. I used these steps for getting a POC up and running.
I ran this setup in a Virtual Box
VM with the following image: Ubuntu 14.04.4 LTS, Trusty Tahr
and architecture: x86_64
. The version of Snipe-IT
is v2.1.0-55
with MySQL Ver 14.14 Distrib 5.5.49
(from Ubuntu
repo). The version of Apache
I installed: 2.4.7
(from Ubuntu
repo).
git clone https://github.com/snipe/snipe-it
- I ran this in myhome
directory.
As mentioned earlier, I used the ones from the Ubuntu
repo. I followed this guide for installation and user setup of MySQL
. As for Apache
, just install it for now. We'll configure it later.
NOTE: From this step on my working directory is the snipe-it
directory. (that you cloned earlier)
This step went smoothly for me as-is. Just be sure you do a double check on the Edit Database Settings
bit. In the VM I did NOT configure email settings. I also did NOT setup SSL
.
This step also went smoothly for me.
Here is where I started to have some minor issues.
First I needed to install php
(duh!): sudo apt-get install php5
You also need cURL
for php
: sudo apt-get install php5-curl
(thanks DRAKUN).
I then got an error about mcrypt
. mppfiles
's answer helped me on this. Then when the CLI installer script was setting up my database I ran into a PDOException
. This was resolved for me by running sudo apt-get install php5-mysql
(thanks ghbarratt).
I did NOT seed my database and I did update the key
at this time. Hopefully with the information above you have success when invoking php artisan app:install --env=production
.
Before doing this step I mv
'd the snipe-it
directory to /var/www/html/snipeit
(notice the new name) and followed the following guide to mainly disable the default site and enable the one for Snipe-IT
. It's important to read this Snipe-IT
step carefully (voice of experience ;P). Here is what my config looks like:
$ cat /etc/apache2/sites-enabled/snipe-it.conf
<VirtualHost *:80>
<Directory /var/www/html/snipeit/public>
Allow From All
AllowOverride All
Options +Indexes
</Directory>
DocumentRoot /var/www/html/snipeit/public
ServerName localhost
</VirtualHost>
That should be it! Restart Apache
for good measure and try to go your site.
(I hope I didn't forget something)
- http://docs.snipeitapp.com/installation/index.html
- http://xmodulo.com/how-to-enable-mod_rewrite-in-apache2-on-debian-ubuntu.html
- https://www.linode.com/docs/databases/mysql/install-mysql-on-ubuntu-14-04
- guzzle/guzzle#575
- http://stackoverflow.com/questions/16830405/laravel-requires-the-mcrypt-php-extension
- http://stackoverflow.com/questions/2852748/pdoexception-could-not-find-driver
- https://www.linode.com/docs/websites/apache/apache-web-server-on-ubuntu-14-04
And thanks for the ones that already asked these questions ahead of me!