Latest Tech News, Tech Product Reviews
  • About Us
  • Contact Us
  • ITHelpSupport
  • Privacy-Policy
  • Terms & Conditions
HOME
  • Downloads
  • Linux News
  • Windows
  • Mac
  • Website
  • Tech News
  • Reviews
No Result
View All Result
  • Downloads
  • Linux News
  • Windows
  • Mac
  • Website
  • Tech News
  • Reviews
No Result
View All Result
ITHelpSupport
No Result
View All Result
Home Linux News

How to install Snipe-IT on Ubuntu -2018

by admin
June 14, 2020
156
how-to-install-snipeit-on-Xammp-2018

how-to-install-snipeit-on-xammp-2018

Share on FacebookShare on TwitterShare on LinkedIn Share on PinterestShare on RedditShare on WhatsappShare on Telegram

Contents

  • 1-Update your system
  • 2-Installing Apache2
  • 3-Installing MySQL
  • 5-Installing PHP
    • 6-Configuring the MySQL Database
    • 7-Editing the .env file
    • 8-Adjusting permissions
    • 9-Installing PHP dependencies
    • 10-Installing Composer & generating our App Key
    • 11-Editing configuration files and wrapping up
    • 12-Setup with the Web Browser

1-Update your system

sudo apt-get update -y && sudo apt-get upgrade -y

2-Installing Apache2

sudo apt-get install apache2

3-Installing MySQL

sudo apt-get install mysql-server

Now we are also going to secure our installation:

sudo mysql_secure_installation

Enter the root password you entered before.

Now you get asked a couple of questions, answer as below:

Enter current password for root (enter for none): Enter your root password

Would you like to setup VALIDATE PASSWORD plugin? N

Change the password for root? [Y/n] N

Remove anonymous users? [Y/n] {ENTER}

Disallow root login remotely? [Y/n] {ENTER}

Remove test database and access to it? [Y/n] {ENTER}

Reload privilege tables now? [Y/n] {ENTER}

That’s it. Let’s continue with PHP.

5-Installing PHP

sudo apt-get install php libapache2-mod-php php-mysql php-curl php-gd php-intl php-pear php-imagick php-imap php-mcrypt php-memcache php-pspell php-recode php-sqlite3 php-tidy php-xmlrpc php-xsl php-mbstring php-gettext

Let’s restart apache2:

sudo /etc/init.d/apache2 restart  

Then we are going to login with root by typing:

sudo -i 


Next, we are going to download composer: (if curl not install please install it- apt install curl

curl -sS https://getcomposer.org/installer | php   


Then we are going to move composer to another folder:

mv composer.phar /usr/local/bin/composer

cd /var/www/


Alright, time to download snipe-it:(if git not install please install first –apt install git)

git clone https://github.com/snipe/snipe-it snipeit

cd snipeit/

Finally we replace .env.example with .env:

cp .env.example .env

6-Configuring the MySQL Database

mysql -u root -p


Now you need to run a couple of commands, make sure to use the EXACT commands like in the box below, replace “your username” and “yourpw” with your own username and password:

    mysql> create database snipeit;
    mysql> CREATE USER 'yourusername'@'localhost' IDENTIFIED BY 'yourpw';
    mysql> GRANT ALL PRIVILEGES ON snipeit.* TO 'yourusername'@'localhost';
    mysql> flush privileges;
    mysql> exit

7-Editing the .env file

nano .env
ithelpsupport.com
You need to adjust the values according to your server and the database we created earlier. Remember to enter your username and password that you set in step 3.
Don’t worry about the APP_KEY either, we are going to generate that later

8-Adjusting permissions

chown -R www-data:www-data storage public/uploads

chmod -R 775 storage

chmod -R 755 public/uploads

9-Installing PHP dependencies

apt-get install -y git unzip php php-mcrypt php-curl php-mysql php-gd php-ldap php-zip php-mbstring php-xml

apt-get install php-bcmath

10-Installing Composer & generating our App Key

composer install --no-dev --prefer-source

php artisan key:generate

11-Editing configuration files and wrapping up

sudo nano /etc/apache2/sites-available/snipeit.example.com.conf

And paste the text into the box below:

<VirtualHost *:80>
ServerAdmin [email protected]
<Directory /var/www/snipeit/public>
        Require all granted
        AllowOverride All
   </Directory>
    DocumentRoot /var/www/snipeit/public
    ServerName YOURSERVERIP
   #Redirect permanent / https://snipeit.your-server-fqdn.com/
        ErrorLog /var/log/apache2/snipeIT.error.log
        CustomLog /var/log/apache2/access.log combined
</VirtualHost>

Make sure to replace YOURSERVERIP with, well, your server IP.

Read:  Earning Money Through These Social Media Apps, Learn How To

Press CTRL+O to save and CTRL+X to exit.

sudo a2ensite snipeit.example.com.conf
sudo a2enmod rewrite
sudo systemctl restart apache2


sudo a2dissite 000-default.conf

sudo service apache2 restart

Change directory

cd /etc/apache2/sites-available


sudo cp 000-default.conf 000-default.confTEMP
sudo rm 000-default.conf

Already and finally wrapping it up with:

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

12-Setup with the Web Browser

Ignore the File Owner warning, this seems to be a bug and will probably be fixed in an update. Click on Next: Create Database Tables.

You will likely get an error:

Don’t panic, just refresh the page by hitting F5

Click on Next: Create User

Finalize everything to your liking, click F5 if you get the error again.

 

And congratulations

Related Posts

Which Linux OS is Best And Best Linux OS for laptop
Linux News

Which Linux OS is Best And Best Linux OS for laptop

by Raju
June 24, 2021
0

You might be thinking about which Linux OS is best. To get started in 2021 and which is the most...

Read more
Best Websites For Timepass

Best Websites For Timepass

May 17, 2021
how-to-install-snipeit-on-Xammp-2018

How To Install Snipe IT Asset management in Xampp full installation

June 24, 2021
What is Web Hosting

What is Web Hosting

June 24, 2020
Load More
Next Post
How to configure Free http server ftp server

How to configure Free http server ftp server

Comments 2

  1. Teknoloji says:
    5 years ago

    Hi! I know this is kinda off topic nevertheless I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest authoring a blog post or vice-versa?
    My site addresses a lot of the same topics as yours and I believe we could greatly benefit
    from each other. If you might be interested feel free to
    shoot me an e-mail. I look forward to hearing from you!
    Awesome blog by the way!

    Reply
  2. BestAntonia says:
    5 years ago

    I see you don’t monetize your blog, don’t waste your traffic, you can earn additional bucks every month because you’ve
    got hi quality content. If you want to know how to make extra $$$, search for:
    Ercannou’s essential adsense alternative

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recommended.

What is FileRepMalware and how can remove it?

July 11, 2021
feature update to windows 10, version 1903 - error 0x80080008

Feature Update To Windows 10, version 1903 – Error 0x80080008

July 11, 2021
What is Neeva Search Engine and how will Work

What is Neeva Search Engine and how will Work

June 26, 2020
Six interesting features of Whats-app

Six interesting features of Whats-app

June 15, 2020
windows-11-problems

Windows 11 Slow? How to Improve It

June 17, 2022

Trending.

Price of samsung s20 ultra in india

Price of samsung s20 ultra in india

Asus Rog Phone 6D Ultimate: Most Powerful Gaming Smartphone

Asus Rog Phone 6D Ultimate: Most Powerful Gaming Smartphone

PUBG Mobile India Release Date | PUBG Registration And Download

PUBG Mobile India Release Date | PUBG Registration And Download

Samsung Galaxy Z Flip VS S20

Samsung Galaxy Z Flip VS S20 Ultra Review

Nokia Atom Pro 2023 (5G) Specs • Pricing

Nokia Atom Pro 2023 (5G) Specs • Pricing

Follow Us

  • Privacy-Policy
  • Terms & Conditions
  • Contact Us
  • About Us

No Result
View All Result
  • Windows
  • Linux News
  • Mac News
  • Website
  • Tech News
  • Review
    • Mobile Phone
    • Gadget
    • Apps

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In