my upgrade experience from v5 to v6.10 #12927
sk0al
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I thought I would share since there is not alot of detailed instructions for uggrading. I went from centOS-8 to oracle linux 8 snipe v5 to v6.
take a vm clone, backup of your server, application.
Enable then update to php v8; The latest version of snipeit wants php 8
dnf module list php
dnf module reset php:7.2
dnf module disable php:7.2
dnf module enable php:8.0
dnf module list php --> 8.0 is now enabled
dnf update
php -v
Install php-sodium
cd /tmp; wget -v https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/Packages/p/php-sodium-8.0.20-1.el9.x86_64.rpm
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm -y
dnf install php-sodium-8.0.20-1.el9.x86_64.rpm -y
php –-ini ----> look for sodium
Verify permissions per snipeit docs
find /var/www/snipe-it -type f -exec chmod 664 {} ;
find /var/www/snipe-it -type d ! -group apache -exec chgrp apache {} ;
chmod -R 775 /var/www/snipe-it/storage
chmod -R 775 /var/www/snipe-it/public/uploads
chmod -R 775 /var/www/snipe-it/bootstrap/cache
chmod -R 775 /var/www/snipe-it/public
chown -R svc-snipe-web:apache /var/www/snipe-it/public
cd /var/www/snipe-it; chgrp -R apache .git .github .nvmrc .all-contributorsrc
As svc-snipe-web user update/install php composer
su - svc-snipe-web
cd /var/www/snipe-it
curl -sS https://getcomposer.org/installer | php
php composer.phar install --no-dev --prefer-source
… reply replace all or discard changes if asked
Update your .env file APP_URL
cp -p /var/www/snipe-it/.env /var/www/snipe-it/.env.orig
sed 's/APP_URL=.*/APP_URL=https://snipeit.mixxxxx.com/g' /var/www/snipe-it/.env > /var/www/snipe-it/.env.upg
mv /var/www/snipe-it/.env.upg /var/www/snipe-it/.env
Clear your cache then upgrade
cd /var/www/snipe-it
php artisan config:clear
php artisan config:cache
php upgrade.php
As root, reboot then test https://snipeit.mxxxxxxx.com
shutdown -r 0
Beta Was this translation helpful? Give feedback.
All reactions