pking123
Member
Posted 1 month ago #
I am occasionally maintaining a blog on an experimental basis at a site off of wordpress, and am wondering why I have to set file permissions to "777" to get anything to work. Isn't that un-secure? I would definitely call it a bug. Is there any way to make the file permissions more sensible?
ClaytonJames
Member
Posted 1 month ago #
There is no bug. Directories are 755, files are 644, with only an occasional and usually temporary exception. Sounds like a server/user setup error.
pking123
Member
Posted 1 month ago #
Is this true for posting and auto-updating plugins on the blog? It seems that my plugins complain about not being able to write to a file until I make it world-writable. In fact, until I did that to all my files, nothing would work.
I have to say that I am not using my own server, but I am using webspace provided by my ISP on their server. The operating system (FreeBSD 1.8.2) sets directories to 755 and files to 644 by default. Assuming the server is set up OK, what should I be checking on my end?
The required files/folders permissions depends on the server configuration. With most of the servers, 755 permissions for folder and 644 permissions for files should be enough.
You may need to give 777 permissions to folders (to upload pics etc.) if your ISP runs PHP as apache (nobody) user.
Kailash