coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Goodnight on November 16, 2003, 01:34:56 AM

Title: basedir restrictions
Post by: Goodnight on November 16, 2003, 01:34:56 AM
Hello I get the following error.

I read through this board and find many hints to solve this problem, but this did not work.

The first quote shows you the error message i receive.
The second quote phpinfo()

And the last the first part of my config file. I try to add this line

define('SILLY_SAFE_MODE', 1);

in a lot of ways, because the helping guide is not very precisely.

Now the question where the fault? Or is just the webspace misconfigured?

thankz




QuoteWarning: opendir() [function.opendir]: SAFE MODE Restriction in effect. The script whose uid is 1029 is not allowed to access albums/userpics/pics/pictures/.thumbs/ owned by uid 30 in /home/www/web293/html/bilder/searchnew.php on line 203

Warning: opendir(albums/userpics/pics/pictures/.thumbs/) [function.opendir]: failed to open dir: Success in /home/www/web293/html/bilder/searchnew.php on line 203

Warning: readdir(): supplied argument is not a valid Directory resource in /home/www/web293/html/bilder/searchnew.php on line 204

Warning: closedir(): supplied argument is not a valid Directory resource in /home/www/web293/html/bilder/searchnew.php on line 225



Quotesafe_mode On Off
safe_mode_exec_dir /home/www/empty no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
safe_mode_exec_dir /home/www/empty no value
sql.safe_mode Off Off
disable_functions no value no value
file_uploads On On
include_path .:/usr/share/php .:/usr/share/php
open_basedir /home/www/web293/

Quote<?php
define('SILLY_SAFE_MODE', 1);
// Coppermine configuration file
// Silly safe mode{define('SILLY_SAFE_MODE', 1);
// MySQL configuration

...
db config
[/quote]
Title: basedir restrictions
Post by: Joachim Müller on November 16, 2003, 11:32:02 AM
try uncommenting the line// Silly safe mode{define('SILLY_SAFE_MODE', 1); With two slashes in front of it it's commented out. Remove the slashes, so it readsdefine('SILLY_SAFE_MODE', 1);