PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Installs and Upgrade - vBulletin 3.0.X (http://www.photopost.com/forum/installs-upgrade-vbulletin-3-0-x/)
-   -   [RC1] Safe Mode? (http://www.photopost.com/forum/installs-upgrade-vbulletin-3-0-x/116910-rc1-safe-mode.html)

Kirby December 9th, 2004 10:15 PM

[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)

Brian December 9th, 2004 10:45 PM

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?

Kirby December 9th, 2004 10:53 PM

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.

Brian December 9th, 2004 10:56 PM

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. :)

Kirby December 9th, 2004 11:25 PM

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.


All times are GMT -5. The time now is 11:21 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97