update/patches/upgrading
hi snipe
thanks for such an excellent product that does the job of it inventory. I have installed the product and it is working excellent with reports, assets etc. This is not an issue but an help request.
however, I see couple of the updates (patches) that you have made and I want to upgrade our current snipe-it. Our installation is as follows
- Uses snipe-it version alpha package that I downloaded last week
- uses MySQL
- uses PHP 5.4
- uses IIS 7 on windows 7 64bit OS
briefly, can you guide me how to update our version with all the patches. Also, I have backed up our MYSQL database. I am on a windows platform.
Thanks and appreciate it a lot of your effort and of the others contributing to this.
Hi @joseph707 - have you looked at the upgrading documentation? http://docs.snipeitapp.com/upgrading/README.html
The latest files are on the develop branch right now, with some new features including image uploads for asset models and user avatars, plus some bug fixes.
If you downloaded the original as a .zip or tarball, just download the latest and replace those files. If you did a git clone instead, just checkout to whatever branch you want to use and do a git pull.
hi snipe, I had a look at this but I am new to all of this. I learnt to install snipe from your documentation, going stage by stage and checked on google the steps to using MYSQL. all this in 2 days time. good experience. now I didn't understand this git clone and git pull, but will try to learn those.
But I didn't understand the documentation. as in this part -->
" Whenever you pull down a new version from master or develop , or when you grab the latest official release, make sure to run the following commands via command line: php composer.phar dump-autoload php artisan migrate "
Don't know where to use these commands or is it somewhere inside the package? If you can give me a start on the first few steps (short sentence), I would try to learn the rest myself.
thanks once again.
Hi @joseph707 - you run those commands via command line, just like you did to install the application. (Remember when you ran php artisan app:installto set it up?)
So you just open a terminal prompt, move to the project root, and run those commands after you've replaced the old files with the new files.
hi snipe thanks for the guidance. I used the composer self update and it brought up the items to update. All went good. however, I get this error when creating or updating Asset Models page
Thanks for the guidance in helping me to install the new updates.
Hey @joseph707 - what version of PHP are you running?
hi snipe
PHP Version 5.3.28
Ah, the minimum requirement for Snipe-IT is PHP 5.4. Is it possible to upgrade your version of PHP?
hi snipe Yes, I can upgrade. I will update the PHP version. Should I update anywhere else or should I specify anything special on the php.ini files, if any.
Nothing comes to mind. The only reason really for requiring 5.4 is that short array notation using [] (which you just encountered).
Hi snipe.
Perfect. It works. I see the upload image button now. It is correct. Thanks regards joseph
Awesome, glad you got it working!