---
title: "Object Storage Swift - Configurar ownCloud con el Object Storage (EN)"
description: "Configurar ownCloud con el Object Storage"
url: https://docs.ovhcloud.com/es/guides/storage-and-backup/object-storage/pcs-configure-owncloud-with-object-storage
lang: es
lastUpdated: 2022-05-20
---
# Object Storage Swift - Configurar ownCloud con el Object Storage (EN)

_Last updated 20th May 2022_\*

## Objective

[ownCloud](https://owncloud.org/) is an online storage and file management application.
This solution offers several features, including synchronisation between multiple devices. You can also add external storage such as OpenStack Object Storage.

**This guide explains how to configure your ownCloud with Object Storage.**

## Requirements

- The OpenRC file, obtained from the [OVHcloud Control Panel](/es/guides/public-cloud/cross-functional/create-and-delete-a-user.md) or [Horizon](/es/guides/public-cloud/cross-functional/introducing-horizon.md)
- [Storage space](/es/guides/storage-and-backup/object-storage/pcs-create-container.md) dedicated to ownCloud

## Instructions

### Installation

Firstly you have to install ownCloud:

```bash
root@instance:~$ apt install owncloud
```

:::info
Make sure that the repository you use contains the latest version of ownCloud.
:::

To function, OwnCloud must have a MySQL database. If you do not already have one, install it by running this command:

```bash
root@instance:~$ apt install mysql-server
```

### Configuration

To configure the database that will be used by ownCloud, log in to your MySQL server with the root password defined when the server was installed:

```bash
root@instance:~$ mysql -u root -p
```

At this point, you can create a new user and a database dedicated to ownCloud:

```sql
***** Create user *****
mysql> CREATE USER 'owncloud'@'localhost' IDENTIFIED BY 'P@ssw0rd';

***** Create database *****
mysql> CREATE DATABASE `owncloud` ;

***** Grant all privileges on "ownCloud" to the "owncloud" database *****
mysql> GRANT ALL PRIVILEGES ON `owncloud` . * TO 'owncloud'@'localhost';
```

Log in to ownCloud on your browser by entering: `http://serverIP/owncloud`:

![ownCloud](/images/storage-and-backup/object-storage/pcs-configure-owncloud-with-object-storage/img_3325.jpg)
In this interface:

- Create an administrator account.
- Enter the data directory (optional, if you just want to use the Object Storage, you can leave the default one).
- Enter your database credentials.

After confirming the operation, you can access your OwnCloud interface and activate the application that allows you to add an external storage support.

To do so, click on `File
` on the top left and select `Applications
`:
![ownCloud](/images/storage-and-backup/object-storage/pcs-configure-owncloud-with-object-storage/img_3327.jpg)
Then enable the `External storage support
` application from the `Disabled`
 applications menu.
![ownCloud](/images/storage-and-backup/object-storage/pcs-configure-owncloud-with-object-storage/img_3328.jpg)
Having done so, configure this application by clicking on your username at the top right and selecting `Admin
`:
![ownCloud](/images/storage-and-backup/object-storage/pcs-configure-owncloud-with-object-storage/img_3326.jpg)
In the `External storage`
 menu, select `Add storage
` and `OpenStack Object Storage
`:
![ownCloud](/images/storage-and-backup/object-storage/pcs-configure-owncloud-with-object-storage/img_3329.jpg)
Enter the details from your OpenRC file:

- Your Horizon username which corresponds to the  "OS\_USERNAME" field in the OpenRC file
- The name of your container which you previously created for ownCloud
- The region that your container is in: "OS\_REGION\_NAME"
- The tenant name, corresponding to the "OS\_TENANT\_NAME" field
- Your Horizon password
- The service name corresponding to "Swift"
- The endpoint address, corresponding to the "OS\_AUTH\_URL" field or "[https://auth.cloud.ovh.net/v3](https://auth.cloud.ovh.net/v3)"

The "API key" and the "Maximum waiting time" are optional.

:::info
The container that you have created must be entirely dedicated to ownCloud because the application will use metadata.

Once you've entered all the information and checked that it is correct, the red box in front of your folder name will turn green and will be available in the `External storage` section of your homepage:
:::

![ownCloud](/images/storage-and-backup/object-storage/pcs-configure-owncloud-with-object-storage/img_3330.jpg)
## Go further

 
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/es-es/professional-services/) to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project.

Join our [community of users](https://community.ovhcloud.com/).
