I copied original wp-config.php and saved it above the root. In the root map there is now a wp-config.php with this settings:

define('ABSPATH', dirname(__FILE__) . '/');

This works fine. Everything of the site works. I only get an error message when a plugin update is started.

Warning: unlink(/home/debxxx/security/domain/wp-content/uploads/updraftplus.1.12.25-YS3ytg.tmp): No such file or directory in /home/deb9xxx/domains/domain.com/public_html/wp-admin/includes/file.php on line 505

In this example an error occurred:

while updating UpdraftPlus - Backup/Restore: Download failed. Destination directory for file streaming does not exist or is not writable.

  • /home/debxxx/security/domain.com/wp-config.php >> position above site
  • /home/debxxx/public_html/wp-config.php >> root map of site

How can I solve this so all updatings are still runs without errors and without to move “wp-config.php” to root map back?

ABSPATH = correct mapped

1 Answer 1


Have you set the constants WP_CONTENT_FOLDERNAME and WP_CONTENT_DIR ? If not, that's likely to be your problem.

  • That could shure be the solution If I know how to fill both defines.
    – Hermants
    Commented Nov 23, 2016 at 15:20
  • And in which of the wp-config.php files I have to do this.
    – Hermants
    Commented Nov 23, 2016 at 15:27
  • Sorry I didn't see this previously! The one in the position above the root as I assume that's the active one!
    – Jonny Perl
    Commented Dec 5, 2016 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.