Hi erwin,
It's highly recommended to set only your user and http server user write access. So please do not set write permission to others.
chmod has option -R which sets permission recursively. chown also.
Quick guide:
1. Change owner of all your installation files to your user and group to http server.
chown -R <your user>:<http user> <epesi installation dir>
eg.
chown -R erwin:apache /var/www/my_epesi
please use correct user names
2. Change permission of all files in epesi dir.
a) I recommend to remove all permissions to be sure that no security hole is left.
b) Give yourself and group write, read, and execute of dirs (you can enter them)
according to chmod specification this can be easily done in one command
chmod -R a=,ug+rwX <epesi installation dir>
a set of operations is performed on every file and dir
a) at first: "a=" set exactly(=) no permission (nothing after "=")
comma to separate operations
b) second: add(plus sign) for user(owner) and group (ug) read, write and dirs execute permission(rwX)
Good luck,
Adam