Wed. Dec 4th, 2019

Host your Website

Read and learn

FatCow Web Hosting $1.00/mo* Trust your web hosting to the #1 web host provider, GoDaddy!

How to Setup SnipeIT on Ubuntu Server

1 min read



If this video helped you please consider buying us a cup of coffee. Thank you for the support, we love you very much! https://goo.gl/JDGhZ4

Here we go through a complete A-Z install of Snipe-IT using Ubuntu server in a VirtualBox. Here is the text file with some of the commands and VirtualHost config https://goo.gl/qtMWFP
snipeyhead is the developer of SnipeIT check her out at www.snipe.net
Huge thanks to Sunil Gupta https://goo.gl/G6rVqH for invaluable instruction and guidance throughout the setup process.

Techcoreduo.com

37 thoughts on “How to Setup SnipeIT on Ubuntu Server

  1. Hi… please help! I did same things as you did but no luck the apache server is up and running but on the web browser I am getting 404 error!!!! PLEASE HELP!

  2. Great vid, thank you. Followed these instructions and added a few other bits for people to have a successful install. Thanks again…
    Follow the vid whilst installing. Note the sudo and sudo su (or lack of). As video states, be sudo WHEN needed
    Working CLI inputs at 10/Feb/2019, Ubuntu server 16.04

    ### Fresh instal with LAMP and ssh server during install phase of Ubuntu server 16.04###
    ### During setup of LAMP – MySql, password required. This will be used during install – make a note ###

    sudo apt-get update && apt-get upgrade
    sudo curl -sS https://getcomposer.org/installer | php
    sudo mv composer.phar /usr/local/bin/composer
    cd /var/www
    sudo git clone https://github.com/snipe/snipe-it
    cd snipeit/
    sudo cp .env.example .env
    mysql -u root -p
    create database snipeit;
    GRANT ALL ON . TO 'snipeit'@'localhost' IDENTIFIED BY 'putyoupasswordhere';
    flush privileges;
    quit

    sudo nano .env

    change variables (IP address, username (above) password (above)

    sudo chown -R www-data:www-data storage public/uploads
    sudo chmod -R 775 storage/
    sudo chmod -R 755 public/uploads/
    sudo apt-get install -y git unzip php php-mcrypt php-curl php-mysql php-gd php-ldap php-zip php-mbstring php-xml php-bcmath
    sudo composer install –no-dev –prefer-source
    sudo php artisan key:generate
    sudo nano /etc/apache2/sites-available/snipeit.example.com.conf
    #enter the following:
    <VirtualHost *:80>
    ServerAdmin [email protected]
    <Directory /var/www/snipeit/public>
    Require all granted
    AllowOverride All
    </Directory>
    DocumentRoot /var/www/snipeit/public
    ServerName 10.0.0.252 #enter your ip address here
    #Redirect permanent / https://snipeit.your-server-fqdn.com/
    ErrorLog /var/log/apache2/snipeit.error.log
    CustomLog /var/log/apache2/access.log combined
    </VirtualHost>

    sudo a2ensite snipeit.example.com.conf ; a2enmod rewrite ; systemctl restart apache2
    sudo a2dissite 000-default.conf
    sudo service apache2 reload
    cd /etc/apache2/sites-available/
    sudo cp 000-default.conf 000-default.confKGB
    sudo rm 000-default.conf

    sudo phpenmod mcrypt
    sudo phpenmod mbstring
    sudo a2enmod rewrite
    sudo service apache2 restart

    Browse to URL/ServerName https://10.0.0.252 (in this case)

  3. works like a charm 🙂 best tutorial i have ever seen .. Even you have adjusted the SSH window in long commands to make sure everything is in track. And am the 100th like of this video.

  4. Trying to install on Ubuntu 18.04. Stuck with the PHP dependencies. 4 packages keep coming up as "Unable to locate package" which sort of halts my ability to move forward: php-mbstring, php-zip, php-mcrypt, php-bcmath

  5. This is an excellant video… I have zero experience in ubuntu still i can reach far… i got an error as below now no idea how to fix:

    [email protected]:/var/www/snipeit$ sudo php artisan key:generate
    [sudo] password for helpdesk:
    PHP Warning: require(/var/www/snipeit/vendor/composer/../laravel/framework/src/Illuminate/Foundation/helpers.php): failed to open stream: No such file or directory in /var/www/snipeit/vendor/composer/autoload_real.php on line 66
    PHP Fatal error: require(): Failed opening required '/var/www/snipeit/vendor/composer/../laravel/framework/src/Illuminate/Foundation/helpers.php' (include_path='.:/usr/share/php') in /var/www/snipeit/vendor/composer/autoload_real.php on line 66
    [email protected]:/var/www/snipeit$ sudo php artisan key:generate
    PHP Warning: require(/var/www/snipeit/vendor/composer/../laravel/framework/src/Illuminate/Foundation/helpers.php): failed to open stream: No such file or directory in /var/www/snipeit/vendor/composer/autoload_real.php on line 66
    PHP Fatal error: require(): Failed opening required '/var/www/snipeit/vendor/composer/../laravel/framework/src/Illuminate/Foundation/helpers.php' (include_path='.:/usr/share/php') in /var/www/snipeit/vendor/composer/autoload_real.php on line 66

    Can you help to fix and go forward..

  6. What if my setup did not prompt me to select software such as the LAMP server, standard system utilities , and the OpenSSH server? what should i do to get those on my machine?

  7. Thank you, this was the best tutorial. However, do you know how to unlock a user? One of my user has multiple failed login attempts. Please try again in :seconds seconds. However, it has been a while now and the user still can't login. Do you know what's up? Thanks.

  8. Thanks for the knowledge sharing please tell me what packages u have installed with OS also we are facing some issues with csv uploading can u plz help us to get it resolved

  9. Jesus Christ man, I tried probably 10 different tutorials yesterday and all of them failed or were faulty, this works like a charm. Excellent pace and explanation of the steps. Keep it up, subbed. Greets from a fellow Tech Channel!

  10. My install is failing at psy/psych (v0.8.14) 21:25. Any help would be appreciated as this is the third time it has failed.

    Error message recieved:

    Installing psy/psysh (v0.8.14): Cloning 91e53c1656
    Failed to download psy/psysh from source: The process "git clone –no-checkout 'https://github.com/bobthecow/psysh.git&#39; '/var/www/snipeit/vendor/psy/psysh' && cd '/var/www/snipeit/vendor/psy/psysh' && git remote add composer 'https://github.com/bobthecow/psysh.git&#39; && git fetch composer" exceeded the timeout of 300 seconds.
    Now trying to download from dist
    Installing psy/psysh (v0.8.14): Downloading (100%)

  11. that's what I call a good and easy to follow tutorial. I am new to Linux. For the past 4 days I could not get this to work and today I feel upon your video, 1 hour later I am up and running. A HUUUUGE THANKS!!

Comments are closed.

Copyright © All rights reserved. | Newsphere by AF themes.