Can’t upload images due to permissions error

@Lea,

This error happens when PHP (WordPress) can’t write to the file. This is caused by not having write permissions or the username or group that PHP (WordPress) is running under doesn’t have permission to write to the file.

755 permissions will allow WordPress write permissions when PHP is running as the username under most shared host plans.

Some FTP programs will allow you to change the user and group assigned to the folders. You can also make this change using Cpanel’s file manager.

The folders should have the same username as your Cpanel account.

Some server environments require you to use 777 permissions for PHP to have write access. This is not secure in a shared hosting environment. You can change your permissions to 777 temporarily to see if that allows you to upload photos but MAKE SURE YOU CHANGE THEM BACK TO 755 WHEN YOUR DONE.

Your hosting provider should also be able to provide help in this situation.

Leave a Comment