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.
    • scottalanmillerS
      scottalanmiller @travisdh1
      last edited by

      @travisdh1 said:

      @subi15wrx said:

      @travisdh1 Thanks Travis, please forgive me, my issue was I was having a hard time finding the exact path of /var/www/html/snipeit/app/config/production/app.php I am still quite a bit of a noob.

      Yep, that'll do it all right. That path is one of the many things a lot of Linux Admins would take for granted.

      One of the many "things that people might assume" items I am attempting to address in that Linux Admin series.

      1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller
        last edited by

        I'd have another article out already if I wasn't documenting an OpenFire installation for people today.

        JaredBuschJ 1 Reply Last reply Reply Quote 2
        • JaredBuschJ
          JaredBusch @scottalanmiller
          last edited by

          @scottalanmiller said:

          I'd have another article out already if I wasn't documenting an OpenFire installation for people today.

          Still waiting on your ELK article 😮

          1 Reply Last reply Reply Quote 1
          • scottalanmillerS
            scottalanmiller
            last edited by

            I feel like suddenly there are a lot of installation articles needed 🙂

            travisdh1T 1 Reply Last reply Reply Quote 2
            • travisdh1T
              travisdh1 @scottalanmiller
              last edited by

              @scottalanmiller said:

              I feel like suddenly there are a lot of installation articles needed 🙂

              Always were, probably more than a single person could ever cover.

              1 Reply Last reply Reply Quote 2
              • subi15wrxS
                subi15wrx @scottalanmiller
                last edited by subi15wrx

                @scottalanmiller said:

                @subi15wrx said:

                @travisdh1 Thanks Travis, please forgive me, my issue was I was having a hard time finding the exact path of /var/www/html/snipeit/app/config/production/app.php I am still quite a bit of a noob.

                Did you get it all working now without the error message?

                Hey Scott,

                I just noticed today after I restarted the system I am now getting error "Error in exception handler: The stream or file "/var/www/html/snipeit/app/storage/logs/log-apache2handler-2016-02-11.txt" could not be opened: failed to open stream: Permission denied in /var/www/html/snipeit/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87" when navigating to the home page.

                shot in the dark might be permissions related?

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @subi15wrx
                  last edited by

                  @subi15wrx said:

                  @scottalanmiller said:

                  @subi15wrx said:

                  @travisdh1 Thanks Travis, please forgive me, my issue was I was having a hard time finding the exact path of /var/www/html/snipeit/app/config/production/app.php I am still quite a bit of a noob.

                  Did you get it all working now without the error message?

                  Hey Scott,

                  I just noticed today after I restarted the system I am now getting error "Error in exception handler: The stream or file "/var/www/html/snipeit/app/storage/logs/log-apache2handler-2016-02-11.txt" could not be opened: failed to open stream: Permission denied in /var/www/html/snipeit/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87" when navigating to the home page.

                  shot in the dark might be permissions related?

                  Likely. What does this return:

                  ls -lh /var/www/html/snipeit/app/storage/logs/log-apache2handler-2016-02-11.txt
                  
                  subi15wrxS 2 Replies Last reply Reply Quote 0
                  • subi15wrxS
                    subi15wrx @scottalanmiller
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • subi15wrxS
                      subi15wrx @scottalanmiller
                      last edited by

                      @scottalanmiller Looks like the file doesn't exist only thing in that dir is log-apache2handler-2016-02-08.txt

                      1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        What does line 87 in here specify?

                        /var/www/html/snipeit/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php

                        subi15wrxS 1 Reply Last reply Reply Quote 1
                        • subi15wrxS
                          subi15wrx @scottalanmiller
                          last edited by subi15wrx

                          @scottalanmiller After some digging around the internet and trial and error I was able to get it running again with the following commands

                          php artisan cache:clear
                          chmod -R 777 app/storage
                          php artisan dump-autoload

                          Then

                          setenforce 0

                          Upon reboot 'setenforce 0' has to be entered into the console again

                          1 Reply Last reply Reply Quote 1
                          • scottalanmillerS
                            scottalanmiller
                            last edited by

                            Glad that you got it working!

                            1 Reply Last reply Reply Quote 0
                            • wirestyle22W
                              wirestyle22
                              last edited by wirestyle22

                              Sorry to Necro. Just trying a bunch of test servers with CentOS. I get a php error at the end of the single line command install:

                              SQLSTATE[HY000] [1045] Access denied for user 'snipeit'@'localhost' (using password: YES) (View: /var/www/html/snipeit/app/views/backend/layouts/default.blade.php

                              I accessed default.blade.php expecting to find a line that allowed me to change the user, host and password but I didn't see it anywhere. It's possible that I missed it but I figured I'd ask. I did a ^W search for snipeit.

                              1 Reply Last reply Reply Quote 1
                              • AmbarishrhA
                                Ambarishrh
                                last edited by

                                Just tried to setup and i get the same error as @wirestyle22

                                1 Reply Last reply Reply Quote 1
                                • scottalanmillerS
                                  scottalanmiller
                                  last edited by

                                  Sadly the lab is down right now so I am unable to look into this for the moment. There is likely a config file that is not getting updated properly.

                                  1 Reply Last reply Reply Quote 0
                                  • AmbarishrhA
                                    Ambarishrh
                                    last edited by

                                    Just checked the db, and it has no tables on it. How do i create tables for snipeit? I could see that the database name is available

                                    1 Reply Last reply Reply Quote 0
                                    • AmbarishrhA
                                      Ambarishrh
                                      last edited by Ambarishrh

                                      Fixed it. I had to manually create a db user called snipeit with a pass and rerun the setup. Everything got installed fine and tables are all available.

                                      Tried a new server ended up with same issue and only fix was to create the db user

                                      JaredBuschJ 1 Reply Last reply Reply Quote 2
                                      • scottalanmillerS
                                        scottalanmiller
                                        last edited by

                                        Great. Glad to hear that it is working.

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

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

                                          Fixed it. I had to manually create a db user called snipeit with a pass and rerun the setup. Everything got installed fine and tables are all available.

                                          Tried a new server ended up with same issue and only fox was to create the db user

                                          Interesting result. I do not recall having to make a DB user manually. Then again, my system has been running for a year or so now and I likely forgot any issues I had during setup.

                                          1 Reply Last reply Reply Quote 0
                                          • B
                                            brandon.hay
                                            last edited by

                                            I am receiving the error when running the php artisan app:install command. This seems to be my only hold up for getting Snipe-IT running. Any help is greatly appreciated.

                                            0_1470234107277_Capture.JPG

                                            S A 2 Replies Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 14
                                            • 15
                                            • 4 / 15
                                            • First post
                                              Last post