Saving document on the server

I have form which saves document on the server. The form is setup to create specific folder, but when I run it it generates and eerror saying “Cannot create folder”.
I suspect it is a matter of permissions but since I have variable folders, how can I setup a permissions for the App to be able to create folders ? This is all on the shared (Linux server).
I created folder manually, setup permissions to 755 and it works, but still the APP cannot create a new one.

Jena

What user is Apache (or other web server) running under on the shared server?

If possible, give your web server rights to create folders.

Also try to set a root directory with the correct rights and create your subdirectory within this root. I think that that should work.

I do not have direct access to Apache (neither I know how to configure it). I can only work with local files. This is hosted on shared server (I think running CentOS + Apache + MySQL). The root folder for the project is sett to 755 permissions (including subdirectories and files) so I really don’t know what else or how to do it. I suspect that setting rights for the user and setting rights for Application is not the same thing, that is why it is not working. It seems that there is not enough credentials to perform some operations.

The PHPH mkdir() function has parameters and one of them is permissions. I wonder if SC sets up those permissions correctly when the call to the function is made from the form.

One other question I have is:
say I have my projects in folder /ABC/
then subsequent apps are in folders /ABC/X , /ABC/Y, ABC/Z … etc
Is it enough if I set permissions for ABC folder to 755 (including subfolders) ? Do I need to do anything else ?

Jena

hi Jenam you can give the permissions by CPANEL user interface or by console connnecting by SSH you can use putty or another SSH client.

Just in case talk to your hosting provider.

I’ve some apps in shared servers and only is setting up the appropiate permissions and that you have done the correct configuration on the application.