Sublime directory Surf the web anonymous Pagerank Monitor


Problems with Safe-Mode ON: username apache-apache and permissions 600

Markos
Fri 21 September 2007, 12:46 am GMT +0200
I was using File upload v2.20 in one of my sites without problems.

Recently my hosting provider changed the server machine and activated the Safe Mode ON  in the PHP.

Now the files uploaded have username apache-apache and permissions 600.

this is a big problem because i have to change permissions manually later..

Is there any newer version, or patch, of the script that supports Safe Mode on?

Thanks for any help!

olaf
Fri 21 September 2007, 06:25 am GMT +0200
what are the permissions for the upload folder?

Markos
Fri 21 September 2007, 02:26 pm GMT +0200
seems problem with safemode on... uploaded files get 600 permissions and user apache-apache...

folder permissions are 777


olaf
Fri 21 September 2007, 02:30 pm GMT +0200
it's possible that several functions are not compatible with safemode = off

never tested on a system with this setting (get a real host) ;)

Markos
Fri 21 September 2007, 02:31 pm GMT +0200
any suggestions about the hosting?

Nikolas
Fri 21 September 2007, 02:46 pm GMT +0200
Even if the problem is safe mode you would get an error. Do you get any errors?

I believe it should write to a 777 folder anyway.

Markos
Fri 21 September 2007, 03:06 pm GMT +0200
Even if the problem is safe mode you would get an error. Do you get any errors?

I believe it should write to a 777 folder anyway.

It do uploads the pictures, no errors

 But uploaded files get 600 permissions and file owner apache-apache

This is a problem later when I have to handle files with other scripts like a thumbnail generator that get
no permissions to do it!
The script whose uid is 16017 is not allowed to access /www/110mb.com/g/m/s/_/_/_/_/_/gms/htdocs/albums/coll_de_pal owned by uid 2001

Nikolas
Fri 21 September 2007, 03:21 pm GMT +0200
Apache works as user apache, so the script you run should be the actual owner of any file in the web server and it should write to it.

Tell your hosting company about it, it is probably a problem of their setup.

olaf
Fri 21 September 2007, 07:44 pm GMT +0200
I think his hosting partner has given the wrong permissions, I have a reseller account with similar problems. Try to create the folders with php (and never change them)

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional