News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Install Err: open_basedir restriction & File is in wrong

Started by Jay, September 28, 2003, 06:14:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jay

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
include "config.inc.php";
include "functions.inc.php";


Any suggestions?  I uploaded everything to the same file structure as the download.  V1.1D

Joachim Müller

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


sigi

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 ,,,
Siegfried Schlosser

Berlin, Germany

had a big Coppermine gallery with more than 250.000 pics  at
www.allygally.de, but due to juristical problems that is closed now ....
Now trying Coppermine 1.4.x at http://walexis.pytalhost.de/

Jay

I believe that fixed it!

Thanks sigi

But, I wonder why the path wasn't right in the first place? Anyways.

jskog

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

gtroll

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);"

r3x

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?

gtroll

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.


DJMaze

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.
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0