PDA

View Full Version : Automatic file creation problem


htmlx
2004-07-21, 11:51 AM
Folks:

I've got a problem with SuExec.. so I think anyway.
I have a script (exe) that creates images...and it works.. almost. I would like it to create files with rxrx-rx- permissions (755).. but for some reason it creates files with -rw------- permissions.
My question is.. what do I have to do so that it generates files with the 755 permissions.

I am running Apache 2.0.x, on Redhat-FC1, if that matters.

Thanks..

awsolutions
2004-07-22, 23:54 PM
just chown the file via the cgi script when you are done creating it. Also, make sure that the cgi script itself has 777 permissions to do this.

htmlx
2004-07-23, 09:07 AM
If the script was a cgi it would be fine to chmod the file.. but since it's an exe.. it gets to be a wee-bit complicated!


What's even more strange.. if I re-start apache the file permissions are file..until the next restart!


Thanks..

awsolutions
2004-07-23, 10:40 AM
linux or windows?

htmlx
2004-07-23, 10:46 AM
Linux.. FC1 with Plesk.

Do I need to get Plesk Reloaded to get it to work correctly?

Thanks...
-Prashanth

awsolutions
2004-07-23, 10:53 AM
No you do not. That is either a permission issue with plesk or suexec. There are ways around it in any case.

A closer look would definitly be needed before a conclusion could be drawn though.

Also, why 755 and not just 644 permissions?

htmlx
2004-07-23, 11:01 AM
644 would be great!

How would I go about finding out why this is doing what its doing?

Thanks..

awsolutions
2004-07-23, 11:05 AM
Without a closer look I wouldn't be able to really tell you.

Make sure the access for all folders and sub folders is correct and that the program is properly set up and configured.

Try to catch me on aim if you can; advwebsolutions