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 ?
Read the FAQ:
http://coppermine.sourceforge.net/faq.php#commonPHPerrors
Oks;
There it says: "Try switching silly_safe_mode on."
But, where I can make this? ???
RTFM: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#safe
The arquive "config.inc.php" doesn´t exist in the include folder. Is "config.inc.php.sample". How I make ?
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.
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_';
?>
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.
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 ! :'(
Oks. The gallery works now ! I have problems with my conecction too. But now it´s ok. Thanks for all. ;)
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... :(
You already got an answer to that question on your other thread. Please respect the one question per thread rule.
Alright, can delete me. No problem.