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 @hartmm90
      last edited by

      @hartmm90 said:

      @JaredBusch This seemed to work for me. I'm extremely new to the linux world. How would one go about finding out why I need to do this every time I restart the server?

      The high level reason is because whatever your setup is, it is not set up properly for SELinux. And the command being used does not change the SELinux setting but disables it temporarily. When your system reboots it turns SELinux back on since the configuration for it was not changed - it is still set to run when the system starts.

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

        @scottalanmiller said:

        @hartmm90 said:

        @JaredBusch This seemed to work for me. I'm extremely new to the linux world. How would one go about finding out why I need to do this every time I restart the server?

        The high level reason is because whatever your setup is, it is not set up properly for SELinux. And the command being used does not change the SELinux setting but disables it temporarily. When your system reboots it turns SELinux back on since the configuration for it was not changed - it is still set to run when the system starts.

        Right, using setenforce 0 is a troubleshooting step only. by using it to disable SELinux, and everything then worked, you know that you then just need to look at what the application is doing that SELinux does not like. Starting with what @johnhooks said above. Then use setenforce 1 to turn it back on and see if it still works right.

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

          If installing a CentOS7 on a local VM, what base enviroment/addons are needed to have the one line installer work?

          scottalanmillerS hobbit666H 3 Replies Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @subi15wrx
            last edited by

            @subi15wrx said:

            If installing a CentOS7 on a local VM, what base enviroment/addons are needed to have the one line installer work?

            Good question. This was done before I had our Scale HC3 cluster with capacity to do all of our testing on vanilla OSes. It was only tested on DO, as far as I know. I'll test this on a CentOS 7 Minimal and let you know....

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

              @subi15wrx and welcome to the community, by the way!!

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

                @subi15wrx said:

                If installing a CentOS7 on a local VM, what base enviroment/addons are needed to have the one line installer work?

                All I did on a min install was add net-tools and wget.
                Then followed the step by step commands as the one line command didn't work for me. In fact I've just created a new VLAN for "Misc" servers so will be re-installing Snipe very soon (today if I get time - FogServer First)

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

                  Just ran through the one line installer and it worked.

                  Indeed wget is missing. So before starting you need to...

                  yum -y install wget

                  And on some CentOS 7 minimal installs there is no firewall. If that is the case for you, you should be good. If you have a firewall you will need to open port 80 like so...

                  firewall-cmd --zone=public --add-port=80/tcp --permanent; firewall-cmd --reload

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

                    In theory, this single line should do the trick:

                    yum -y install wget; 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 --reload
                    

                    Assuming that you run as root.

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

                      I updated the command up top to add in the installation of a firewall, wget and to configure the firewall.

                      hobbit666H subi15wrxS 2 Replies Last reply Reply Quote 4
                      • hobbit666H
                        hobbit666 @scottalanmiller
                        last edited by

                        @scottalanmiller said:

                        I updated the command up top to add in the installation of a firewall, wget and to configure the firewall.

                        Will give that a go once I got Fog installed.

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

                          @scottalanmiller Thanks Scott got everything up and running, except I get a nasty red bar across the top of my screen "WARNING: This application is running in production mode with debugging enabled. This can expose sensitive data if your application is accessible to the outside world. Disable debug mode by setting the debug value app/config/production/app.php to false."

                          Could you point me in the right direct.

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

                            @subi15wrx said:

                            @scottalanmiller Thanks Scott got everything up and running, except I get a nasty red bar across the top of my screen "WARNING: This application is running in production mode with debugging enabled. This can expose sensitive data if your application is accessible to the outside world. Disable debug mode by setting the debug value app/config/production/app.php to false."

                            Could you point me in the right direct.

                             nano /var/www/html/app/config/production/app.php
                            

                            Change the Disable debug mode line to end with false instead of true.
                            Save and close. Restart the webserver

                            systemctl restart httpd
                            

                            Shouldn't be all that difficult, the error message spells it out quite clearly.

                            JaredBuschJ subi15wrxS 2 Replies Last reply Reply Quote 0
                            • JaredBuschJ
                              JaredBusch @travisdh1
                              last edited by

                              @travisdh1 said:

                              @subi15wrx said:

                              @scottalanmiller Thanks Scott got everything up and running, except I get a nasty red bar across the top of my screen "WARNING: This application is running in production mode with debugging enabled. This can expose sensitive data if your application is accessible to the outside world. Disable debug mode by setting the debug value app/config/production/app.php to false."

                              Could you point me in the right direct.

                               nano /var/www/html/app/config/production/app.php
                              

                              Change the Disable debug mode line to end with false instead of true.
                              Save and close. Restart the webserver

                              systemctl restart httpd
                              

                              Shouldn't be all that difficult, the error message spells it out quite clearly.

                              nano is not installed in a minimal setup by default. he will have to either use vi or install nano first yum -y install nano

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

                                @JaredBusch said:

                                @travisdh1 said:

                                @subi15wrx said:

                                @scottalanmiller Thanks Scott got everything up and running, except I get a nasty red bar across the top of my screen "WARNING: This application is running in production mode with debugging enabled. This can expose sensitive data if your application is accessible to the outside world. Disable debug mode by setting the debug value app/config/production/app.php to false."

                                Could you point me in the right direct.

                                 nano /var/www/html/app/config/production/app.php
                                

                                Change the Disable debug mode line to end with false instead of true.
                                Save and close. Restart the webserver

                                systemctl restart httpd
                                

                                Shouldn't be all that difficult, the error message spells it out quite clearly.

                                nano is not installed in a minimal setup by default. he will have to either use vi or install nano first yum -y install nano

                                I'm forever forgetting about that, it's installed in the base image I use. I also have an unnatural loathing of vi and vim. Neither has really made me happy to be using it. If you ask me, keep your sanity, use nano 😉

                                stacksofplatesS 1 Reply Last reply Reply Quote 0
                                • stacksofplatesS
                                  stacksofplates @travisdh1
                                  last edited by stacksofplates

                                  @travisdh1 said:

                                  @JaredBusch said:

                                  @travisdh1 said:

                                  @subi15wrx said:

                                  @scottalanmiller Thanks Scott got everything up and running, except I get a nasty red bar across the top of my screen "WARNING: This application is running in production mode with debugging enabled. This can expose sensitive data if your application is accessible to the outside world. Disable debug mode by setting the debug value app/config/production/app.php to false."

                                  Could you point me in the right direct.

                                   nano /var/www/html/app/config/production/app.php
                                  

                                  Change the Disable debug mode line to end with false instead of true.
                                  Save and close. Restart the webserver

                                  systemctl restart httpd
                                  

                                  Shouldn't be all that difficult, the error message spells it out quite clearly.

                                  nano is not installed in a minimal setup by default. he will have to either use vi or install nano first yum -y install nano

                                  I'm forever forgetting about that, it's installed in the base image I use. I also have an unnatural loathing of vi and vim. Neither has really made me happy to be using it. If you ask me, keep your sanity, use nano 😉

                                  Ha I've forced myself to use Vi and Vim and now I find myself typing :wq when I want to exit things like gedit and Atom.

                                  Yanking and pasting are awesome features for Vim though. Being able to type ya( to copy everything between parenthesis is really nice.

                                  JaredBuschJ travisdh1T 2 Replies Last reply Reply Quote 1
                                  • JaredBuschJ
                                    JaredBusch @stacksofplates
                                    last edited by

                                    @johnhooks said:

                                    @travisdh1 said:

                                    @JaredBusch said:

                                    @travisdh1 said:

                                    @subi15wrx said:

                                    @scottalanmiller Thanks Scott got everything up and running, except I get a nasty red bar across the top of my screen "WARNING: This application is running in production mode with debugging enabled. This can expose sensitive data if your application is accessible to the outside world. Disable debug mode by setting the debug value app/config/production/app.php to false."

                                    Could you point me in the right direct.

                                     nano /var/www/html/app/config/production/app.php
                                    

                                    Change the Disable debug mode line to end with false instead of true.
                                    Save and close. Restart the webserver

                                    systemctl restart httpd
                                    

                                    Shouldn't be all that difficult, the error message spells it out quite clearly.

                                    nano is not installed in a minimal setup by default. he will have to either use vi or install nano first yum -y install nano

                                    I'm forever forgetting about that, it's installed in the base image I use. I also have an unnatural loathing of vi and vim. Neither has really made me happy to be using it. If you ask me, keep your sanity, use nano 😉

                                    Ha I've forced myself to use Vi and Vim and now I find myself typing :wq when I want to exit things like gedit and Atom.

                                    I can use vi, I prefer not to. I always install nano along with wget and epel-release

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

                                      @johnhooks said:

                                      @travisdh1 said:

                                      @JaredBusch said:

                                      @travisdh1 said:

                                      @subi15wrx said:

                                      @scottalanmiller Thanks Scott got everything up and running, except I get a nasty red bar across the top of my screen "WARNING: This application is running in production mode with debugging enabled. This can expose sensitive data if your application is accessible to the outside world. Disable debug mode by setting the debug value app/config/production/app.php to false."

                                      Could you point me in the right direct.

                                       nano /var/www/html/app/config/production/app.php
                                      

                                      Change the Disable debug mode line to end with false instead of true.
                                      Save and close. Restart the webserver

                                      systemctl restart httpd
                                      

                                      Shouldn't be all that difficult, the error message spells it out quite clearly.

                                      nano is not installed in a minimal setup by default. he will have to either use vi or install nano first yum -y install nano

                                      I'm forever forgetting about that, it's installed in the base image I use. I also have an unnatural loathing of vi and vim. Neither has really made me happy to be using it. If you ask me, keep your sanity, use nano 😉

                                      Ha I've forced myself to use Vi and Vim and now I find myself typing :wq when I want to exit things like gedit and Atom.

                                      Yanking and pasting are awesome features for Vim though. Being able to type ya( to copy everything between parenthesis is really nice.

                                      Yep, nothing wrong with them, and very powerful tools for working with text. Command structure just never really clicked in my brain tho, whereas nano just meshed so much easier for me.

                                      stacksofplatesS 1 Reply Last reply Reply Quote 1
                                      • stacksofplatesS
                                        stacksofplates @travisdh1
                                        last edited by

                                        @travisdh1 said:

                                        @johnhooks said:

                                        @travisdh1 said:

                                        @JaredBusch said:

                                        @travisdh1 said:

                                        @subi15wrx said:

                                        @scottalanmiller Thanks Scott got everything up and running, except I get a nasty red bar across the top of my screen "WARNING: This application is running in production mode with debugging enabled. This can expose sensitive data if your application is accessible to the outside world. Disable debug mode by setting the debug value app/config/production/app.php to false."

                                        Could you point me in the right direct.

                                         nano /var/www/html/app/config/production/app.php
                                        

                                        Change the Disable debug mode line to end with false instead of true.
                                        Save and close. Restart the webserver

                                        systemctl restart httpd
                                        

                                        Shouldn't be all that difficult, the error message spells it out quite clearly.

                                        nano is not installed in a minimal setup by default. he will have to either use vi or install nano first yum -y install nano

                                        I'm forever forgetting about that, it's installed in the base image I use. I also have an unnatural loathing of vi and vim. Neither has really made me happy to be using it. If you ask me, keep your sanity, use nano 😉

                                        Ha I've forced myself to use Vi and Vim and now I find myself typing :wq when I want to exit things like gedit and Atom.

                                        Yanking and pasting are awesome features for Vim though. Being able to type ya( to copy everything between parenthesis is really nice.

                                        Yep, nothing wrong with them, and very powerful tools for working with text. Command structure just never really clicked in my brain tho, whereas nano just meshed so much easier for me.

                                        I definitely don't use hardly 1% of the things it can do. I just found things like typing / to search easier than ctrl+w(or whatever it is in nano)

                                        1 Reply Last reply Reply Quote 1
                                        • stacksofplatesS
                                          stacksofplates
                                          last edited by

                                          I've definitely had times where I got stuck in some weird mode though and had no idea how to exit other than doing :q! and losing my work.

                                          coliverC 1 Reply Last reply Reply Quote 1
                                          • coliverC
                                            coliver @stacksofplates
                                            last edited by coliver

                                            @johnhooks said:

                                            I've definitely had times where I got stuck in some weird mode though and had no idea how to exit other than doing :q! and losing my work.

                                            Yep... this happens with me on Debian based systems often. On CentOS I can fly through vi but on Debian systems some of the default options change and that makes working in it so much more difficult.

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