b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Back-office Reference
  3. Collections
  4. Settings
  5. Advanced
  6. Media Directory Location Panel

Media Directory Location Panel

Media Directory Location Panel

This panel lets the administrators decide where to place the media directory for each collection.

By default, the media folder is created in a special directory inside the b2evolution’s file structure. This special directory is located in /media/[coll_slug], where coll_slug is the value of the URL "filename" parameter of the current collection (more information about this parameter could be found here: Collection General Parameters).

You can preview the URL of the media folder in the URL preview field.

Note: Only an admin user with global Collection admin privileges can change these settings.

Media Directory Options

  1. None: you will disable the media directory for this collection. It is important to know that the current media directory must be empty, otherwise, the system will throw an error message to warn you that it is not and will abort the requested change. You will need to manually delete those files using the File Manager before selecting this option.

    Important: we discourage the use of any external tool to delete files from the media folder (FTP, hosting file manager, etc.), to keep the health and cleanness of your meta-data database.
  2. Default: the media directory is located in /media/blogs/[Collection URL "filename"].
  3. Subdirectory of media folder: a new subdirectory will be created and named as you set it in the text field next to this radio button. Please, note that by performing this action all the files will be moved from the old directory to the new one. It is important to remember that the new folder will be located in /media/ and not in /media/blogs as the old one probably was.
  4. Custom location: you can set a completely different location for the media folder of the current collection. In this case, you will need to provide the following information (please note that both values are required):
    • Directory: full path of the new media folder. (i.e.: /home/mydomain/custom_media_folder)
    • URL: the URL that points to the directory set above (i.e.: http://mediafolder.mydomain.com).

Warning: you may set any location for the media folders, however, each change that you make in this setting will involve the movement of physical files and folders in the disk. You must be sure about this action because it could cause an outage in the server, according to the number of files and their weight as well. Although b2evolution will automatically perform all the movements in the file structure, it is recommended that you make a backup before taking any action.

Considerations when using "Custom location":

  1. Make sure that PHP has write permissions on the new path that you are about to set.
  2. The URL[ field must be directly pointed to the directory, otherwise, the file manager will not work properly.
  3. Validations about the new folder:
    • It must not exist, because it will be automatically created by b2evolution.
    • It must not be already assigned to any other collection. Even subfolders of another media folder are also avoided.
    • It must not be named as any of the reserved default media folders i.e.: media/shared, media/users, etc.
Tags: 7.0.2
Created by mgsolipa • Last edit by fplanque on 2020-06-09 00:16 • •

No feedback yet

On this page

  • Media Directory Options
  • Considerations when using "Custom location":

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
  • Front-office Reference
  • Back-office Reference
    • Site
    • Collections
      • Collection Dashboard
      • Contents
      • Comments
      • Categories
      • Features
      • Skins
      • Widgets
      • Settings
        • General
        • URLs
        • SEO
        • Item types
        • Item Statuses
        • Advanced
          • After Each New Post
          • External Feeds
          • Template
          • Caching
          • In-skin Actions
          • Media Directory Location
          • Software Credits
          • Skin and Style
        • Advanced Permissions
        • Plugins
        • Common Settings
      • Creating a new collection
    • Files
    • Analytics
    • Users
    • Messages
    • Emails
    • System
    • Working with Results Tables
  • Developer Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
b2evolution CCMS

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque