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

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

      @JaredBusch I find it interesting that my installer did in fact install those two repositories, but still fails. What might I need to do to get this to work?

      Just spun up a VM. let me try the script.

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

        0_1499719438059_9ae17ff0-6f7c-44ed-854d-1efdcf895a96-image.png

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

          Worked perfectly. So you did something different..
          0_1499719638893_2f3abe1f-cd58-4057-b8f2-5f1be5172377-image.png

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

            0_1499719745834_0d563997-b45e-40e2-863c-993c5e53a4f6-image.png

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

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

              @JaredBusch I find it interesting that my installer did in fact install those two repositories, but still fails. What might I need to do to get this to work?

              delete your VM and start over.

              Follow the instructions in post 119. That is what I just did in the last couple posts.

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

              I used CentOS-7-x86_64-Minimal-1611.iso as the base.

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

                @JaredBusch on a side topic, have you tried updating with the installation script that they have for the installer?

                I haven't had a chance to dig back into it, but I wasn't able to figure out how others were staying current.

                JaredBuschJ black3dynamiteB 2 Replies Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch @DustinB3403
                  last edited by

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

                  @JaredBusch on a side topic, have you tried updating with the installation script that they have for the installer?

                  I haven't had a chance to dig back into it, but I wasn't able to figure out how others were staying current.

                  Is that the official method for updating?

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

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

                    @JaredBusch on a side topic, have you tried updating with the installation script that they have for the installer?

                    I haven't had a chance to dig back into it, but I wasn't able to figure out how others were staying current.

                    Its easier to stay current using the first option.
                    https://snipe-it.readme.io/docs/downloading

                    git clone https://github.com/snipe/snipe-it your-folder
                    To update moving forward, you'll just run git pull to grab the latest.

                    I started using that when I moved to Fedora.

                    DustinB3403D JaredBuschJ 2 Replies Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403 @JaredBusch
                      last edited by

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

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

                      @JaredBusch on a side topic, have you tried updating with the installation script that they have for the installer?

                      I haven't had a chance to dig back into it, but I wasn't able to figure out how others were staying current.

                      Is that the official method for updating?

                      There isn't one as far as I could find, I was trying to figure out what the process should be.

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

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

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

                        @JaredBusch on a side topic, have you tried updating with the installation script that they have for the installer?

                        I haven't had a chance to dig back into it, but I wasn't able to figure out how others were staying current.

                        Its easier to stay current using the first option.
                        https://snipe-it.readme.io/docs/downloading

                        git clone https://github.com/snipe/snipe-it your-folder
                        To update moving forward, you'll just run git pull to grab the latest.

                        I started using that when I moved to Fedora.

                        I agree, but the installation script does a lot, it would be weird to have to go outside of that to perform updates. git was why they built the installation script (it was to difficult for people to grasps)

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

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

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

                          @JaredBusch on a side topic, have you tried updating with the installation script that they have for the installer?

                          I haven't had a chance to dig back into it, but I wasn't able to figure out how others were staying current.

                          Its easier to stay current using the first option.
                          https://snipe-it.readme.io/docs/downloading

                          git clone https://github.com/snipe/snipe-it your-folder
                          To update moving forward, you'll just run git pull to grab the latest.

                          I started using that when I moved to Fedora.

                          This is a horrible install method because it does nothing to install the pieces needed.

                          That is the entire point of the shell script. you get everything as needed.

                          So what they should do is have the shell script pull the files with git instead of downloading and extracting the package.

                          1 Reply Last reply Reply Quote 1
                          • DustinB3403D
                            DustinB3403
                            last edited by

                            If the process is just a git pull that'd be one thing, but nothing in the documentation (as far as I could find) says that.

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

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

                              If the process is just a git pull that'd be one thing, but nothing in the documentation (as far as I could find) says that.

                              no. that is the process to update the code. only if you had originally checked out the code via git.

                              The script does not do that. It downloads the tar.gz file and extracts the code.

                              		echo -e "\n##  Downloading Snipe-IT from github and put it in the web directory.";
                              
                              		log "wget -P $tmp/ https://github.com/snipe/snipe-it/archive/$file"
                              		log "unzip -qo $tmp/$file -d $tmp/"
                              		log "cp -R $tmp/$fileName $webdir/$name"
                              

                              I have no idea why when the script pulls from git on debian.

                              		echo -e "\n* Cloning Snipeit, extracting to $webdir/$name..."
                              		log "git clone https://github.com/snipe/snipe-it $webdir/$name" & pid=$!
                              

                              I mean FFS, they are already installed a ton of dependencies on CentOS 7 so just install git as well, FFS.

                              Yes a double FFS was needed.

                              DustinB3403D JaredBuschJ 2 Replies Last reply Reply Quote 1
                              • DustinB3403D
                                DustinB3403 @JaredBusch
                                last edited by

                                @JaredBusch I'm on centos as well for this install.

                                As for this part

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

                                no. that is the process to update the code. only if you had originally checked out the code via git.

                                Yes, I understand.

                                Which is why I'm a bit confused on the update process.

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

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

                                  @JaredBusch I'm on centos as well for this install.

                                  As for this part

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

                                  no. that is the process to update the code. only if you had originally checked out the code via git.

                                  Yes, I understand.

                                  Which is why I'm a bit confused on the update process.

                                  You download the archive and extract it over the top of the current files.

                                  Then you run the update commands, I assume as the apache user (not noted in the instructions).

                                  php composer.phar install --no-dev --prefer-source
                                  php composer.phar dump-autoload
                                  php artisan migrate
                                  php artisan config:clear
                                  php artisan config:cache
                                  
                                  1 Reply Last reply Reply Quote 1
                                  • JaredBuschJ
                                    JaredBusch
                                    last edited by JaredBusch

                                    They updated the installer to handle SELinux. I shoudl try again without setenforce 0 sometime.

                                              	#Check if SELinux is enforcing
                                    	       	if [ "$(getenforce)" == "Enforcing" ]; then
                                    	 	       #Add SELinux and firewall exception/rules.
                                    		       #Required for ldap integration
                                    	       	       setsebool -P httpd_can_connect_ldap on
                                    	 	       #Sets SELinux context type so that scripts running in the web server process are allowed read/write access
                                    	 	       chcon -R -h -t httpd_sys_script_rw_t $webdir/$name/
                                     	       	fi
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • JaredBuschJ
                                      JaredBusch @JaredBusch
                                      last edited by

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

                                      I mean FFS, they are already installed a ton of dependencies on CentOS 7 so just install git as well, FFS.

                                      Even more than a double FFS is needed because they ARE INSTALLING GIT

                                      0_1499723000183_1c68eaa1-5f5c-4d16-ac60-472a6e7046c3-image.png

                                      The level of WTF FFS is so high right now......

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

                                        Pull request submitted.. just holy WTF....
                                        https://github.com/snipe/snipe-it/pull/3734

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

                                          In theory I could have modified the CentOS 6 section also, but I have no easy way to test that so I skipped it.

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

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

                                            Pull request submitted.. just holy WTF....
                                            https://github.com/snipe/snipe-it/pull/3734

                                            And merged. so there we go.
                                            0_1499837757306_76128643-d0bb-488e-b499-0abb88050463-image.png

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