Support » Plugins » wp-db-backup and safe_mode

  • Hi everybody,

    Is there a way to make wp-db-backup works in safe_mode ? On my host provider, the PHP script run under apache owner but the script was created under my own user. Results: the backup file cannot be created since the UIDs are different.

    Is there any work-arounds ?


Viewing 1 replies (of 1 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    The backup files are created in subdirectories off the wp-content directory. So that location needs to have the right permissions to allow the apache user to make a directory of its own there.

    Alternatively, if you read the wp-backup.php file’s code, right at the top you can change the backup location to somewhere that you can write to. Look at this line:
    define('WP_BACKUP_DIR', 'wp-content/backup-' . $rand);

    That’s telling it to use wp-content/backup-(randomnumber) as the place to save the backup. Change it to something that will work in your server config.

Viewing 1 replies (of 1 total)
  • The topic ‘wp-db-backup and safe_mode’ is closed to new replies.