Installing Snipe-IT on CentOS 7 and MariaDB
-
@hobbit666 said in Installing Snipe-IT on CentOS 7 and MariaDB:
Anyone done an Upgrade to V4 yet???? Got any notes/guides to do it smoothly

I haven't upgraded yet. But I did my initial install using option 1(git clone).
There is a detail documentation for upgrading.
https://snipe-it.readme.io/v4.0/docs/upgrading-to-v4 -
@hobbit666 said in Installing Snipe-IT on CentOS 7 and MariaDB:
Anyone done an Upgrade to V4 yet???? Got any notes/guides to do it smoothly

I upgraded yesterday and it was a bit of a bitch to get done.
-
This is roughly what I had to do (with the help of @tiagom and Hinsk from Gitter)
cd /var/www/html/snipeit/
git pull
nano composer.jsonEdit :
"doctrine/inflector": "1.2.*"to be"doctrine/inflector": "1.1.*"save the file
remove these files
rm bootstrap/cache/config.phprm bootstrap/cache/services.phpandrm bootstrap/cache/compiled.phpcomposer dumpphp artisan cache:clear
php artisan view:clear
php artisan config:cleargit pullphp composer.phar install --no-dev --prefer-source
php composer.phar dump-autoloadnano .env
adding
APP_LOCALE=enandLEGACY_APP_KEY=<duplicate_APP_KEY_valuephp artisan migrateReboot and the site should work.
-
Of course - create a backup first!
It took us a few times in getting this process sorted out as there is an issue from the master branch and develop branch.
-
@dustinb3403 said in Installing Snipe-IT on CentOS 7 and MariaDB:
This is roughly what I had to do (with the help of @tiagom and Hinsk from Gitter)
cd /var/www/html/snipeit/
git pull
nano composer.jsonEdit :
"doctrine/inflector": "1.2.*"to be"doctrine/inflector": "1.1.*"save the file
remove these files
rm bootstrap/cache/config.phprm bootstrap/cache/services.phpandrm bootstrap/cache/compiled.phpcomposer dumpphp artisan cache:clear
php artisan view:clear
php artisan config:cleargit pullphp composer.phar install --no-dev --prefer-source
php composer.phar dump-autoloadnano .env
adding
APP_LOCALE=enandLEGACY_APP_KEY=<duplicate_APP_KEY_valuephp artisan migrateReboot and the site should work.
Having issues upgrading.
One issue I have is can't remember the original install method but I think I used the install.sh method from 1st post.so I've cd into /var/www/html/snipeit
git pullthat seems to bring new files down
vi composer.jsonlooked at the file and doctrine/inflector": "1.2." is already set to 1.1.rm bootstrap/cache/config.phpsays there is no file ???composer dumpgives mecomposer: command not foundCould I backup the DB do a fresh install the restore? or has the structure changed in the DB???
-
@hobbit666 said in Installing Snipe-IT on CentOS 7 and MariaDB:
@dustinb3403 said in Installing Snipe-IT on CentOS 7 and MariaDB:
This is roughly what I had to do (with the help of @tiagom and Hinsk from Gitter)
cd /var/www/html/snipeit/
git pull
nano composer.jsonEdit :
"doctrine/inflector": "1.2.*"to be"doctrine/inflector": "1.1.*"save the file
remove these files
rm bootstrap/cache/config.phprm bootstrap/cache/services.phpandrm bootstrap/cache/compiled.phpcomposer dumpphp artisan cache:clear
php artisan view:clear
php artisan config:cleargit pullphp composer.phar install --no-dev --prefer-source
php composer.phar dump-autoloadnano .env
adding
APP_LOCALE=enandLEGACY_APP_KEY=<duplicate_APP_KEY_valuephp artisan migrateReboot and the site should work.
Having issues upgrading.
One issue I have is can't remember the original install method but I think I used the install.sh method from 1st post.so I've cd into /var/www/html/snipeit
git pullthat seems to bring new files down
vi composer.jsonlooked at the file and doctrine/inflector": "1.2." is already set to 1.1.rm bootstrap/cache/config.phpsays there is no file ???composer dumpgives mecomposer: command not foundCould I backup the DB do a fresh install the restore? or has the structure changed in the DB???
This is the upgrade process (as it should work). But I believe I had the same issue. You might want to jump onto gitter and ask them to assist you with that as I don't recall what I had to do to correct it.
-
@dustinb3403 Yeah that's the procedure I've been trying to follow then tried what you mentioned above.
OK i'll have a look gitter and see what I can work out
But will leave it till Monday now -
Have anyone installed Snipe-IT by using option 1 and then upgraded successfully to v4?
-
@scottalanmiller said in Installing Snipe-IT on CentOS 7 and MariaDB:
vi app/config/app.phpThis is wrong
Should be:
vi config/app.phpIt's no longer in the app directory.
-
Looks like timezone is set to UTC by default now.
-
@scottalanmiller said in Installing Snipe-IT on CentOS 7 and MariaDB:
php artisan app:installThis also no longer works as of version 3...
-
Also, nothing about opening firewall ports in this guide.
-
This post is deleted! -

-
@hobbit666 Did you reboot?
Is httpd running? MariaDB?
-
@aaronstuder maybe

Will give it another go tomorrow maybe
-
@hobbit666 said in Installing Snipe-IT on CentOS 7 and MariaDB:

Check your APP_URL in your .env, it should match the url you are using to access the site.
-
@black3dynamite OK will but that on the check list when I try again tomorrow.
-
@hobbit666 said in Installing Snipe-IT on CentOS 7 and MariaDB:
@black3dynamite OK will but that on the check list when I try again tomorrow.
Snipe is currently on Version 4 and there should be nothing wrong with the installer.
Upgrading a previously install v3 to v4 is more complicated, but isntalling a clean v4 should jsut work.
-
@jaredbusch It's an upgrade from v3