Moved to Apache suexec with phpsuxec and have a lot of problems

Tiago

Member
Aug 22, 2003
11
0
151
Hi,


I moved to Apache suexec with phpsuxec and now I have a lot of problems with directory permissions:

- Can't upload files with 777 get a Internal Server Error

- Can't right in direcotries with 777


How can I resolve this? :confused:


Thanks
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
You cannot use directory or files permissions if you have phpsuexec enabled - that's one of the security aspects of it. You'll have to work around it or go back to the less secure way of calling php.
 

Tiago

Member
Aug 22, 2003
11
0
151
Thats the only solution?

Its strange because have some domains where uploads work fine...
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
The same as for phpsuexec, the CGI script must be chmod no higher that 755 and the directory that they're within should be no higher than 755.

I don't understand your upload question. You upload files as you always would do, via FTP. IF you still have old files that are owned by nobody:nobody you need to chown them under the root account to user:user instead.
 

Tiago

Member
Aug 22, 2003
11
0
151
Sorry for the confusion.

My problem is with normal upload scripts written in PHP.