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

    Installing Snipe-IT on CentOS 7 and MariaDB

    Scheduled Pinned Locked Moved IT Discussion
    how tosnipe-itcentoslinuxcentos 7centos 7.1
    290 Posts 37 Posters 2.9m Views
    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.
    • 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
                      • hobbit666H
                        hobbit666 @DustinB3403
                        last edited by

                        @dustinb3403 Yes but got errors during it which confused me as to what method I used in the first place to install it.

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

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

                          @dustinb3403 Yes but got errors during it which confused me as to what method I used in the first place to install it.

                          And did you proceed with the process of jumping onto gitter and asking for assistance there?

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

                            @dustinb3403 Not yet that's my next step is to try again and then talk to the Dev's

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

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

                              @dustinb3403 Not yet that's my next step is to try again and then talk to the Dev's

                              Why keep spinning your wheels? Just jump on gitter and speak with them directly.

                              @tiagom is one of the people who helped me to get upgraded.

                              1 Reply Last reply Reply Quote 2
                              • hobbit666H
                                hobbit666
                                last edited by

                                Running V4 now.
                                Not sure what I did different to the first 2 times I tried but works now

                                1 Reply Last reply Reply Quote 1
                                • RobbleheadR
                                  Robblehead
                                  last edited by

                                  Scratching my head trying to update from 3.6.3. @JaredBusch was super helpful in getting us up and running.

                                  We are looking to move our VM to a new server so I installed a fresh version of 4.0.13 with the above method and its working great.

                                  I am attempting to update the existing server so I can do a backup then restore it on the new server.

                                  I have tried following above directions and can not do a git pull as I used the install.sh script originally. I tried doing an install.sh on top again and no luck. I tried a git clone on top as well and no change. I am still loading up to the 3.6.3 version. Gitter hasn't been super helpful so I am crossing my fingers here.

                                  1 Reply Last reply Reply Quote 0
                                  • RomoR
                                    Romo
                                    last edited by Romo

                                    Do steps 1 -4 from the official guide - https://snipe-it.readme.io/docs/upgrading-to-v4. Step 3 is not required if no one else is using the app. Run the commands as the apache user ( sudo -u apache .........)

                                    5- Follow along the first part from @JaredBusch guide to upgrade you install to use git

                                    git clone https://github.com/snipe/snipe-it temp
                                    rm -rf /var/www/html/snipeit/.git*
                                    mv temp/.git* /var/www/html/snipeit/
                                    rm -rf temp/
                                    cd /var/www/html/snipeit/
                                    git reset --hard origin/master
                                    git pull --force
                                    chown -R apache:apache /var/www/html/snipeit/
                                    

                                    6- Run the following as apache user as @JaredBusch guide recommends.

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

                                    7- Add APP_LOCALE=en to your .env file.

                                    8- Double-check that your storage directory and all sub-directories are writable by apache user

                                    9- Apply db migrations as the apache user

                                    sudo -u apache php artisan migrate
                                    

                                    10- Open your .env file again and change your current APP_KEY to LEGACY_APP_KEY and add a new APP_KEY= to the file. So assuming both fields are the last ones of the file, your .env file should look like this with the changes:

                                    ....
                                    ....
                                    LEGACY_APP_KEY=thisisyourpreviouskey
                                    APP_KEY=
                                    

                                    Save your .env file with the changes and run

                                    sudo -u apache php artisan key:generate
                                    sudo -u apache php artisan config:clear
                                    sudo -u apache php artisan snipeit:legacy-recrypt
                                    

                                    If you get a "Whoops" error when you try to login or refresh your Snipe-IT page, you probably forgot to clear your browser cookies. That error happens because we use a more encryption cipher to encrypt your data (including sessions), and clearing your browser should fix that.

                                    11 - If you put the site on maintenance bring it up (sudo -u apache php artisan up)and go to your snipeit url.

                                    RobbleheadR 1 Reply Last reply Reply Quote 2
                                    • larsen161L
                                      larsen161 @Alex Sage
                                      last edited by

                                      @aaronstuder does anything replace this step in v4 or it's just no longer needed?

                                      1 Reply Last reply Reply Quote 0
                                      • larsen161L
                                        larsen161
                                        last edited by

                                        when heading to Step 3, Create Admin User, the server defaults to an http connection. Is there anyway to configure snipe with https before getting to the setup page for the first user?

                                        DustinB3403D black3dynamiteB 2 Replies Last reply Reply Quote 0
                                        • DustinB3403D
                                          DustinB3403 @larsen161
                                          last edited by

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

                                          when heading to Step 3, Create Admin User, the server defaults to an http connection. Is there anyway to configure snipe with https before getting to the setup page for the first user?

                                          I think you can modify the .env file to use https://your-ip (or installation name).

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

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

                                            when heading to Step 3, Create Admin User, the server defaults to an http connection. Is there anyway to configure snipe with https before getting to the setup page for the first user?

                                            In your .env config file, you would change APP_URL=http://snipeit.domain.com to APP_URL=https://snipeit.domain.com

                                            https://snipe-it.readme.io/docs/configuration

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 12 / 15
                                            • First post
                                              Last post