# \#admin-scripts

**URL:** https://help.nextcloud.com/tag/admin-scripts/363.md

[Latest](https://help.nextcloud.com/latest.md) · [Categories](https://help.nextcloud.com/categories.md) · [Tags](https://help.nextcloud.com/tags.md)

---

## [Php-updater - a script to upgrade php in a safe way](https://help.nextcloud.com/t/php-updater-a-script-to-upgrade-php-in-a-safe-way/180215)

<div class="topic-metadata">

**Author:** [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Replies:** 140\
**Last updated:** [November 4, 2026, 11:50am UTC](https://help.nextcloud.com/t/php-updater-a-script-to-upgrade-php-in-a-safe-way/180215 "2026-11-04T11:50:40Z")

</div>

php-updater is a script to upgrade (migrate php from one version to an other) on → debian based distributions ← ▶ my motivations Installation of the script: sudo wget -O /usr/local/bin/php-updater https://global-social…

---

## [Nc-integrity-fix - Script to resolve "Some files have not passed the integrity check" warnings](https://help.nextcloud.com/t/nc-integrity-fix-script-to-resolve-some-files-have-not-passed-the-integrity-check-warnings/194729)

<div class="topic-metadata">

**Author:** [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Replies:** 25\
**Last updated:** [September 22, 2026, 8:20pm UTC](https://help.nextcloud.com/t/nc-integrity-fix-script-to-resolve-some-files-have-not-passed-the-integrity-check-warnings/194729 "2026-09-22T20:20:35Z")

</div>

nc-integrity-fix is a script to resolve “Some files have not passed the integrity check” warnings Every Nextcloud admin has been confronted with this warning sooner or later and is then always busy searching and c…

---

## [How-to/FAQ WIKI](https://help.nextcloud.com/t/how-to-faq-wiki/9068)

<div class="topic-metadata">

**Author:** [@JasonBayton](https://help.nextcloud.com/u/JasonBayton)\
**Replies:** 8\
**Last updated:** [March 24, 2026, 6:23am UTC](https://help.nextcloud.com/t/how-to-faq-wiki/9068 "2026-03-24T06:23:53Z")

</div>

Welcome to the How-to/FAQ category! :smile: Here you’ll find a selection of popular :bookmark\_tabs: guides contributed by the community, as well as many :question: frequently asked questions to get you on your way with…

---

## [Possible to map public link to a windows drive?](https://help.nextcloud.com/t/possible-to-map-public-link-to-a-windows-drive/247745)

<div class="topic-metadata">

**Author:** [@BEmain](https://help.nextcloud.com/u/BEmain)\
**Replies:** 8\
**Last updated:** [August 18, 2026, 8:19pm UTC](https://help.nextcloud.com/t/possible-to-map-public-link-to-a-windows-drive/247745 "2026-08-18T20:19:15Z")

</div>

I just got a public link from a customer to a nextcloud server for exchanging data, someting like https://cloud.xxx.com/s/SPSx34XXXXF6iWWE You can create a link like this using the context menu in Windows File Explorer…

---

## [NextcloudPi Admin-Panel nicht über DNS erreichbar](https://help.nextcloud.com/t/nextcloudpi-admin-panel-nicht-uber-dns-erreichbar/243525)

<div class="topic-metadata">

**Author:** [@retrololo](https://help.nextcloud.com/u/retrololo)\
**Replies:** 3\
**Last updated:** [June 6, 2026, 4:03pm UTC](https://help.nextcloud.com/t/nextcloudpi-admin-panel-nicht-uber-dns-erreichbar/243525 "2026-06-06T16:03:30Z")

</div>

Hi Nextcloud-Community, ich betreibe seit einiger Zeit eine Nextcloud auf einem RaspberryPi 4 (NextcloudPi Version v1.57.1, Nextcloud Version 33.0.2.2). Die Nextcloud ist nicht gegenüber dem Internet exposed und zur Abs…

---

## [Python Script to solve Mobile Uploads Duplicates](https://help.nextcloud.com/t/python-script-to-solve-mobile-uploads-duplicates/242820)

<div class="topic-metadata">

**Author:** [@Scintilla13](https://help.nextcloud.com/u/Scintilla13)\
**Replies:** 0\
**Last updated:** [April 2, 2026, 12:44pm UTC](https://help.nextcloud.com/t/python-script-to-solve-mobile-uploads-duplicates/242820 "2026-04-02T12:44:41Z")

</div>

My MobileUpload folder is full of duplicate images and movies created by the mobile client bugs. I spent some time to generate and test a smart script with Claude that could eliminate this problem. This is the feature l…

---

## [Update Talk and Files on Debian-based Linux Distributions](https://help.nextcloud.com/t/update-talk-and-files-on-debian-based-linux-distributions/237954)

<div class="topic-metadata">

**Author:** [@dromatriptan](https://help.nextcloud.com/u/dromatriptan)\
**Replies:** 0\
**Last updated:** [December 30, 2025, 2:04am UTC](https://help.nextcloud.com/t/update-talk-and-files-on-debian-based-linux-distributions/237954 "2025-12-30T02:04:20Z")

</div>

Greetings, I’ve benefited greatly from these forums and the Nextcloud platform. I am now taking the time to try and give back to the community as best I can. I wrote a PowerShell based script that I run to update my Tal…

---

## [Script: Nextcloud Log Filtering for usage within the shell](https://help.nextcloud.com/t/script-nextcloud-log-filtering-for-usage-within-the-shell/237608)

<div class="topic-metadata">

**Author:** [@fx919](https://help.nextcloud.com/u/fx919)\
**Replies:** 0\
**Last updated:** [December 19, 2025, 12:29pm UTC](https://help.nextcloud.com/t/script-nextcloud-log-filtering-for-usage-within-the-shell/237608 "2025-12-19T12:29:43Z")

</div>

I wrote a small bash script, which enables to search for words or exclude words in the nextcloud.log by attributes. Some command examples: Show only log entries for username containing “peter”: $ cat nextcloud.log \\ …

---

## [Nextcloud installieren (Console & Docker selfmade Container)](https://help.nextcloud.com/t/nextcloud-installieren-console-docker-selfmade-container/181295)

<div class="topic-metadata">

**Author:** [@linux-helmut](https://help.nextcloud.com/u/linux-helmut)\
**Replies:** 23\
**Last updated:** [December 22, 2025, 5:23pm UTC](https://help.nextcloud.com/t/nextcloud-installieren-console-docker-selfmade-container/181295 "2025-12-22T17:23:33Z")

</div>

Nextcloud installieren, aber wie - Das war schon mein Thema bei Owncloud und ist es bei mir auch im Einstieg mit der Nextcloud 10/11 gewesen. Da ich sehr viel experimentiert hatte und vieles ausprobieren wollte, stand …

---

## [Powershell script to set original create picture date](https://help.nextcloud.com/t/powershell-script-to-set-original-create-picture-date/233521)

<div class="topic-metadata">

**Author:** [@DX90](https://help.nextcloud.com/u/DX90)\
**Replies:** 0\
**Last updated:** [October 5, 2025, 7:21am UTC](https://help.nextcloud.com/t/powershell-script-to-set-original-create-picture-date/233521 "2025-10-05T07:21:37Z")

</div>

Hi Nextcloud Community, I created a simple PowerShell script that automatically sets the creation, modification, and last access dates of photos from their EXIF metadata. It works with JPG, JPEG, PNG, TIF, TIFF, no ext…

---

## [PHP 8.4 implicit nullable parameter deprecation in NC31 3rdparty module icewind](https://help.nextcloud.com/t/php-8-4-implicit-nullable-parameter-deprecation-in-nc31-3rdparty-module-icewind/230492)

<div class="topic-metadata">

**Author:** [@konki](https://help.nextcloud.com/u/konki)\
**Replies:** 10\
**Last updated:** [August 23, 2025, 8:20am UTC](https://help.nextcloud.com/t/php-8-4-implicit-nullable-parameter-deprecation-in-nc31-3rdparty-module-icewind/230492 "2025-08-23T08:20:01Z")

</div>

Hi community, The icewind module contains code that is not compliant with PHP 8.4 due to the deprecation of implicit nullable parameters. I have corrected some errors in the PHP code using the explicit nullable type. T…

---

## [HowTo: Einfaches Nextcloud Maintenance Script für Debian/Apache2 – Updates & User-Management leicht gemacht](https://help.nextcloud.com/t/howto-einfaches-nextcloud-maintenance-script-fur-debian-apache2-updates-user-management-leicht-gemacht/230419)

<div class="topic-metadata">

**Author:** [@heyho](https://help.nextcloud.com/u/heyho)\
**Replies:** 0\
**Last updated:** [August 16, 2025, 2:01am UTC](https://help.nextcloud.com/t/howto-einfaches-nextcloud-maintenance-script-fur-debian-apache2-updates-user-management-leicht-gemacht/230419 "2025-08-16T02:01:56Z")

</div>

English: Hello Nextcloud enthusiasts, Managing a Nextcloud instance smoothly can sometimes be a challenge, especially when preparing for updates or maintenance. To make this easier, I’ve developed a lightweight bash sc…

---

## [Create a server report](https://help.nextcloud.com/t/create-a-server-report/223158)

<div class="topic-metadata">

**Author:** [@theking2](https://help.nextcloud.com/u/theking2)\
**Replies:** 10\
**Last updated:** [May 24, 2025, 10:05am UTC](https://help.nextcloud.com/t/create-a-server-report/223158 "2025-05-24T10:05:26Z")

</div>

Is there a tool / page to generate this report: The Basics Nextcloud Server version (e.g., 29.x.x): replace me Operating system and version (e.g., Ubuntu 24.04): replace me Web server and version (e.g, Apache 2.4…

---

## [How to identify users of a specific text session (/index.php/apps/text/session/XXXXXX/{push,save})](https://help.nextcloud.com/t/how-to-identify-users-of-a-specific-text-session-index-php-apps-text-session-xxxxxx-push-save/223607)

<div class="topic-metadata">

**Author:** [@beaufils](https://help.nextcloud.com/u/beaufils)\
**Replies:** 2\
**Last updated:** [April 29, 2025, 10:58am UTC](https://help.nextcloud.com/t/how-to-identify-users-of-a-specific-text-session-index-php-apps-text-session-xxxxxx-push-save/223607 "2025-04-29T10:58:39Z")

</div>

On a nextcloud instance installed from the nextcloud:production-fpm official docker image we start seeing a lot of 412 HTTP error code in the log producing a huge load on the server. An unresolved issue similar to our p…

---

## [Script "nc-occ" - interactive occ interface](https://help.nextcloud.com/t/script-nc-occ-interactive-occ-interface/195249)

<div class="topic-metadata">

**Author:** [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Replies:** 3\
**Last updated:** [April 29, 2025, 9:51am UTC](https://help.nextcloud.com/t/script-nc-occ-interactive-occ-interface/195249 "2025-04-29T09:51:37Z")

</div>

nc-occ brings you the occ feature you have always wanted and missed most, without even knowing. is a wrappper for occ. interactively creates your occ commands. Whenever you need to quickly make an occ task but you d…

---

## [Script "nc-who" - similar to unix \`who\`, follow live who is logged in](https://help.nextcloud.com/t/script-nc-who-similar-to-unix-who-follow-live-who-is-logged-in/164972)

<div class="topic-metadata">

**Author:** [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Replies:** 45\
**Last updated:** [April 17, 2025, 6:37pm UTC](https://help.nextcloud.com/t/script-nc-who-similar-to-unix-who-follow-live-who-is-logged-in/164972 "2025-04-17T18:37:26Z")

</div>

Have you ever wanted to check who’s online right now, if there’s any suspicious movement happening on your cloud? Similar to unix who, follow live who is logged in with → nc-who ← I have completely reworked thi…

---

## [Post-install log-in](https://help.nextcloud.com/t/post-install-log-in/222753)

<div class="topic-metadata">

**Author:** [@dikkedimi](https://help.nextcloud.com/u/dikkedimi)\
**Replies:** 0\
**Last updated:** [April 15, 2025, 6:21am UTC](https://help.nextcloud.com/t/post-install-log-in/222753 "2025-04-15T06:21:53Z")

</div>

\[details=“Post install sanity check”\] Hi All, I’ve been breaking my brain a bit over installing Nextcloud (thought I’d immediately use the latest build). I’ve downloaded the provided VM image folders. then I rsynced …

---

## [New App: Ownership Transfer](https://help.nextcloud.com/t/new-app-ownership-transfer/203476)

<div class="topic-metadata">

**Author:** [@pyg](https://help.nextcloud.com/u/pyg)\
**Replies:** 0\
**Last updated:** [September 10, 2024, 6:01pm UTC](https://help.nextcloud.com/t/new-app-ownership-transfer/203476 "2024-09-10T18:01:42Z")

</div>

Hello, After the ‘Intros’ application presented here at the end of July (New App : "Intros", to display tutorials inside Nextcloud interface), Val, our intern (who has now gone back to his studies) has developed a secon…

---

## [Is it possible to restrict admin login only from localhost?](https://help.nextcloud.com/t/is-it-possible-to-restrict-admin-login-only-from-localhost/222570)

<div class="topic-metadata">

**Author:** [@nc3452443](https://help.nextcloud.com/u/nc3452443)\
**Replies:** 3\
**Last updated:** [April 13, 2025, 6:05pm UTC](https://help.nextcloud.com/t/is-it-possible-to-restrict-admin-login-only-from-localhost/222570 "2025-04-13T18:05:15Z")

</div>

How to make rule for login page that if username == ‘admin’ and IP != ‘127.0.0.1’ then deny? Seems like NextCloud itself does not offer it out of the box? But if I write it directly to index.php script then it gets over…

---

## [Nc-who fails with "include(/config.php): Failed to open stream: No such file or directory"](https://help.nextcloud.com/t/nc-who-fails-with-include-config-php-failed-to-open-stream-no-such-file-or-directory/216363)

<div class="topic-metadata">

**Author:** [@CameronS](https://help.nextcloud.com/u/CameronS)\
**Replies:** 6\
**Last updated:** [April 8, 2025, 7:05am UTC](https://help.nextcloud.com/t/nc-who-fails-with-include-config-php-failed-to-open-stream-no-such-file-or-directory/216363 "2025-04-08T07:05:27Z")

</div>

The Basics Nextcloud Server version (e.g., 29.x.x): 30.0.4 Operating system and version (e.g., Ubuntu 24.04): Ubuntu 22.04 Summary of the issue you are facing: Newly downloaded version of nc-who, installed this w…

---

## [Create Nextcloud Deck Cards via Bash Script](https://help.nextcloud.com/t/create-nextcloud-deck-cards-via-bash-script/221116)

<div class="topic-metadata">

**Author:** [@ProfZiebart](https://help.nextcloud.com/u/ProfZiebart)\
**Replies:** 2\
**Last updated:** [March 27, 2025, 9:52am UTC](https://help.nextcloud.com/t/create-nextcloud-deck-cards-via-bash-script/221116 "2025-03-27T09:52:13Z")

</div>

I created a bash Script creating Cards automatically and maybe someone can make use of it. I will use it for automatic Card Creation via cron Jobs. #!/bin/bash # the Syntax is you call this script and then add Board Sta…

---

## [NC31 + Firefox: Admin-Bereich, Beim Link zu "Verwaltungseinstellungen" fehlt ein Schrägstrich. Sehr Seltsam :(](https://help.nextcloud.com/t/nc31-firefox-admin-bereich-beim-link-zu-verwaltungseinstellungen-fehlt-ein-schragstrich-sehr-seltsam/220464)

<div class="topic-metadata">

**Author:** [@Triebwerk](https://help.nextcloud.com/u/Triebwerk)\
**Replies:** 3\
**Last updated:** [March 18, 2025, 8:03pm UTC](https://help.nextcloud.com/t/nc31-firefox-admin-bereich-beim-link-zu-verwaltungseinstellungen-fehlt-ein-schragstrich-sehr-seltsam/220464 "2025-03-18T20:03:09Z")

</div>

Hallo Zusammen, habe gestern einen neuen Nextcloud Server (31.0.1) aufgesetzt (Debian 12) und die ganzen Warnungen und Fehlermeldungen soweit abgearbeitet. Sind also keine mehr vorhanden. Jetzt zu meinem Problem. Wenn …

---

## [Access User management API from thrid party client](https://help.nextcloud.com/t/access-user-management-api-from-thrid-party-client/218818)

<div class="topic-metadata">

**Author:** [@u900x600](https://help.nextcloud.com/u/u900x600)\
**Replies:** 2\
**Last updated:** [March 3, 2025, 8:52am UTC](https://help.nextcloud.com/t/access-user-management-api-from-thrid-party-client/218818 "2025-03-03T08:52:56Z")

</div>

When logging in as an admin I can navigate to the account/user management page: /settings/users With a look at the browsers development toolbar I can find an request to: /ocs/v2.php/cloud/users/details?offset=0&limit=25&…

---

## [Script "nc-sql" - zero config commandline client for the nextcloud database](https://help.nextcloud.com/t/script-nc-sql-zero-config-commandline-client-for-the-nextcloud-database/195088)

<div class="topic-metadata">

**Author:** [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Replies:** 0\
**Last updated:** [June 13, 2024, 11:48pm UTC](https://help.nextcloud.com/t/script-nc-sql-zero-config-commandline-client-for-the-nextcloud-database/195088 "2024-06-13T23:48:10Z")

</div>

nc-sql is a commandline client for the nextcloud database (for MySQL/MariaDB and PostgreSQL, no SQLite3) Whenever you need to quickly make a few queries in the database, but you don’t want to look up the password and …

---

## [Migrating server from subfolder to root folder while keeping subfolder links and sync functional](https://help.nextcloud.com/t/migrating-server-from-subfolder-to-root-folder-while-keeping-subfolder-links-and-sync-functional/130232)

<div class="topic-metadata">

**Author:** [@phil11](https://help.nextcloud.com/u/phil11)\
**Replies:** 3\
**Last updated:** [October 17, 2024, 8:59pm UTC](https://help.nextcloud.com/t/migrating-server-from-subfolder-to-root-folder-while-keeping-subfolder-links-and-sync-functional/130232 "2024-10-17T20:59:06Z")

</div>

Nextcloud version (eg, 20.0.5): 23.0.0.10 Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04 / docker Apache or nginx version (eg, Apache 2.4.25): 2.4.51 PHP version (eg, 7.4): 8.0.14 We migrated our nc s…

---

## [Is there a "proper" way to bootstrap occ/script to use a different set of apps from the main installation?](https://help.nextcloud.com/t/is-there-a-proper-way-to-bootstrap-occ-script-to-use-a-different-set-of-apps-from-the-main-installation/214191)

<div class="topic-metadata">

**Author:** [@rtnc](https://help.nextcloud.com/u/rtnc)\
**Replies:** 8\
**Last updated:** [January 8, 2025, 9:38am UTC](https://help.nextcloud.com/t/is-there-a-proper-way-to-bootstrap-occ-script-to-use-a-different-set-of-apps-from-the-main-installation/214191 "2025-01-08T09:38:50Z")

</div>

Is there a “proper” way to bootstrap occ and/or a php cli scripts to use a different set of apps from the main installation? This is a general-case support question related to occ and/or php cli scripts for which I’d li…

---

## [Mimetype Checker script for files without or with wrong file extensions for "Flow external script"](https://help.nextcloud.com/t/mimetype-checker-script-for-files-without-or-with-wrong-file-extensions-for-flow-external-script/155648)

<div class="topic-metadata">

**Author:** [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Replies:** 8\
**Last updated:** [November 8, 2024, 7:14pm UTC](https://help.nextcloud.com/t/mimetype-checker-script-for-files-without-or-with-wrong-file-extensions-for-flow-external-script/155648 "2024-11-08T19:14:23Z")

</div>

Have you ever encountered the problem of not being able to view image files on Nextcloud due to missing file extensions? I sure did! Whenever I used the Nextcloud android app to automatically upload my “WhatsApp Media” f…

---

## [Newest php8.4 on Debian / Ubuntu - build missing modules with \[php-module-builder\]](https://help.nextcloud.com/t/newest-php8-4-on-debian-ubuntu-build-missing-modules-with-php-module-builder/174766)

<div class="topic-metadata">

**Author:** [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Replies:** 3\
**Last updated:** [October 2, 2024, 12:08am UTC](https://help.nextcloud.com/t/newest-php8-4-on-debian-ubuntu-build-missing-modules-with-php-module-builder/174766 "2024-10-02T00:08:30Z")

</div>

Hello Nextclouders, This may be of interest to those of you who want to test Nextcloud with the newest PHP 8.4 on Ubuntu or Debian. You can easily set this up with these two scripts: php-updater You’ll probably d…

---

## [Nextcloud broken after Ubuntu upgrade to 24.04.1](https://help.nextcloud.com/t/nextcloud-broken-after-ubuntu-upgrade-to-24-04-1/203386)

<div class="topic-metadata">

**Author:** [@carbon\_kid85](https://help.nextcloud.com/u/carbon_kid85)\
**Replies:** 10\
**Last updated:** [September 30, 2024, 9:15am UTC](https://help.nextcloud.com/t/nextcloud-broken-after-ubuntu-upgrade-to-24-04-1/203386 "2024-09-30T09:15:54Z")

</div>

I did something stupid and updated my ubuntu server to 24.04, and now nextcloud is broken. When i try to access my nextcloud istance via a broswer, get the following: \<?php declare(strict\_types=1); /\*\* \* @copyright C…

---

## [Script "nc-apps" - a helpful and more verbose complement to \`occ app:list\`](https://help.nextcloud.com/t/script-nc-apps-a-helpful-and-more-verbose-complement-to-occ-app-list/164389)

<div class="topic-metadata">

**Author:** [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Replies:** 12\
**Last updated:** [September 29, 2024, 9:24pm UTC](https://help.nextcloud.com/t/script-nc-apps-a-helpful-and-more-verbose-complement-to-occ-app-list/164389 "2024-09-29T21:24:13Z")

</div>

occ app:list gives you a list of enabled and disabled apps but you only get the app-ids listed. In the app store, however, apps are not sorted, searched and found by app-id, but by its name. These names are sometimes …

[Next page](https://help.nextcloud.com/tag/admin-scripts/363.md?match_all_tags=true&page=1&tags%5B%5D=admin-scripts)
