• ghina1

    (@ghina1)


    I hosted my wordpress site on AWS clould linux -bitnami server.

    the root directory is htdocs.
    the server user called bitnami, and the apache group called daemon.

    I want to know what is the correct permission to give it to wordpress files and directories??
    the bitnami support team give my these commands to run it:

    sudo chown -R bitnami:daemon /opt/bitnami/apache2/htdocs
    sudo chmod -R g+w /opt/bitnami/apache2/htdocs
    sudo chmod 644 /opt/bitnami/apache2/htdocs/wp-config.php

    but I think it’s not secure to give apache group (deamon) the ownership of all file right?

    I tried to run these command from my side as i think it’s more secure to just give apache (deamon) to be the group owner and give it write access on wp-content directory:

    sudo chown -R bitnami:bitnami /opt/bitnami/apache2/htdocs
    sudo chown -R bitnami:daemon /opt/bitnami/apache2/htdocs/wp-content
    sudo chmod -R g+w /opt/bitnami/apache2/htdocs/wp-content
    sudo chmod 644 /opt/bitnami/apache2/htdocs/wp-config.php

    what do you think ???

    please advise

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wordpress files permmissions’ is closed to new replies.