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. Installation / Upgrade
  3. Advanced Setup
  4. File Permissions
  5. Media File & evocache Permission Errors

Media File & evocache Permission Errors

If you are reading this, you probably encountered a file permission error within your /media directory.

The /media directory is the directory on your server where b2evolution will store all the files/images you upload to your collection.

The file permission error also manifests in the Front Office as black images with a red error message like this:

Media File & evocache Permission Errors

This means b2evolution tried to create a resized version of an image but was unable to read the original image or write the smaller image to /media directory structure.

This happens when the PHP process that executes b2evolution does not have the proper UNIX file permissions on the /media directories.

How do I fix this?

Some hosting providers are set up in a way where PHP will never have this kind of problem. Others are set up in a way where PHP will have this kind of problem every time it tries to create or modify a file or folder. The best solution to this problem depends on your particular host setup.

The easiest way here is to request help from your hosting provider’s tech support to achieve this. That is what they are here for! ;) Tell them "My PHP application (b2evolution) needs write access to the /media directory and its sub-directories but there is a permission error. How do we fix those permissions?". If a complete file path is displayed (example: /var/www/user/web/media/) give them that path also.

To fix this yourself, your will find helpful information in: Directory and File Permissions.

Now if you understand UNIX file permissions, we highly recommend you look at: Optimal File Permissions.

More info about error messages

See also: Media directory "xyz" could not be created

Tags: 6.11.3
Created by fatimahnasra • Last edit by fplanque on 2020-06-09 00:24 • •

1 comment

Comment from: varanasi

varanasi

This page should include specific information about setting permissions for _cache/

2022-03-22 @ 01:02

On this page

  • How do I fix this?
  • More info about error messages

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
    • New Installation
    • Upgrade
    • Configuration files
    • Advanced Setup
      • Test features
      • Intranet installation
      • Intranet setup
      • After Installation / Upgrade
      • Setting up the Scheduler
      • Multi-Domain Setup
      • Multiple instances
      • File Permissions
        • UNIX Directory and File Permissions
        • Media File & evocache Permission Errors
      • How to change the location of admin.php
      • Google API key
      • GitHub API key
    • Migrating from Another System
    • Moving your b2evolution Site
    • FAQ & Troubleshooting (Installation / Upgrade)
    • Assumed User Skills
  • Front-office Reference
  • Back-office Reference
  • Developer Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
b2

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