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
      last edited by scottalanmiller

      Doing this on a Digital Ocean CentOS 7.1 Droplet with 1GB of RAM. Always fully update before starting.

      [root@temp-c7-snipeit ~]# cat /etc/redhat-release
      CentOS Linux release 7.1.1503 (Core)
      
      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
      

      0_1448040360288_snipeit1.png

      0_1448040368852_snipeit2.png

      Just accepts the defaults for MariaDB and set the root password. Remember to record this!!

      Now a little more, the site should be up but will have errors because we aren't quite done yet...

       cd snipeit
      vi app/config/app.php
      

      Now modify the timezone line so that it looks like this...

      0_1448040906873_snipe3.png

      Now we just have to do one final step to get everything configured and running. Just run this command to configure your first user:

      php artisan app:install
      

      Follow the prompts. Once completed, you are done. You can navigate to http://ipaddress/ and you should be able to log in and begin using your Snipe-IT system on CentOS 7 with MariaDB.

      Emad RE A Z 3 Replies Last reply Reply Quote 14
      • scottalanmillerS
        scottalanmiller
        last edited by scottalanmiller

        Trying to turn this into a single command install (assuming UTC time zone like I like to use):

        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
        
        JaredBuschJ 1 Reply Last reply Reply Quote 3
        • JaredBuschJ
          JaredBusch @scottalanmiller
          last edited by scottalanmiller

          @scottalanmiller said:

          Trying to turn this into a single command install (assuming UTC time zone like I like to use):

          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 && cd snipeit; sed -i "s/'timezone' => '',/'timezone' => 'UTC',/" app/config/app.php; php artisan app:install
          

          Single line.

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

            @JaredBusch said:

            @scottalanmiller said:

            Trying to turn this into a single command install (assuming UTC time zone like I like to use):

            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
            

            Single line.

            Well you can save it as a file and then it is a single command. Or wrap in it echo $(). Or if you host it and run it via curl, for example.

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

              Confirmed working. You can now take a vanilla new install of CentOS 7 and with a single line it will take you to working server. Just follow the on screen prompts and when it is done you can log right into your Snipe-IT system remotely. http://myserver/

              Takes about two minutes to build your box, nothing needed beyond that line.

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

                Just tried but I still get no page.
                😢

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

                  Also might be worth mentioning this site for the time zones
                  http://php.net/manual/en/timezones.php

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

                    @hobbit666 said:

                    Just tried but I still get no page.
                    😢

                    Screenshots? Was there any errors during your install?

                    What is the output of ...

                    netstat -tulpn
                    
                    1 Reply Last reply Reply Quote 0
                    • hobbit666H
                      hobbit666
                      last edited by

                      Going to try again with a CentOS7 install with GUI so I can try locally incase its a Firewall/Network issue onto the VM.
                      Will post screen shots if I still have issues.

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

                        @hobbit666 said:

                        Going to try again with a CentOS7 install with GUI so I can try locally incase its a Firewall/Network issue onto the VM.
                        Will post screen shots if I still have issues.

                        No need for a GUI to test if the page is up 🙂 You can look at the local web server via curl or just use netstat to see if it is running.

                        Even if Snipe-IT fails, HTTPS should be up and there should he something to see.

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

                          What's the latest one line command to get this working on a fresh install (minimum iso)?

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

                            @scottalanmiller said:

                            Trying to turn this into a single command install (assuming UTC time zone like I like to use):

                            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
                            

                            Seems if I use this the PHP stuff doesn't install. but if I go through it line by line and edit the files all seems to work. With the added steps of disabling SELINUX and adding
                            firewall-cmd --zone=public --add-port=http/tcp --permanent
                            firewall-cmd --reload

                            But I have a working SnipIT to play with.

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

                              Also one issue is it's installed it to http://name
                              but when you click Dashboard it tries to go to https://name

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

                                @hobbit666 said:

                                Also one issue is it's installed it to http://name
                                but when you click Dashboard it tries to go to https://name

                                That's odd. Did not see that happen on our install. We used it a bit for testing.

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

                                  @hobbit666 said:

                                  @scottalanmiller said:

                                  Trying to turn this into a single command install (assuming UTC time zone like I like to use):

                                  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
                                  

                                  Seems if I use this the PHP stuff doesn't install. but if I go through it line by line and edit the files all seems to work. With the added steps of disabling SELINUX and adding
                                  firewall-cmd --zone=public --add-port=http/tcp --permanent
                                  firewall-cmd --reload

                                  But I have a working SnipIT to play with.

                                  I had the PHP portion repeatedly fail due to a problem with their installer each time that I let their installer do the EPEL. That's why I put the EPEL back in the list. Each time I did it with the EPEL done manually it worked.

                                  I think that because they are doing a custom script rather than a YUM command (it even complains that they are not using YUM) they have some fragility that makes you need to run it over and over again or watch for install errors. This is why people should write RPM packages rather than trying to get all weird and fancy.

                                  1 Reply Last reply Reply Quote 1
                                  • DashrenderD
                                    Dashrender
                                    last edited by

                                    I stood up a CentOS 7 and ran Scott's single line install.

                                    It asked me if I wanted to have the system make it's own password, then it asked me to setup a password for the maria DB, then do I want fake data, and allow anonymous user access, and a test db.

                                    Then it asked me again to create a user and to put in fake data and a test db and remove anonymous, etc and ended with this error.

                                    0_1448687453749_error.JPG

                                    1 Reply Last reply Reply Quote 0
                                    • DashrenderD
                                      Dashrender
                                      last edited by

                                      Everything seems to be working pretty well. I'll get some of our data into it this week.

                                      Scott's single line install was pretty nice. I looked over the docker setup, huh.. for someone like me who can barely spell Linux let alone admin it - Docker looks like a pain to configure.

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

                                        @Dashrender said:

                                        Everything seems to be working pretty well. I'll get some of our data into it this week.

                                        Scott's single line install was pretty nice. I looked over the docker setup, huh.. for someone like me who can barely spell Linux let alone admin it - Docker looks like a pain to configure.

                                        Docker is still non-trivial at this point. It's for people moving to DevOps models.

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

                                          Can someone provide screen shots of stuff being tracked and such? I do need to get our company assets all tracked someplace. I am always up for something more than a spreadsheet.

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

                                            I did look at the online demo they have. It looks nice, but it works like crap on my iPad.

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