Daniel
Daniel

Reputation: 1114

Error: Destination folder is not writable

Error when trying to upload image in Symphony

Destination folder is not writable. Please check permissions on /workspace/images/x

I changed the ownership of "x" directory to apache:apache, even gave it 777 and still get the error.

Website was created and tested in VM, and we were able to upload other images in the same section before moving to the live version. I have tried to upload the same 120kb image that worked before.

EDIT: The similar happens if I try to create page with Blueprints>Pages I get

Page Template could not be written to disk. Please check permissions on /workspace/pages

In addition, on login I get a message

The Symphony configuration file, /manifest/config.php, is not writable

All those files are owned by apache and have 664 and directories 775

Symphony was installed by saving sql from phpmyadmin of local symphony installation and importing it into live server's database; then running /install

Upvotes: 1

Views: 5152

Answers (2)

corretge
corretge

Reputation: 1759

Check if in your production system is enforced with SELinux

sestatus -v

If you have it enabled, you must add your writeable folder to the httpd_sys_rw_content_t context.

check the Allowing ReadWrite Access section in http://www.serverlab.ca/tutorials/linux/web-servers-linux/configuring-selinux-policies-for-apache-web-servers/

Upvotes: 1

David Oliver
David Oliver

Reputation: 2502

  1. Check that the user running PHP (apache?) also has permissions to change into each of the directories above the 'x' directory: images, workspace, etc.
  2. Check that there are no ACLs on the 'x' directory that prevent writing by the relevant user.
  3. Look into SELinux if it's enabled. (I don't have anything to offer on this point but apparently it can prevent writing to directories that have been moved in from somewhere else.

Upvotes: 0

Related Questions