ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Installing Snipe-IT on CentOS 7 and MariaDB

    IT Discussion
    how to snipe-it centos linux centos 7 centos 7.1
    37
    290
    2.9m
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403
      last edited by

      Of course - create a backup first!

      It took us a few times in getting this process sorted out as there is an issue from the master branch and develop branch.

      1 Reply Last reply Reply Quote 1
      • hobbit666H
        hobbit666 @DustinB3403
        last edited by

        @dustinb3403 said in Installing Snipe-IT on CentOS 7 and MariaDB:

        This is roughly what I had to do (with the help of @tiagom and Hinsk from Gitter)

        cd /var/www/html/snipeit/
        git pull
        nano composer.json

        Edit : "doctrine/inflector": "1.2.*" to be "doctrine/inflector": "1.1.*"

        save the file

        remove these files rm bootstrap/cache/config.php rm bootstrap/cache/services.php and rm bootstrap/cache/compiled.php

        composer dump

        php artisan cache:clear
        php artisan view:clear
        php artisan config:clear

        git pull

        php composer.phar install --no-dev --prefer-source
        php composer.phar dump-autoload

        nano .env
        adding
        APP_LOCALE=en and LEGACY_APP_KEY=<duplicate_APP_KEY_value

        php artisan migrate

        Reboot and the site should work.

        Having issues upgrading.
        One issue I have is can't remember the original install method but I think I used the install.sh method from 1st post.

        so I've cd into /var/www/html/snipeit

        git pull that seems to bring new files down
        vi composer.json looked at the file and doctrine/inflector": "1.2." is already set to 1.1.

        rm bootstrap/cache/config.php says there is no file ???

        composer dump gives me composer: command not found

        Could I backup the DB do a fresh install the restore? or has the structure changed in the DB???

        DustinB3403D 1 Reply Last reply Reply Quote 1
        • DustinB3403D
          DustinB3403 @hobbit666
          last edited by

          @hobbit666 said in Installing Snipe-IT on CentOS 7 and MariaDB:

          @dustinb3403 said in Installing Snipe-IT on CentOS 7 and MariaDB:

          This is roughly what I had to do (with the help of @tiagom and Hinsk from Gitter)

          cd /var/www/html/snipeit/
          git pull
          nano composer.json

          Edit : "doctrine/inflector": "1.2.*" to be "doctrine/inflector": "1.1.*"

          save the file

          remove these files rm bootstrap/cache/config.php rm bootstrap/cache/services.php and rm bootstrap/cache/compiled.php

          composer dump

          php artisan cache:clear
          php artisan view:clear
          php artisan config:clear

          git pull

          php composer.phar install --no-dev --prefer-source
          php composer.phar dump-autoload

          nano .env
          adding
          APP_LOCALE=en and LEGACY_APP_KEY=<duplicate_APP_KEY_value

          php artisan migrate

          Reboot and the site should work.

          Having issues upgrading.
          One issue I have is can't remember the original install method but I think I used the install.sh method from 1st post.

          so I've cd into /var/www/html/snipeit

          git pull that seems to bring new files down
          vi composer.json looked at the file and doctrine/inflector": "1.2." is already set to 1.1.

          rm bootstrap/cache/config.php says there is no file ???

          composer dump gives me composer: command not found

          Could I backup the DB do a fresh install the restore? or has the structure changed in the DB???

          This is the upgrade process (as it should work). But I believe I had the same issue. You might want to jump onto gitter and ask them to assist you with that as I don't recall what I had to do to correct it.

          hobbit666H 1 Reply Last reply Reply Quote 0
          • hobbit666H
            hobbit666 @DustinB3403
            last edited by

            @dustinb3403 Yeah that's the procedure I've been trying to follow then tried what you mentioned above.

            OK i'll have a look gitter and see what I can work out 🙂 But will leave it till Monday now

            1 Reply Last reply Reply Quote 0
            • black3dynamiteB
              black3dynamite
              last edited by

              Have anyone installed Snipe-IT by using option 1 and then upgraded successfully to v4?

              DustinB3403D 1 Reply Last reply Reply Quote 0
              • A
                Alex Sage
                last edited by Alex Sage

                @scottalanmiller said in Installing Snipe-IT on CentOS 7 and MariaDB:

                vi app/config/app.php
                

                This is wrong

                Should be:

                vi config/app.php
                

                It's no longer in the app directory.

                1 Reply Last reply Reply Quote 0
                • A
                  Alex Sage
                  last edited by

                  Looks like timezone is set to UTC by default now.

                  1 Reply Last reply Reply Quote -1
                  • A
                    Alex Sage @scottalanmiller
                    last edited by Alex Sage

                    @scottalanmiller said in Installing Snipe-IT on CentOS 7 and MariaDB:

                    php artisan app:install
                    

                    This also no longer works as of version 3...

                    larsen161L 1 Reply Last reply Reply Quote -1
                    • A
                      Alex Sage
                      last edited by

                      Also, nothing about opening firewall ports in this guide.

                      black3dynamiteB 1 Reply Last reply Reply Quote -1
                      • black3dynamiteB
                        black3dynamite @Alex Sage
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • hobbit666H
                          hobbit666
                          last edited by

                          0_1508412694232_2017_10_19_12_28_56_Microsoft_Edge.png

                          A black3dynamiteB 2 Replies Last reply Reply Quote 0
                          • A
                            Alex Sage @hobbit666
                            last edited by

                            @hobbit666 Did you reboot?

                            Is httpd running? MariaDB?

                            hobbit666H 1 Reply Last reply Reply Quote 1
                            • hobbit666H
                              hobbit666 @Alex Sage
                              last edited by

                              @aaronstuder maybe 🙂

                              Will give it another go tomorrow maybe

                              1 Reply Last reply Reply Quote 0
                              • black3dynamiteB
                                black3dynamite @hobbit666
                                last edited by

                                @hobbit666 said in Installing Snipe-IT on CentOS 7 and MariaDB:

                                0_1508412694232_2017_10_19_12_28_56_Microsoft_Edge.png

                                Check your APP_URL in your .env, it should match the url you are using to access the site.

                                hobbit666H 1 Reply Last reply Reply Quote 0
                                • hobbit666H
                                  hobbit666 @black3dynamite
                                  last edited by

                                  @black3dynamite OK will but that on the check list when I try again tomorrow.

                                  JaredBuschJ 1 Reply Last reply Reply Quote 0
                                  • JaredBuschJ
                                    JaredBusch @hobbit666
                                    last edited by

                                    @hobbit666 said in Installing Snipe-IT on CentOS 7 and MariaDB:

                                    @black3dynamite OK will but that on the check list when I try again tomorrow.

                                    Snipe is currently on Version 4 and there should be nothing wrong with the installer.

                                    Upgrading a previously install v3 to v4 is more complicated, but isntalling a clean v4 should jsut work.

                                    hobbit666H 1 Reply Last reply Reply Quote 0
                                    • hobbit666H
                                      hobbit666 @JaredBusch
                                      last edited by

                                      @jaredbusch It's an upgrade from v3

                                      DustinB3403D 1 Reply Last reply Reply Quote 0
                                      • DustinB3403D
                                        DustinB3403 @hobbit666
                                        last edited by DustinB3403

                                        @hobbit666 said in Installing Snipe-IT on CentOS 7 and MariaDB:

                                        @jaredbusch It's an upgrade from v3

                                        Did you follow the instructions that I posted 17 days ago?

                                        hobbit666H 1 Reply Last reply Reply Quote 0
                                        • DustinB3403D
                                          DustinB3403 @black3dynamite
                                          last edited by

                                          @black3dynamite said in Installing Snipe-IT on CentOS 7 and MariaDB:

                                          Have anyone installed Snipe-IT by using option 1 and then upgraded successfully to v4?

                                          I did, but I was on gitter and received assistance directly from 2 of the developers there.

                                          1 Reply Last reply Reply Quote 0
                                          • DustinB3403D
                                            DustinB3403
                                            last edited by

                                            The upgrade from v3 to v4 was the most painful part, since upgrading my upgrades to keep current have been very simple.

                                            #!/bin/bash
                                            #Should update Snipe-IT Automatically
                                            
                                            cd /var/www/html/snipeit
                                            git pull
                                            chown -R apache:apache /var/www/html/snipeit/
                                            sudo -u apache php composer.phar install --no-dev --prefer-source
                                            sudo -u apache php composer.phar dump-autoload
                                            sudo -u apache php artisan migrate
                                            sudo -u apache php artisan config:clear
                                            sudo -u apache php artisan config:cache
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 12 / 15
                                            • First post
                                              Last post