WordPress Error ! failed to open stream: Permission denied

Solution:1

Above answers are right , it looks like permission error.

For running WordPress correctly permission should be as below

All directories should be 755 All files should be 644

You also need to check ownership and group as well.

Ownership of file may depends on which server you are using , for example ubantu should have owner/group = apache/apache

You can easily change permission by using below command .

sudo chown -R username:group directory

will change ownership (both user and group) of all files and directories inside of directory and directory itself.

Solution:2

It could be also a permission problem:

  • All directories should be 755 or 750.
  • All files should be 644 or 640.

try this, or visit URL 1URL 2

Hope this will help you.