Home Forums Web Development What is the best file permission option for the wordpress?

  • What is the best file permission option for the wordpress?

    Posted by Sarath Mn on December 5, 2024 at 1:39 pm

    What is the best file permission option for the wordpress?

    Ashiq replied 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Ashiq

    Administrator
    December 21, 2024 at 5:06 pm

    For WordPress, use the following file permissions:

    Set files to 644 so the owner can read and write, and others can only read

    Set folders to 755 to allow the owner to read, write, and execute, while others can only read and execute.

    For wp-config.php, use 444 or 444 to restrict access to the owner since it contains sensitive information

    Make sure the files are owned by the account running the web server, such as www-data for Apache.

    This setup keeps your site secure and functional.

    • This reply was modified 1 month ago by  Ashiq.
    • This reply was modified 2 weeks, 4 days ago by  Akhil Dev.
    • This reply was modified 2 weeks, 4 days ago by  Akhil Dev.

Log in to reply.

Start of Discussion
1 of 1 replies December 2024
Now