coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: lucidart on April 23, 2004, 06:28:08 PM

Title: [Solved]: SAFE MODE restriction still in effect after defining SILLY_SAFE_MODE
Post by: lucidart on April 23, 2004, 06:28:08 PM
Let me start by saying I love Coppermine and this support forum has been a very useful source of information for me over the last several months!

My host "upgraded" their servers last night and this morning the following issue has appeared in my batch add screen:

Warning: opendir(): SAFE MODE Restriction in effect. The script whose uid is 10186 is not allowed to access albums/userpics/dummy/ owned by uid 48 in /home/httpd/vhosts/dawnmeson.com/httpdocs/searchnew.php on line 203


Warning: opendir(albums/userpics/dummy/): failed to open dir: Success in /home/httpd/vhosts/dawnmeson.com/httpdocs/searchnew.php on line 203


Warning: readdir(): supplied argument is not a valid Directory resource in /home/httpd/vhosts/dawnmeson.com/httpdocs/searchnew.php on line 204


Warning: closedir(): supplied argument is not a valid Directory resource in /home/httpd/vhosts/dawnmeson.com/httpdocs/searchnew.php on line 225



I have checked the read/write permissions on the include, album, userpics, and dummy directories and all are set to 777. SILLY_SAFE_MODE is on in my phpinclude file.  Does anyone have another suggestion as to what I should try for troubleshooting? The problem appears to affect the way images are resized using gd.

Thanks much for any assistance. :-\
Title: Re: SAFE MODE restriction still in effect after defining SILLY_SAFE_MODE
Post by: Casper on April 23, 2004, 08:42:37 PM
Your best bet is to email your hosts.  They always say upgrades are painless, but they can get bits wrong, or take days to add in the bits they had on the old server.
Hopefully, an email should get it sorted.
Title: Re: SAFE MODE restriction still in effect after defining SILLY_SAFE_MODE
Post by: Joachim Müller on April 24, 2004, 12:39:04 PM
seems to me like they rather "downgraded" your webspace by upgrading to a newer version of php together with enabling safe mode. Did you have safe mode before? I guess not... If your webhost doesn't react, I suggest you take a look at the silly_safe_mode settings - refer to the documentation: http://coppermine.sourceforge.net/manual.php#safe

GauGau
Title: Re: SAFE MODE restriction still in effect after defining SILLY_SAFE_MODE
Post by: lucidart on April 28, 2004, 05:42:09 PM
Thanks for the responses, Casper & GauGau...

After several days of back and forth with my hosting service, it turns out that 2 issues were apparently causing the problem(s). First, during the host's php installation the directories in question were assigned to the main server admin user, causing safe mode conflicts. They changed those username assignations which fixed the script errors I referenced earlier.
The image resize/GD issue I mentioned turned out to be occurring because GD2x apparently didn't get installed(!) during the initial upgrade. That, too, has now been fixed and all is running smoothly again...  :D

 http://www.dawnmeson.com