Title: CSRF file not found
Last modified: August 17, 2022

---

# CSRF file not found

 *  Resolved [nikosdev](https://wordpress.org/support/users/nikosdev/)
 * (@nikosdev)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/csrf-file-not-found/)
 * Hi,
 * I am trying to migrate a WordPress site using the Duplicator plugin. I have created
   an ec2 instance on AWS, installed Apache and copied over the files from the Duplicator
   backup to `/var/www/html/`.
 * When I visit the site on the browser going to **myip/dup-installer/main.installer.
   php** I get the following error:
    CSRF FILE NOT FOUND Please, check webroot file
   permission and dup-installer folder permission.
 * My **www** folder permissions are : `drwxr-xr-x` 3 root www-data 4096.
 * My **html** folder permissions are: `drwxr-xr-x` 7 www-data www-data 4096.
 * My **dup-installer** folder permissions are: `drwxr-xr-x` 8 www-data www-data
   4096.
 * And finally, my **main.installer.php** file permissions are: `-rwxr-xr-x` 1 www-
   data www-data 20437.
 * I was told that I might be missing the **dup-installer-csrf__[ package hash ].
   txt** file from within my **dup-installer** folder. Is that possible? Since all
   the files I got are what Duplicator has generated?
    -  This topic was modified 3 years, 9 months ago by [nikosdev](https://wordpress.org/support/users/nikosdev/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/csrf-file-not-found/#post-15930359)
 * Hey [@nikosdev](https://wordpress.org/support/users/nikosdev/)
 * Thanks for the feedback! That is correct if the dup-installer-csrf__[ package
   hash ].txt is not present then the installer will not run correctly. The PHP 
   process that apache or your web server runs under will need to be able to write
   to the /dup-installer/ directory. You might check with your host about what perms
   you really need.
 * If you are still having issues after that feel free to submit a [support ticket](https://snapcreek.com/ticket)
   for this issue so we can have a closer look at your setup. Please provide a link
   to this forum thread when submitting the ticket.
 * Hope this helps~
 *  Thread Starter [nikosdev](https://wordpress.org/support/users/nikosdev/)
 * (@nikosdev)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/csrf-file-not-found/#post-15936045)
 * Hi Cory,
 * Thanks for replying. I had to execute `[website-hush-information]_installer-backup.
   php` which is in one folder before `dup-install` to initiate the installation.
 * I hope this helps someone else in the future.
 * Thanks,
    Nikos
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/csrf-file-not-found/#post-15939350)
 * Thanks for the update!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘CSRF file not found’ is closed to new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/csrf-file-not-found/#post-15939350)
 * Status: resolved