I frequently come across issues where my website is not allowed to make a change to a file, or write to a file. The issue basically comes down to file permissions. Normally, the files will have user:user and group:user permissions. Apache will normally be running as something else, in many cases, "nobody".
Enter suPHP. suPHP is a tool for executing PHP scripts with the permissions of their owners. This fixes everything! Well, not quite. Now, if you happened to give a file or folder 777 permissions, you're screwed. But, then again, you shouldn't be doing that anyways. Remember, 755 for directories, and 644 for files!
Kategori: Programming