22, August 2008

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

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: Problems with Safe-Mode ON: username apache-apache and permissions 600
« previous next »
Pages: [1] Print

Author Topic: Problems with Safe-Mode ON: username apache-apache and permissions 600  (Read 735 times)
Bill Cosby is my Father
*
Posts: 4
28 credits
Members referred : 0


« on: Sep 21, 2007, 01:46:56 AM »

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!
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6300
38626 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Sep 21, 2007, 07:25:12 AM »

what are the permissions for the upload folder?


Last blog : Create custom backups from your website using cURL
Bill Cosby is my Father
*
Posts: 4
28 credits
Members referred : 0


« Reply #2 on: Sep 21, 2007, 03:26:58 PM »

seems problem with safemode on... uploaded files get 600 permissions and user apache-apache...

folder permissions are 777

Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6300
38626 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Sep 21, 2007, 03:30:14 PM »

it's possible that several functions are not compatible with safemode = off

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


Last blog : Create custom backups from your website using cURL
Bill Cosby is my Father
*
Posts: 4
28 credits
Members referred : 0


« Reply #4 on: Sep 21, 2007, 03:31:58 PM »

any suggestions about the hosting?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8020
41077 credits
Members referred : 3



« Reply #5 on: Sep 21, 2007, 03:46:37 PM »

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.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Bill Cosby is my Father
*
Posts: 4
28 credits
Members referred : 0


« Reply #6 on: Sep 21, 2007, 04:06:20 PM »

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
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8020
41077 credits
Members referred : 3



« Reply #7 on: Sep 21, 2007, 04:21:48 PM »

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.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6300
38626 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Sep 21, 2007, 08:44:11 PM »

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)


Last blog : Create custom backups from your website using cURL
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7139
Tags : safemode safe mode permissions apache 600 safe mode on Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: Problems with Safe-Mode ON: username apache-apache and permissions 600
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Aug 22, 2008, 03:43:00 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 36.084
Total Topics: 7.439
Total Members: 3.807
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: marthawelch

30 Guests, 3 Users online :

16 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.