skip to Main Content

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: duplicator permission error

My www folder permissions are : drwxrwxrwx 3 root www-data 4096.

My html folder permissions are: drwxrwxrwx 7 www-data www-data 4096.

My dup-installer folder permissions are: drwxrwxrwx 8 www-data www-data 4096.

And finally, my main.installer.php file permissions are: -rw-rw-r-- 1 www-data www-data 20437.

It all looks correct but I don’t understand why I’m getting the error when I visit the installer. Is there something wrong with my permissions?

2

Answers


  1. Chosen as BEST ANSWER

    It turns out I had to execute [website-hush-information]_installer-backup.php which sits one level before the dup-installer folder.

    I was trying to execute the main.installer.php inside dup-installer based on previous experience with this plugin, but in this version, this was not needed.

    Thanks for the help @JP-LISN, it pointed me in to the correct direction by the process of elimination.


  2. Currently, your permissions are fully open on your www directory. That shouldn’t be like that, most files should not be world writable.

    you should change this to 755 via this command:
    sudo chmod -R 755 /var/www

    Note, use the correct path to your www directory if it isn’t correct for you.

    regarding your missing CSRF (Cross-Site Request Forgery) file, this is probably because your copy didn’t have the correct priv to copy it. Might look on the original server to see if you can grab it and move it over.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search