Home > OS >  Duplicator folder permissions Linux
Duplicator folder permissions Linux

Time:08-18

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?

CodePudding user response:

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.

  • Related