This is driving me crazy- can anyone please help

Where is this temp directory?
I have made tmp and this module folder 777 permissions

* Your temporary directory is not writable. Backup and migrate needs to be able to create temporary files.
* The file /backup_migrate_4a8ef241d6f43.mysql cannot be written to.
* Could not backup the database.

Thanks

Comments

ronan’s picture

Your temp directory is set at: admin/settings/file-system
On most systems the directory should be /tmp but check with your host if that doesn't work.

DO NOT and I emphasize DO NOT set the module directory to 777. Set it back right now and don't set any directories with executable code in them to be writable.

Hope this helps

iaminawe’s picture

Thank you. I didnt change permissions on my whole module folder, just on the backup migrate module. I have changed them back now, Thanks.

I checked and my module folder is 755. Is that ok?

Thanks for the help
Gregg

ronan’s picture

Status: Active » Fixed

Yup that should be fine.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gstout’s picture

FYI: Your temp directory can be changed at admin/settings/file-system.

When I migrated from local development to my webserver using "Backup and Migrate" my tmp was still set to "c:/blah/blah/tmp"
a quick change of the Temporary directory: to /sites/default/files/tmp
fixed this issue for me.

Hope this helps.
Greg

jebernier’s picture

My tmp directory is set to sites/default/files/tmp but the box around tmp is red, what does this mean?

The permissions for /tmp are 0755.

I keep getting the "Your temporary directory is not writable" error.

Any assistance would be appreciated.

Regards,

John

ronan’s picture

@jebernier Is your temp directory owned by the user that your web server runs as? If not you may need to add group write (775) or everybody write (777) access to that folder (these come with risks, so consult your web host for help).

jebernier’s picture

Thanks, I'll check with my host. I have another site on the host and the module works fine on that site.