ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Snipe-IT PHP 5.6 upgrade to 7.1

    Scheduled Pinned Locked Moved IT Discussion
    snipe-itupgradephpphp 5php 7centos 7
    54 Posts 7 Posters 8.1k Views
    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 @DustinB3403
      last edited by

      @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

      @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

      Instead of upgrading, why not move to a fresh box with working PHP 7.1? Keep the two separate, just copy over the database.

      Because I'd have to reinstall everything. . .

      Um... reinstall what? It only takes a minute. And if you scripted, or followed a script, or used Ansible, Salt, etc. it's just a push of a button away.

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

        @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

        Instead of upgrading, why not move to a fresh box with working PHP 7.1? Keep the two separate, just copy over the database.

        I've been doing it like this for everything but plex at home to get the kinks out before I migrate.

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

          @wirestyle22 said in Snipe-IT PHP 5.6 upgrade to 7.1:

          @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

          Instead of upgrading, why not move to a fresh box with working PHP 7.1? Keep the two separate, just copy over the database.

          I've been doing it like this for everything but plex at home to get the kinks out before I migrate.

          Yeah, a key thing I do for installs is do a test run and then do the final via automation so that I can always recreate at any time.

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

            @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

            @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

            @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

            Instead of upgrading, why not move to a fresh box with working PHP 7.1? Keep the two separate, just copy over the database.

            Because I'd have to reinstall everything. . .

            Um... reinstall what? It only takes a minute. And if you scripted, or followed a script, or used Ansible, Salt, etc. it's just a push of a button away.

            The scripted install uses PHP 5.6 on CentOS 7.

            He would need to move to Fedora to get around that.

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

              @jaredbusch said in Snipe-IT PHP 5.6 upgrade to 7.1:

              @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

              @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

              @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

              Instead of upgrading, why not move to a fresh box with working PHP 7.1? Keep the two separate, just copy over the database.

              Because I'd have to reinstall everything. . .

              Um... reinstall what? It only takes a minute. And if you scripted, or followed a script, or used Ansible, Salt, etc. it's just a push of a button away.

              The scripted install uses PHP 5.6 on CentOS 7.

              He would need to move to Fedora to get around that.

              I just installed Snipe-IT on CentOS 7 the other day via the install.sh script and it's running PHP 7.1.13. The script kept failing on Fedora 27.

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

                @zachary715 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                @jaredbusch said in Snipe-IT PHP 5.6 upgrade to 7.1:

                @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

                @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

                Instead of upgrading, why not move to a fresh box with working PHP 7.1? Keep the two separate, just copy over the database.

                Because I'd have to reinstall everything. . .

                Um... reinstall what? It only takes a minute. And if you scripted, or followed a script, or used Ansible, Salt, etc. it's just a push of a button away.

                The scripted install uses PHP 5.6 on CentOS 7.

                He would need to move to Fedora to get around that.

                I just installed Snipe-IT on CentOS 7 the other day via the install.sh script and it's running PHP 7.1.13. The script kept failing on Fedora 27.

                Damnit, I had it all workign. Did someone update snipe.sh again?

                zachary715Z 1 Reply Last reply Reply Quote 1
                • black3dynamiteB
                  black3dynamite @zachary715
                  last edited by

                  @zachary715 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                  @jaredbusch said in Snipe-IT PHP 5.6 upgrade to 7.1:

                  @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

                  @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                  @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

                  Instead of upgrading, why not move to a fresh box with working PHP 7.1? Keep the two separate, just copy over the database.

                  Because I'd have to reinstall everything. . .

                  Um... reinstall what? It only takes a minute. And if you scripted, or followed a script, or used Ansible, Salt, etc. it's just a push of a button away.

                  The scripted install uses PHP 5.6 on CentOS 7.

                  He would need to move to Fedora to get around that.

                  I just installed Snipe-IT on CentOS 7 the other day via the install.sh script and it's running PHP 7.1.13. The script kept failing on Fedora 27.

                  What happens when using the script on Fedora?

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

                    @jaredbusch said in Snipe-IT PHP 5.6 upgrade to 7.1:

                    @zachary715 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                    @jaredbusch said in Snipe-IT PHP 5.6 upgrade to 7.1:

                    @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

                    @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                    @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

                    Instead of upgrading, why not move to a fresh box with working PHP 7.1? Keep the two separate, just copy over the database.

                    Because I'd have to reinstall everything. . .

                    Um... reinstall what? It only takes a minute. And if you scripted, or followed a script, or used Ansible, Salt, etc. it's just a push of a button away.

                    The scripted install uses PHP 5.6 on CentOS 7.

                    He would need to move to Fedora to get around that.

                    I just installed Snipe-IT on CentOS 7 the other day via the install.sh script and it's running PHP 7.1.13. The script kept failing on Fedora 27.

                    Damnit, I had it all workign. Did someone update snipe.sh again?

                    I had previously installed it on Fedora 26 and had no issues. I looked at some logs but honestly couldn't figure it out and didn't have the time to dedicate to troubleshooting. Just tried CentOS 7 to see if I'd get the same message and it worked flawlessly.

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

                      Looks like the last commit to snipe.sh was mine. it should work.

                      Let me poke at it.

                      https://github.com/snipe/snipe-it/commits/master/snipeit.sh

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

                        Shit, there is a big pull request pending for it 😞

                        https://github.com/snipe/snipe-it/pull/4708

                        1 Reply Last reply Reply Quote 0
                        • zachary715Z
                          zachary715 @black3dynamite
                          last edited by

                          @black3dynamite said in Snipe-IT PHP 5.6 upgrade to 7.1:

                          @zachary715 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                          @jaredbusch said in Snipe-IT PHP 5.6 upgrade to 7.1:

                          @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

                          @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                          @scottalanmiller said in Snipe-IT PHP 5.6 upgrade to 7.1:

                          Instead of upgrading, why not move to a fresh box with working PHP 7.1? Keep the two separate, just copy over the database.

                          Because I'd have to reinstall everything. . .

                          Um... reinstall what? It only takes a minute. And if you scripted, or followed a script, or used Ansible, Salt, etc. it's just a push of a button away.

                          The scripted install uses PHP 5.6 on CentOS 7.

                          He would need to move to Fedora to get around that.

                          I just installed Snipe-IT on CentOS 7 the other day via the install.sh script and it's running PHP 7.1.13. The script kept failing on Fedora 27.

                          What happens when using the script on Fedora?

                          I would get to the pre-flight page and everything would look good. I would have a red X next to the part about the .env file but all the settings inside it looked correct. If I clicked next, I would get a page saying that "Whoops, something went wrong". Tried to install it 4 different times with same result.

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

                            None of this relates to my issue of "how the H do I upgrade php without borking the whole damn thing..." lol

                            😄

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

                              @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                              None of this relates to my issue of "how the H do I upgrade php without borking the whole damn thing..." lol

                              😄

                              It does, because our answer is to install clean and migrate the DB.

                              zachary715Z DustinB3403D 2 Replies Last reply Reply Quote 1
                              • zachary715Z
                                zachary715 @JaredBusch
                                last edited by

                                @jaredbusch said in Snipe-IT PHP 5.6 upgrade to 7.1:

                                @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                                None of this relates to my issue of "how the H do I upgrade php without borking the whole damn thing..." lol

                                😄

                                It does, because our answer is to install clean and migrate the DB.

                                And you will get an updated version of PHP as you wish

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

                                  @jaredbusch said in Snipe-IT PHP 5.6 upgrade to 7.1:

                                  @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                                  None of this relates to my issue of "how the H do I upgrade php without borking the whole damn thing..." lol

                                  😄

                                  It does, because our answer is to install clean and migrate the DB.

                                  I suppose, seems painful to do that though still.

                                  I could simply backup my .env file I suppose.

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

                                    I guess the core question I have that is irritating me is why can't I just point snipe-it to the updated version of php?

                                    zachary715Z 1 Reply Last reply Reply Quote 0
                                    • zachary715Z
                                      zachary715 @DustinB3403
                                      last edited by

                                      @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                                      I guess the core question I have that is irritating me is why can't I just point snipe-it to the updated version of php?

                                      Did you attempt @black3dynamite's method above?

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

                                        @zachary715 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                                        @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                                        I guess the core question I have that is irritating me is why can't I just point snipe-it to the updated version of php?

                                        Did you attempt @black3dynamite's method above?

                                        Not yet, as its mid-day and people are using the system.

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

                                          @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                                          @zachary715 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                                          @dustinb3403 said in Snipe-IT PHP 5.6 upgrade to 7.1:

                                          I guess the core question I have that is irritating me is why can't I just point snipe-it to the updated version of php?

                                          Did you attempt @black3dynamite's method above?

                                          Not yet, as its mid-day and people are using the system.

                                          That would be my recommendation then. shutdown the VM, make a snapshot, then power it on and try that.

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

                                            I just went through the git history. the installer was changed to install php 7.1 on Oct 2, 2017.

                                            1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post