Ubuntu – How to fix a permissions problem on www folder

Apache2permissionswebserver

I have created a directory in my www folder using terminal and root user.
Then, create some text files in that folder (with terminal and root user).

Now, when I want to access these files and directory via browser, Apache said:

403 Forbidden. You don't have permission to access /folder on this server.

Other files and folders in www directory are accessible via browser (I uploaded them via FTP client).

How can this be fixed?

Best Answer

run this command in the terminal after navigating to www folder:

    sudo chmod 755 *