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.json
Edit :
"doctrine/inflector": "1.2.*"
to be"doctrine/inflector": "1.1.*"
save the file
remove these files
rm bootstrap/cache/config.php
rm bootstrap/cache/services.php
andrm bootstrap/cache/compiled.php
composer dump
php artisan cache:clear
php artisan view:clear
php artisan config:clear
git pull
php composer.phar install --no-dev --prefer-source
php composer.phar dump-autoload
nano .env
adding
APP_LOCALE=en
andLEGACY_APP_KEY=<duplicate_APP_KEY_value
php artisan migrate
Reboot 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.json
Edit :
"doctrine/inflector": "1.2.*"
to be"doctrine/inflector": "1.1.*"
save the file
remove these files
rm bootstrap/cache/config.php
rm bootstrap/cache/services.php
andrm bootstrap/cache/compiled.php
composer dump
php artisan cache:clear
php artisan view:clear
php artisan config:clear
git pull
php composer.phar install --no-dev --prefer-source
php composer.phar dump-autoload
nano .env
adding
APP_LOCALE=en
andLEGACY_APP_KEY=<duplicate_APP_KEY_value
php artisan migrate
Reboot 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 pull
that seems to bring new files down
vi composer.json
looked at the file and doctrine/inflector": "1.2." is already set to 1.1.rm bootstrap/cache/config.php
says there is no file ???composer dump
gives mecomposer: command not found
Could 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.json
Edit :
"doctrine/inflector": "1.2.*"
to be"doctrine/inflector": "1.1.*"
save the file
remove these files
rm bootstrap/cache/config.php
rm bootstrap/cache/services.php
andrm bootstrap/cache/compiled.php
composer dump
php artisan cache:clear
php artisan view:clear
php artisan config:clear
git pull
php composer.phar install --no-dev --prefer-source
php composer.phar dump-autoload
nano .env
adding
APP_LOCALE=en
andLEGACY_APP_KEY=<duplicate_APP_KEY_value
php artisan migrate
Reboot 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 pull
that seems to bring new files down
vi composer.json
looked at the file and doctrine/inflector": "1.2." is already set to 1.1.rm bootstrap/cache/config.php
says there is no file ???composer dump
gives mecomposer: command not found
Could 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.php
This is wrong
Should be:
vi config/app.php
It'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:install
This 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
-
@hobbit666 said in Installing Snipe-IT on CentOS 7 and MariaDB:
@jaredbusch It's an upgrade from v3
Did you follow the instructions that I posted 17 days ago?
-
@black3dynamite said in Installing Snipe-IT on CentOS 7 and MariaDB:
Have anyone installed Snipe-IT by using option 1 and then upgraded successfully to v4?
I did, but I was on gitter and received assistance directly from 2 of the developers there.