coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: Citaro on December 05, 2005, 01:29:13 AM

Title: "SAFE MODE Restriction in effect" on instalattion
Post by: Citaro on December 05, 2005, 01:29:13 AM
When I put the link of install.php in my browser to install coppermine gallery 1.4.2, I got the error message: "Warning: is_dir() [function.is-dir]: SAFE MODE Restriction in effect. The script whose uid/gid is 10903/20000 is not allowed to access /web/sites owned by uid/gid 90/90 in /web/sites/mydomain.com/coppermine/install.php on line 21". What can I do ?
Title: Re: "SAFE MODE Restriction in effect" on instalattion
Post by: kegobeer on December 05, 2005, 05:07:30 AM
Read the FAQ:

http://coppermine.sourceforge.net/faq.php#commonPHPerrors
Title: Re: "SAFE MODE Restriction in effect" on instalattion
Post by: Citaro on December 09, 2005, 03:38:29 AM
Oks;

There it says: "Try switching silly_safe_mode on."

But, where I can make this?  ???
Title: Re: "SAFE MODE Restriction in effect" on instalattion
Post by: Joachim Müller on December 09, 2005, 09:28:01 AM
RTFM: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#safe
Title: Re: "SAFE MODE Restriction in effect" on instalattion
Post by: Citaro on December 11, 2005, 04:58:13 AM
The arquive "config.inc.php" doesn´t exist in the include folder. Is "config.inc.php.sample". How I make ?
Title: Re: "SAFE MODE Restriction in effect" on instalattion
Post by: Tranz on December 11, 2005, 05:06:13 AM
Make a copy of the sample file and rename it to config.inc.php. Then make the changes to the file as above, along with the mysql settings.
Title: Re: "SAFE MODE Restriction in effect" on instalattion
Post by: Citaro on December 11, 2005, 06:02:09 AM
The indicated folders are with permissions 777. And I renamed the file to config.php.inc and I included the line in this way, but the error persists. :(

<?php
define('SILLY_SAFE_MODE', 1);
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your databaseserver
$CONFIG['dbuser'] =                         'root';        // Your mysql username
$CONFIG['dbpass'] =                         '';                // Your mysql password
$CONFIG['dbname'] =                         'coppermine';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg132_';
?>
Title: Re: "SAFE MODE Restriction in effect" on instalattion
Post by: Joachim Müller on December 11, 2005, 03:54:34 PM
you have to enter your actual mysql data into the file. You can't make this up - you have to know it. Ask your webhost for support.
Title: Re: "SAFE MODE Restriction in effect" on instalattion
Post by: Citaro on December 11, 2005, 06:03:45 PM
Yes, I already entered correctly with the data in the fields server, user, pass and database...  still yes the error of the first post persists !
I tried to continue with the same installation with the error. I arrived to finish the installation and configuration of the gallery. I created category, album and uploaded a directory with photos. But when I go to insert the photos or to have access the index of the gallery, I always have a blank page !  :'(
Title: Re: "SAFE MODE Restriction in effect" on instalattion
Post by: Joachim Müller on December 11, 2005, 07:54:46 PM
Quote from: GauGau on December 11, 2005, 03:54:34 PM
Ask your webhost for support.
Title: Re: "SAFE MODE Restriction in effect" on instalattion
Post by: Citaro on December 12, 2005, 05:44:36 AM
Oks. The gallery works now ! I have problems with my conecction too. But now it´s ok. Thanks for all.  ;)
Title: Re: "SAFE MODE Restriction in effect" on instalattion
Post by: Citaro on December 17, 2005, 12:16:29 AM
Editing the "install.php" and removing the function (is_dir), the installation it proceeded without problems. Safe_mode error don't appears. Even the login, that's ok, but the index page is always it´s shown blank screen. All the others pages(login, admin, albmgr...) and photos open correcty. What it has in the index.php that makes with that the server doesn't obtain to show it? Very strange...  :(
Title: Re: "SAFE MODE Restriction in effect" on instalattion
Post by: Nibbler on December 17, 2005, 12:20:54 AM
You already got an answer to that question on your other thread. Please respect the one question per thread rule.
Title: Re: "SAFE MODE Restriction in effect" on instalattion
Post by: Citaro on December 17, 2005, 03:20:47 AM
Alright, can delete me. No problem.