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.
    • RomoR
      Romo @rejivincentc
      last edited by

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

      @scottalanmiller Script used - yum -y install wget firewalld; setenforce 0 && yum -y install epel-release; 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 && cd snipeit; sed -i "s/'timezone' => '',/'timezone' => 'UTC',/" app/config/app.php; php artisan app:install; firewall-cmd --zone=public --add-port=80/tcp --permanent; firewall-cmd --reloadrpm

      OS -Centos 7
      snipe-it-3.4

      Just use the following and it will take you to a working install of Snipe-IT

      wget https://raw.githubusercontent.com/snipe/snipe-it/master/install.sh
      chmod 744 install.sh
      ./install.sh
      
      JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 2
      • JaredBuschJ
        JaredBusch @Romo
        last edited by

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

        Just use the following and it will take you to a working install of Snipe-IT

        Not when this was originally wrote.

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

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

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

          @scottalanmiller Script used - yum -y install wget firewalld; setenforce 0 && yum -y install epel-release; 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 && cd snipeit; sed -i "s/'timezone' => '',/'timezone' => 'UTC',/" app/config/app.php; php artisan app:install; firewall-cmd --zone=public --add-port=80/tcp --permanent; firewall-cmd --reloadrpm

          OS -Centos 7
          snipe-it-3.4

          Just use the following and it will take you to a working install of Snipe-IT

          wget https://raw.githubusercontent.com/snipe/snipe-it/master/install.sh
          chmod 744 install.sh
          ./install.sh
          

          Big changes from how it was before. Glad to see that they've made so much progress.

          rejivincentcR 1 Reply Last reply Reply Quote 1
          • T
            tiagom
            last edited by

            The install script works great. The stuff the tripped me up I submitted a PR to correct.

            Im still transitioning over, i currently have about 30% of my assets in there.

            1 Reply Last reply Reply Quote 0
            • rejivincentcR
              rejivincentc @scottalanmiller
              last edited by

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

              se the following and it will take you to a working install of S

              Thanks 🙂

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

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

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

                se the following and it will take you to a working install of S

                Thanks 🙂

                Glad that it is working!

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

                  so thankful I ran across this article, much more helpful then the snipe-it documentation. I am trying to do the CentOS 7 install method and have tried the single line Scott showed and the wget line that was confirmed working. Everything installs fine but when I enter the IP address/hostname nothing loads, I then open up the firewall to port 80 and the IP address will redirect to the hostname/setup but I receive a "This site can't be reached" I have literally spent 4 hours trying different things with no luck, the server DNS address could not be found is what I am seeing now.
                  Please help!!! lol

                  rejivincentcR 1 Reply Last reply Reply Quote 2
                  • rejivincentcR
                    rejivincentc @Robblehead
                    last edited by

                    @Robblehead Hi,
                    Please try this one...

                    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

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

                      Did @rejivincentc update work for you?

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

                        @scottalanmiller I will test this afternoon and let you guys know, appreciate the help

                        1 Reply Last reply Reply Quote 0
                        • rejivincentcR
                          rejivincentc @scottalanmiller
                          last edited by

                          @scottalanmiller Yes, its working

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

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

                            @scottalanmiller Yes, its working

                            Awesome

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

                              @rejivincentc unfortunately I am still not working with a clean install and running those lines mentioned.
                              0_1491427502282_Screen Shot 2017-04-05 at 5.24.27 PM.png

                              Any ideas?

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

                                The above script fails to opent he firewall.

                                I just did a clean install and got the same result.

                                [root@snipeit html]# firewall-cmd --list-ports
                                
                                [root@snipeit html]# firewall-cmd --zone=public --add-port=http/tcp --permanent
                                success
                                [root@snipeit html]# firewall-cmd --reload
                                success
                                

                                now it works.

                                1 Reply Last reply Reply Quote 1
                                • 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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 14
                                            • 15
                                            • 6 / 15
                                            • First post
                                              Last post