Questions about file permissions

[ad_1]

From what I know so far, folders should have permissions set to 755, and files should be set to 644. Is this correct?

But who should be the owner of the root directory? Should it be root, the user (me), or www-data?

It's confusing because many articles never mention the owner, but some say it should be Apache.

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer