October 30, 20241 yr Hello. I've followed the guide of "SpaceInvader One" about installing the new Nextcloud AIO, but i have some problems: 1. how cand I use the " occ command" - tried in the console tab, but is not working ( at he old docker image is was working); 2 where can i find the configuration file to put some Cloudflare proxy to the " trusted network address" and to add the country phone code Edited October 30, 20241 yr by blue8lucian
October 30, 20241 yr Community Expert 3 hours ago, blue8lucian said: Hello. I've followed the guide of "SpaceInvader One" about installing the new Nextcloud AIO, but i have some problems: 1. how cand I use the " occ command" - tried in the console tab, but is not working ( at he old docker image is was working); 2 where can i find the configuration file to put some Cloudflare proxy to the " trusted network address" and to add the country phone code Not sure on the AIO image. but when i ran nextcloud i was able to run and use occ by clicking console... Which docker image? https://github.com/nextcloud/all-in-one That is better asked on nextcloud forum: Review the docs: https://docs.nextcloud.com/server/latest/admin_manual/occ_command.html https://help.nextcloud.com/t/run-occ-command/190439 As for the nextldoud Cloudflare proxy you will need to edit nginxs config: https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html https://help.nextcloud.com/t/cloudflare-proxy-cloudflare-tunnel/139456/3
October 31, 20241 yr Community Expert If you have installed AIO, there will be several dockers running To get access to the config file, you need to open a console with the "nextcloud-aio-nextcloud" docker (NOT the main one!). There you can find the directory "config" and the usual config.php. Changes do work, but I am not sure, if they are persistant after an update or reboot. (For safety reasons I have copied my changed-one out to the normal filespace so it can be easily copied back if needed) I had no need to add proxy setting, the installation automatically detected my local NPM and installed the proper parameters. But the evil telephone thing and the "default_language" stuff were needed here too. Edited October 31, 20241 yr by MAM59
October 31, 20241 yr Author What did you used to modify the config.php? I've tried "nano /config" and is not working, tried "vim" but not ok. How do you use the "occ command" there? when i try to use it I'm getting this "sh: occ: not found"
October 31, 20241 yr Community Expert "nano /config" cannot work, config is a directory you need to do "vi config/config.php" instead. Hmm, what did I use??? as usual ("nano" and "vim" are for wimps 🙂 ) I used "vi"... lemme check again... yeah, "vi" is there, "nano" and "vim" are not in the container. The same is true for occ... in the top folder of the container you need to run "sudo -u www-data ./occ ..." to fire it up (if you run it without sudo it will tell you you should not run it as root and suggests you should use "sudo -u #33 ..." instead. The suggestion is WRONG! you need to use the username "www-data" because the supplied "sudo" does not accept numbers as users as far as I have tested it) Both commands will only work if you open a console for "nextcloud-aio-nextcloud" only!!! Edited October 31, 20241 yr by MAM59
November 2, 20241 yr Good info here: https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-run-occ-commands Examples of occ commands I've used so far, run from the Unraid host terminal: How to resolve Security & setup warnings displays the "missing default phone region" after initial install? Example shown sets it to New Zealand docker exec --user www-data -it nextcloud-aio-nextcloud php occ config:system:set default_phone_region --value="NZ" Fix missing indices docker exec --user www-data -it nextcloud-aio-nextcloud php occ maintenance:repair --include-expensive Edited November 3, 20241 yr by chillr grammar
November 5, 20241 yr Community Expert ... Quote docker exec --user www-data -it nextcloud-aio-nextcloud php occ config:system:set default_phone_region --value="NZ" Regarding config edits... Review: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html If you editing the config your better off looking into the volume folder path and finding your php config file and adding data there... Review the docs.: https://docs.nextcloud.com/server/27/admin_manual/ Next cloud questions are better handled on nextclouds forum: https://help.nextcloud.com/
January 1, 20251 yr On 11/2/2024 at 4:47 PM, chillr said: Good info here: https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-run-occ-commands Examples of occ commands I've used so far, run from the Unraid host terminal: How to resolve Security & setup warnings displays the "missing default phone region" after initial install? Example shown sets it to New Zealand docker exec --user www-data -it nextcloud-aio-nextcloud php occ config:system:set default_phone_region --value="NZ" Fix missing indices docker exec --user www-data -it nextcloud-aio-nextcloud php occ maintenance:repair --include-expensive THANK YOU for this! I have been searching for this for hours!
December 11, 2025Dec 11 I realize that this was like a year ago, but if anyone is looking up how to enter OCC commands in Nextcloud AIO now, it seems things have changed. You still open the Console in the nextcloud-aio-nextcloud container (not the mastercontainer), but if for example you wanted to turn maintenance mode on, now all you have to type is:./occ maintenance:mode --onPretty great, right? If you try to use "sudo" or "docker" you will get an "unknown command: sudo" error. Now it's streamlined!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.