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.