MyBB Community Forums
Failed to open stream: Permission denied - Line: - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Failed to open stream: Permission denied - Line: (/thread-207312.html)



Failed to open stream: Permission denied - Line: - VIPMinecraft - 2017-01-10

I get this message and I heard I need to set permissions to 644. How do I change it?
Here is a screenshot: http://i.imgur.com/jFUu3Vd.png

I cannot upload other plugins because it says Failed to open stream: Permission denied - Line:


Which file do I set permissions to 644 please?


RE: Failed to open stream: Permission denied - Line: - s3_gunzel - 2017-01-11

anon_rep.php

The path to it is in the former part of that error line.


RE: Failed to open stream: Permission denied - Line: - VIPMinecraft - 2017-01-11

I fixed it thanks by the following command on putty: s udo chm od 0777 -R /var /www


RE: Failed to open stream: Permission denied - Line: - s3_gunzel - 2017-01-11

(2017-01-11, 01:18 AM)VIPMinecraft Wrote: I fixed it thanks by the following  command on putty: s udo chm od 0777 -R /var /www

CHMOD it all back to 644. CHMOD 777 is asking for trouble.

If you're still getting permission errors, CHOWN www-data:www-data -R /var/www

Don't chmod 777.


RE: Failed to open stream: Permission denied - Line: - Matt - 2017-01-11

You definitely don't want the entire file system to be 777. By default, folders should be 755 and files should be 644. Only a few folders and files need anything more than this, the issue you had was the permissions seemed to be more restrictive than usual, all you needed to do was change it back to the default, not grant all permissions to absolutely everything.


RE: Failed to open stream: Permission denied - Line: - VIPMinecraft - 2017-01-15

(2017-01-11, 12:41 PM)Matt Wrote: You definitely don't want the entire file system to be 777. By default, folders should be 755 and files should be 644. Only a few folders and files need anything more than this, the issue you had was the permissions seemed to be more restrictive than usual, all you needed to do was change it back to the default, not grant all permissions to absolutely everything.

So how do I fix it back cause now my forums is all open