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.
    • JaredBuschJ
      JaredBusch
      last edited by

      So the full process to get a new clean version running is this.

      Install CentOS 7 minimal r1611 (current release as of this writing)

      Then run these commands.

      yum -y update
      yum -y install wget
      firewall-cmd --zone=public --add-port=http/tcp --permanent
      firewall-cmd --reload
      setenforce 0
      mkdir -p /var/www/html; cd /var/www/html/
      wget https://raw.githubusercontent.com/snipe/snipe-it/master/install.sh
      chmod 744 install.sh
      ./install.sh
      

      The install.sh script will install and enable the EPEL, MariaDB, and IUS repositories. Not sure why the MariaDB repo is needed as that is part of core now. Did not look at the script, just it said it was doing it on the status screen.

      Then it will install all the pieces.

      It also runs the secure mysql thing.

      Really the only thing it missed was the firewall.

      Obviously the whole disabling of SELinux is bad. I would never recommend running a server like that if given any choice at all.

      Unlike FreePBX, there are not that many pieces to this program, so it should not be hard to properly setup things to work with SELinux.

      RobbleheadR 2 Replies Last reply Reply Quote 1
      • RobbleheadR
        Robblehead @JaredBusch
        last edited by

        @JaredBusch Running a fresh install of CentOS 7 now, thanks for your help

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

          If this was going to only be lightly used I was wondering about hosting our Ubiquiti Unifi controller as well. Is this ok or a bad idea based on best practices?

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

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

            If this was going to only be lightly used I was wondering about hosting our Ubiquiti Unifi controller as well. Is this ok or a bad idea based on best practices?

            This is bad only because the UniFi controller is designed and supported on Ubuntu not CentOS. If you want to do the manual process of install the UniFi controller on CentOS, you can.

            Now many people, myself included also recommend one VM per application. But there is not hard and fast rule on this.

            1 Reply Last reply Reply Quote 0
            • RobbleheadR
              Robblehead @JaredBusch
              last edited by

              @JaredBusch !
              Immediately upon completion when I enter the IP this is the screen I see:

              0_1491434095246_Screen Shot 2017-04-05 at 7.13.25 PM.png

              JaredBuschJ A 2 Replies Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch @Robblehead
                last edited by JaredBusch

                @Robblehead

                Why did you use an IP address?

                The installation asks for a DNS name. Did you not fill it in correctly?

                I did not try to use it by IP address. No idea if it even works.

                I already destroyed the Vultr instance I spun up to test the above.

                RobbleheadR 2 Replies Last reply Reply Quote 0
                • RobbleheadR
                  Robblehead @JaredBusch
                  last edited by

                  @JaredBusch Now I am about to show how ignorant I really am... I assumed the FQDN was whatever I wanted. I now am thinking I should just leave it as localhost?

                  Do I need to do a fresh reinstall to get back?

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

                    @JaredBusch I am only wanting it accessible in the internal network and not on a domain.

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

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

                      @JaredBusch Now I am about to show how ignorant I really am... I assumed the FQDN was whatever I wanted. I now am thinking I should just leave it as localhost?

                      Do I need to do a fresh reinstall to get back?

                      It should be something you can reach when you enter it in your browser.
                      I can spin this up again.

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

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

                        @JaredBusch I am only wanting it accessible in the internal network and not on a domain.

                        That is fine, you have an internal DNS server of some type.

                        Make up whatever FQDN you want and then add a DNS entry for it.

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

                          You could edit your hosts file on your desktop temporarily to have an entry for whatever FQDN you used and see if things work for you then.

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

                            probably not going to finish before my daughter gets out of her piano lesson.
                            0_1491434815482_upload-c03dd491-7ee0-43b0-93d4-e19a303aa2fe

                            but I will copy/paste my above post once I can and try again by both FQDN and IP.

                            1 Reply Last reply Reply Quote 0
                            • RobbleheadR
                              Robblehead @JaredBusch
                              last edited by

                              @JaredBusch I am using a basic Asus router nothing major.

                              If I am just wanting it locally accessible what would the best practice be? would leaving "localhost" make it work?

                              I appreciate your help, I've got about 12 hours in this thing now not giving up.

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

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

                                @JaredBusch I am using a basic Asus router nothing major.

                                If I am just wanting it locally accessible what would the best practice be? would leaving "localhost" make it work?

                                I appreciate your help, I've got about 12 hours in this thing now not giving up.

                                No, you want a FQDN. If you cannot use a FQDN, then you at least want something your PC can find with a ping command.

                                RobbleheadR 1 Reply Last reply Reply Quote 0
                                • RobbleheadR
                                  Robblehead @JaredBusch
                                  last edited by

                                  @JaredBusch I am able to ping it with the IP, but not the FQDN I set

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

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

                                    @JaredBusch I am able to ping it with the IP, but not the FQDN I set

                                    localhost is not a FQDN, if you made up a FQDN like "snipe-it.robblehead.com" then you need to add a DNS entry into either your DNS Server or your HOST file on your computer that resolves an IP address to that FQDN.

                                    Otherwise, at the setup, just set the name to something like "snipe-robblehead" and get the IP address of the system by entering ip addr when the installation is complete. Then once complete insure you have a DHCP reservation in place for this system.

                                    It'll list the ip address, and you'll resolve to that. If you ever do have a "proper" DNS server, just add it as a DNS record at which point you can then resolve to the name you set above (in step 1).

                                    RobbleheadR 2 Replies Last reply Reply Quote 1
                                    • RobbleheadR
                                      Robblehead @DustinB3403
                                      last edited by

                                      @DustinB3403 That's what I thought, but I believe that's what I did. I created a name "cwi-assets" .

                                      The IP of server is 10.0.0.168

                                      When I browse to the IP 10.0.0.168 the address bar changes to the FQDN I setup as I was hoping and then I have this error:
                                      0_1491435953090_Screen Shot 2017-04-05 at 7.45.41 PM.png

                                      JaredBuschJ 1 Reply Last reply Reply Quote 0
                                      • RobbleheadR
                                        Robblehead @DustinB3403
                                        last edited by

                                        @DustinB3403 my router is pushing OpenDNS to all devices, would this be part of the issue? My laptop maybe not using same DNS?

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

                                          @Robblehead No your laptop should be using the same DNS unless your not on that network.

                                          Which is possible (just not sure why you wouldn't know that.... no offense).

                                          Did you complete the installation process, I believe @JaredBusch posted a simple "how to" a short while ago in this very topic.

                                          Yeah. right here: https://mangolassi.it/topic/6967/installing-snipe-it-on-centos-7-and-mariadb/119

                                          RobbleheadR 2 Replies Last reply Reply Quote 0
                                          • RobbleheadR
                                            Robblehead @DustinB3403
                                            last edited by

                                            @DustinB3403 no offense taken at all.

                                            I had tried a couple different methods already listed with no luck.

                                            I did the exact process @JaredBusch just left and tested working:
                                            0_1491436254906_Screen Shot 2017-04-05 at 7.50.27 PM.png

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 14
                                            • 15
                                            • 2 / 15
                                            • First post
                                              Last post