Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Install Err: open_basedir restriction & File is in wrong  (Read 26058 times)

0 Members and 1 Guest are viewing this topic.

Jay

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Install Err: open_basedir restriction & File is in wrong
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Install Err: open_basedir restriction & File is in wrong
« Reply #1 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
Logged

Jay

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Install Err: open_basedir restriction & File is in wrong
« Reply #2 on: September 29, 2003, 06:54:02 pm »

link removed
Logged

sigi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • http://www.allygally.de
Install Err: open_basedir restriction & File is in wrong
« Reply #3 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 ,,,
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Install Err: open_basedir restriction & File is in wrong
« Reply #4 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.
Logged

jskog

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
    • http://www.norskog.com
How do you get Silly safe mode turned on? In which file pls
« Reply #5 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
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Install Err: open_basedir restriction & File is in wrong
« Reply #6 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);"

r3x

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
open_basedir restriction in effect?
« Reply #7 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?
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
SILLY_SAFE_MODE & open_basedir restriction
« Reply #8 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.

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Install Err: open_basedir restriction & File is in wrong
« Reply #9 on: November 11, 2003, 08:53:23 pm »

are you sure you have 1.1d from coppermine11d.zip

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
Install Err: open_basedir restriction & File is in wrong
« Reply #10 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.
Logged
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
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 18 queries.