How to run Nextcloud OCC commands in NC19?

Hello!

I used to use the Nextcloud OCC extension but that’s been depracated in NC19. Any guides on how I should run NC commands from the cPanel terminal? Just not sure which directory they run from.

According to the settings page (/index.php/settings/admin/overview) I need to run

occ db:convert-filecache-bigint
occ db:add-missing-columns
occ db:add-missing-indices

It also requests that I add the PHP OPcache module, which I can also look into.

I’m working off memory here but I believe occ is in the main directory of the install. If not already you’d want to change it to have executable permissions first, so:

cd directorythatnextcloudisinstalledin
chmod +x occ
occ db:convert-filecache-bigint
occ db:add-missing-columns
occ db:add-missing-indices
1 Like

this was right! with the small change that for some reason a ./ was needed before each occ command

1 Like