Support » Plugin: Online Backup for WordPress » Backups Failing – Issue with /tmp

  • Backups had been working fine but now I receive the following. My /tmp folder has access rights that should allow updating. What is SAFE MODE restriction? Is this something my host implemented and how do I get around this?

    23rd Apr 2013 3.05.07 PM Error A filesystem operation failed while processing ‘Database/OBFW_Database.sql’ for backup.
    If the following error message is not clear as to the problem and the issue persists, please contact support providing the complete event log for the activity. Diagnostic information follows:

    Failed at: 304(/vservers/c148299-h219070/htdocs/wp-content/plugins/wponlinebackup/include/tables.php)
    An error happened at: compressor_deflate.php(300)
    tempnam(): SAFE MODE Restriction in effect. The script whose uid is 360014 is not allowed to access /tmp owned by uid 0

    http://wordpress.org/extend/plugins/wponlinebackup/

Viewing 1 replies (of 1 total)
  • Plugin Author Online Backup

    (@driskell)

    Hi mslovak,

    Safe mode is a very old security mechanism in PHP. It is used by server hosts who were unable to properly secure their shared hosting. PHP themselves no longer recommend or support it and it is been removed from recent versions of PHP, since it is not considered a good thing.

    Anyway, you can fix this by making your own TMP dir.
    Best thing to do is find wp-content/plugins/wponlinebackup/tmp/ and make this folder password protected using your host’s control panel, so nobody can download from it.

    Then go to General Settings in our plugin. In the URL you will see at the end:
    &section=settings
    Change this to:
    &section=advanced

    In this mysterious page, you can modify “gzip_tmp_dir” by ticking the box, and then changing the path. If you look at the value for “local_tmp_dir” it should point the full path to your wp-content/plugins/wponlinebackup/tmp/. Just copy this path into gzip_tmp_dir.

    Just be sure to password protect that folder if you can. Future versions of the plugin will likely stop using /tmp completely and the password protection bit will be optional. For now this is the best workaround and the best way to keep the backups secure.

    Regards,

    Jason

Viewing 1 replies (of 1 total)
  • The topic ‘Backups Failing – Issue with /tmp’ is closed to new replies.