NavigationContentFooter
Jump toSuggest an edit

Storing WordPress Media on Object Storage with Media Cloud

Reviewed on 22 April 2024Published on 13 February 2019
  • compute
  • Object-Storage
  • Media-Cloud
  • media-storing
  • Wordpress-blog

Media Cloud is a WordPress plugin allowing you to automatically import the media gallery of your blog to Object Storage and to upload new media files via the WordPress Media Manager directly into an Object Storage Bucket.

Before you start

To complete the actions presented below, you must have:

  • A Scaleway account logged into the console
  • Owner status or IAM permissions allowing you to perform actions in the intended Organization
  • A WordPress blog running on an Instance
  • An Object Storage bucket
Important

Media Cloud requires the PHP extensions xml and mbstring. If they are not installed on your system you can install them from the command line using the apt package manager on Debian and Ubuntu based systems: apt install php7.2-xml php7.2-mbstring (For PHP version 7.2 - if you are using another PHP version modify the command accordingly).

Installing Media Cloud

Media Cloud can be installed directly from the admin interface of your WordPress blog.

  1. Enter the Plugins section in the admin interface of WordPress, then click New Plugin and search for Media Cloud.
  2. Click Install Now to install the plugin into WordPress:
  3. Once installed, activate the plugin by clicking on Activate:

Configuring Media Cloud

  1. From the plugin overview page, make sure that the Cloud Storage switch is toggled on (1) and click Setup Wizard (2) to launch the Media Cloud configuration:

  2. The setup wizard displays. Click Next to continue:

  3. Choose the S3 Compatible storage option to continue:

  4. Click Next to proceed with the configuration:

  5. Enter the connection credentials of your Object Storage bucket:

    • Access key: Your Scaleway access key
    • Secret key: Your Scaleway secret key
    • Bucket: The name of your Object Storage Bucket
    • Region: Automatic
    • Custom Endpoint: The endpoint of your bucket, it can either be:
      • https://s3.fr-par.scw.cloud for Paris (France)
      • https://s3.nl-ams.scw.cloud for Amsterdam (The Netherlands)
      • https://s3.pl-waw.scw.cloud for Warsaw (Poland) Click Next to continue with the configuration.
  6. The setup wizard will check your configuration. Click Start tests to launch the validation of your credentials:

  7. Several tests are done to validate that everything is working well. If everything succeeds, click Next to continue:

  8. The setup is complete now. Click Advanced Settings to exit the wizard and display the advanced settings. Normally nothing needs to be configured there, and you can go to your media gallery from there:

  9. Upload your media files using the WordPress upload feature. They will be uploaded automatically into your Object Storage bucket.

  10. Once uploaded, you will notice a small cloud icon next to each media file, indicating that it is stored in the Object Storage bucket:

  11. To see details of each file, click it. WordPress displays details about the file, such as the bucket name, the media dimensions, and the complete storage URL:

All newly uploaded files are automatically stored in the Object Storage bucket, and they can be used from the Media Library like any other media when writing a blog post.

If you do not have a WordPress blog yet, get started with a few clicks, using our WordPress blog. For more information about the Media Cloud plugin, refer to the official Media Cloud documentation.

Docs APIScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCarreer
© 2023-2024 – Scaleway