PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old December 9th, 2004, 10:15 PM   #1 (permalink)
Member
 
Join Date: Jun 2004
Posts: 164
[RC1] Safe Mode?

Seems like I can't upload images at all ...

Quote:
Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid is 646 is not allowed to access /var/www/web10/html/gallery/files/2 owned by uid 48 in /var/www/web10/html/gallery/upload.php on line 84

Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid is 646 is not allowed to access /var/www/web10/html/gallery/files/2 owned by uid 48 in /var/www/web10/html/gallery/upload.php on line 84

Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid is 646 is not allowed to access /var/www/web10/html/gallery/files/2 owned by uid 48 in /var/www/web10/html/gallery/upload.php on line 84
That is, after removing the @ from mkdir() in upload.php.

Any ideas?
(Turning off Safe Mode unfortunately is not an option)
Kirby is offline   Reply With Quote
Old December 9th, 2004, 10:45 PM   #2 (permalink)
Brian
Guest
 
Posts: n/a
Re: [RC1] Safe Mode?

Would you mind submitting a support ticket so I can have a look myself and see if I can find a workaround?
  Reply With Quote
Old December 9th, 2004, 10:53 PM   #3 (permalink)
Member
 
Join Date: Jun 2004
Posts: 164
Re: [RC1] Safe Mode?

I can ... but you won't give me support as the files are modified

But I think this is a general problem.
If I am right, you are storing the files in gallery/files/u/s/e/r/i/d

Directory files is owned by me and chmodded ugo+rw, so all fine here.
Now, the first call of mkdir() creates directory 'u', which is then being owned by user apache.
So any further calls to create directories s,e,r,i,d will fail if safe mode is turned on.
Kirby is offline   Reply With Quote
Old December 9th, 2004, 10:56 PM   #4 (permalink)
Brian
Guest
 
Posts: n/a
Re: [RC1] Safe Mode?

Quote:
Originally Posted by Kirby
I can ... but you won't give me support as the files are modified
That's fine. If it can't create the folders then it's obvious that's not a problem caused by your modifications.
  Reply With Quote
Old December 9th, 2004, 11:25 PM   #5 (permalink)
Member
 
Join Date: Jun 2004
Posts: 164
Re: [RC1] Safe Mode?

php_admin_value safe_mode Off for just my account fixed the problem

As tehere are other users too I didn't want to globally turn off safe mode, but this way it's just fine.
Kirby is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Safe Mode Gliderstyle Classifieds Installation & Upgrades 1 October 25th, 2005 09:01 AM
Safe Mode Question WB General Discussion 5 February 8th, 2005 01:58 PM
Safe Mode Off - am I screwed? NW_Jim Photopost Pro Installation & Upgrades 5 January 7th, 2005 06:06 PM
Safe Mode Michael Blake Before You Buy 2 September 20th, 2004 05:26 AM


All times are GMT -5. The time now is 02:50 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0