Manual :: Installation ::
File Permissions
Link: http://manual.b2evolution.net/Directory_and_file_permissions
[NL]
This page applies to b2evo 0.9
When you upload files to your webserver by FTP, those files are saved on the server with some specific access permissions. Typically, everyone will be able to "read" the files and subdirectories, that is view them through the webserver, but only you and you alone (when you log into the FTP server) will be able to "write' to these files/subdirectories and modify them.
For some specific actions, b2evolution will need to modify some of its files. b2evo will also need to write new files when you use b2evo to upload an image or generate a static .html file. The problem is: b2evo is not you. More specifically: the PHP process that runs b2evo is not you!
Thus you will most likely need to change the permissions on some files and subdirectories in order to allow b2evo to write there and perform the requested actions.
Note: on somehosts, the default permissions already allow your scripts (b2evo in this cse) to change your files on your account. So you can try b2evo without changing any file permission and come back here only if you get a file permission error.
Most webservers runs some variant of UNIX. On these systems, file permissions can be changed via chmod. If you're not familiar with UNIX file permissions and chmod, check out A quick and dirty chmod Tutorial. If your server is running Windows you probably don't need to change anything.
You can change permissions on files/folder either with an FTP client program (like Filezilla), a Unix shell or a web file manager like the one built into cPanel.
What files/subdirectories do need specific permissions?
Let's assume your b2evo is installed under /blogs. Here's what you need to change:
- chmod 666 /blogs/conf/_config.php if you want the installer to be able to automatically update your config based on your input.
- chmod 777 /blogs to allow creation of blog stub files from the admin interface or to generate static pages for your blogs.
- chmod 777 /blogs/media in order to upload images and other media from b2evo's backoffice.
- chmod 666 /blogs/skins/custom/* if you want to use the template editor for the custom skin.