Project

General

Profile

Actions

Creating a Custom Skeleton Directory for Nextcloud

This how to create a custom skeleton directory for Nextcloud to prevent missing file errors during the integrity check. This guide provides step-by-step instructions on creating the necessary directory and updating the configuration file to specify the new skeleton source. By following these steps, you can customize the skeleton directory path to meet your requirements and eliminate the false-positive errors during the integrity check process in Nextcloud.

The directory /var/nextcloud/skeleton will be created on your server's file system. It is a location you specify to serve as the new skeleton source directory for Nextcloud. By default, Nextcloud does not create this directory for you, so you need to manually create it in the desired location on your server.

Once you have created the /var/nextcloud/skeleton directory, you can update the Nextcloud configuration file (config.php) to point to this directory as the new skeleton source. This allows Nextcloud to use the files within the custom skeleton directory during various operations, such as user provisioning and creating new accounts.

Remember to adjust the ownership and permissions of the directory to ensure that the web server user (e.g., www-data) has appropriate access to the files within the skeleton directory.

Connect to your server using a terminal or SSH client.

Navigate to the root directory by running the following command:

cd /

Create the nextcloud directory inside /var by running the following command:

sudo mkdir /var/nextcloud

Set the appropriate ownership and permissions for the directory. Assuming your web server user is www-data, you can run the following commands:

sudo chown -R www-data:www-data /var/nextcloud
sudo chmod -R 755 /var/nextcloud

Create the skeleton directory inside /var/nextcloud by running the following command:

sudo mkdir /var/nextcloud/skeleton

Again, set the ownership and permissions for the skeleton directory:

sudo chown -R www-data:www-data /var/nextcloud/skeleton
sudo chmod -R 755 /var/nextcloud/skeleton

Now that you have created the /var/nextcloud/skeleton directory, you can update the config.php file with the following line:

'skeletondirectory' => '/var/nextcloud/skeleton',

Save the config.php file and restart your Nextcloud server for the changes to take effect. The new skeleton directory will be used, and the missing file errors should no longer appear in the integrity check.

Updated by Gareth Eaton over 1 year ago · 3 revisions