• wheresjim

    (@wheresjim)


    I installed Duplicator and when I tried to create my first package, I got the dreaded Permissions > Fail.

    I did the usual search and EVERYTHING that was suggested as a solution was already in place or just plain didn’t work. Permissions on the directories were 755. The owner of the directories was apache. httpd was running as root, so it should be able to write wherever it wants.

    Then I determined that this is indeed a problem that was likely not specific to Duplicator, that PHP couldn’t write to these directories, so I did a little searching and I found this little gem:

    https://stackoverflow.com/questions/28856148/centos-7-apache-php-mkdir-permission-denied

    SELinux was disabled but it was still causing problems. I have to say that I really hate SELinux even more now.

    Anyway, all you have to do is this and it will work:

    sudo chcon -R -t httpd_sys_content_rw_t /var/www/public
    sudo chcon -R -t httpd_sys_content_rw_t /var/www/public/wp-snapshots
    sudo chcon -R -t httpd_sys_content_rw_t /var/www/public/wp-snapshots/tmp
  • The topic ‘[Duplicator] I managed to fix the permissions problem on Redhat 7’ is closed to new replies.