forum.coppermine-gallery.net

Support => Older/other versions => cpg1.1d PHPnuke Support (deprecated) => Topic started by: Jay on September 28, 2003, 06:14:29 am

Title: Install Err: open_basedir restriction & File is in wrong
Post by: Jay on September 28, 2003, 06:14:29 am
Code: [Select]
Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/DFTEAM5.COM/httpdocs/site/modules/coppermine/include/init.inc.php on line 139

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/DFTEAM5.COM/httpdocs/site/modules/coppermine/include/init.inc.php on line 139

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/DFTEAM5.COM/httpdocs/site/modules/coppermine/include/init.inc.php on line 140

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/DFTEAM5.COM/httpdocs/site/modules/coppermine/include/init.inc.php on line 140


Lines 139 & 140
Code: [Select]
include "config.inc.php";
include "functions.inc.php";


Any suggestions?  I uploaded everything to the same file structure as the download.  V1.1D
Title: Install Err: open_basedir restriction & File is in wrong
Post by: Joachim Müller on September 28, 2003, 12:33:39 pm
you probably got a server account with safe_mode (improperly configured) turned on.
Turn debug_mode on in your config for a start.
Check wether safe_mode is turned on using phpinfo().
Try switching on silly_safe_mode...

GauGau
Title: Install Err: open_basedir restriction & File is in wrong
Post by: Jay on September 29, 2003, 06:54:02 pm
link removed
Title: Install Err: open_basedir restriction & File is in wrong
Post by: sigi on September 29, 2003, 07:05:34 pm
mhmm --- in my PhpNuke/Coppermine installation these two line read


include "modules/coppermine/include/config.inc.php";
include "modules/coppermine/include/functions.inc.php";


if they read as you state, the two files will be searched in the root directory , that is, where the index.php of PhpNuke can be found ,,,
Title: Install Err: open_basedir restriction & File is in wrong
Post by: Jay on September 29, 2003, 07:46:12 pm
I believe that fixed it!

Thanks sigi

But, I wonder why the path wasn't right in the first place? Anyways.
Title: How do you get Silly safe mode turned on? In which file pls
Post by: jskog on October 07, 2003, 07:54:21 am
Quote from: "gaugau"
you probably got a server account with safe_mode (improperly configured) turned on.
Turn debug_mode on in your config for a start.
Check wether safe_mode is turned on using phpinfo().
Try switching on silly_safe_mode...

GauGau
Title: Install Err: open_basedir restriction & File is in wrong
Post by: gtroll on October 07, 2003, 09:39:36 am
docs/README.html
Safe mode issues

A significant number of webhost on the Internet run PHP in safe mode. Coppermine runs without any problem in safe mode and with the "open basedir restriction" active, provided safe mode is properly configured. Unfortunately on many hosts, safe mode is not configured properly.

If your webhost is running PHP in safe mode but is misconfigured, you may need to do the following :

With a FTP program, change the mode of Coppermine's "include" directory on your server to 0777.

Do the same for the "albums" and "userpics" directories.

Check that at the beginning the the "include/config.inc.php" file, you have a line with : "define('SILLY_SAFE_MODE', 1);"
Title: open_basedir restriction in effect?
Post by: r3x on November 11, 2003, 01:01:45 pm
I have nuke 6.9 and coppermine 1.1.1D.
It works just fine in the stand alone version like:
http://www.mydomain.cc/modules/coppermine/index.php

But when I hit the link in PhP Nuke 6.9 I get this lines of error:
----------------------------------------------------------------------------------
Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/mydomain.cc/httpdocs/modules/coppermine/index.php on line 20

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/mydomain.cc/httpdocs/modules/coppermine/index.php on line 20

Warning: . File is in wrong directory in /home/httpd/vhosts/mydomain.cc/httpdocs/modules/coppermine/include/init.inc.php on line 132

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/mydomain.cc/httpdocs/modules/coppermine/include/init.inc.php on line 132

Fatal error: Failed opening required 'include/config.inc.php' (include_path='.:/php/includes:/usr/share/php') in /home/httpd/vhosts/mydomain.cc/httpdocs/modules/coppermine/include/init.inc.php on line 132
--------------------------------------------------------------------
On line 20 in the index.php there is this:
require('include/init.inc.php');

This file is in the include dir!

Coppermine use GD version 1X and works just fine as a stand alone, but in PhP Nuke 6.9 I got the errors

Can someone HELP?
Title: SILLY_SAFE_MODE & open_basedir restriction
Post by: gtroll on November 11, 2003, 08:46:58 pm
Great topic title Another nuke 6.9 and coppermine 1.1.1D it's very desciptive of your problem. pardon the cynisism but add  "define('SILLY_SAFE_MODE', 1);" as the first line of your config.inc.php this is a known problem with webhosts with misconfigured safe mode.
Title: Install Err: open_basedir restriction & File is in wrong
Post by: gtroll on November 11, 2003, 08:53:23 pm
are you sure you have 1.1d from coppermine11d.zip
Title: Install Err: open_basedir restriction & File is in wrong
Post by: DJMaze on November 11, 2003, 09:33:11 pm
Cool a phpNuke version of coppermine that also works standalone.
I could never believe that a standalone also works in phpNuke.

Please download the appropiate download file with "cpgnuke" in the name and install it.