Author Topic: open_basedir restriction in effect <--- whyyyyy  (Read 15017 times)

0 Members and 1 Guest are viewing this topic.

Offline OpenGL

  • Newbie
  • *
  • Posts: 15
    • View Profile
open_basedir restriction in effect <--- whyyyyy
« on: March 24, 2003, 04:56:39 AM »
Sorry my english!
In last monday, i loged in AdminCP of 4images as well. But now i got this error:

Quote

Warning: open_basedir restriction in effect. File is in wrong directory in /home/lntsvvn/public_html/gallery/admin/admin_global.php on line 29

Warning: Failed opening './../global.php' for inclusion (include_path='') in /home/lntsvvn/public_html/gallery/admin/admin_global.php on line 29

Warning: open_basedir restriction in effect. File is in wrong directory in /home/lntsvvn/public_html/gallery/admin/admin_global.php on line 30

Fatal error: Failed opening required './../includes/sessions.php' (include_path='') in /home/lntsvvn/public_html/gallery/admin/admin_global.php on line 30


What would i have to do to resolve this problem ?... help meeeeeeeeeeee

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
open_basedir restriction in effect <--- whyyyyy
« Reply #1 on: March 24, 2003, 05:05:52 AM »
From using the search function in these forums for "open_basedir":
http://www.4homepages.de/forum/viewtopic.php?t=2822&highlight=openbasedir

Seems related, perhaps it will help.  :roll:

Offline OpenGL

  • Newbie
  • *
  • Posts: 15
    • View Profile
open_basedir restriction in effect <--- whyyyyy
« Reply #2 on: March 24, 2003, 06:31:32 AM »
I've read that topic, but it dont help me more... cuz i don't familiar with PHP.
Please show me the way to resolve this proplem...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
open_basedir restriction in effect <--- whyyyyy
« Reply #3 on: March 24, 2003, 06:58:57 AM »
I dont think its gonna work, but try this:
open /admin/index.php
find:
Code: [Select]
define('ROOT_PATH', './../');
replace with:
Code: [Select]
define('ROOT_PATH', '/home/lntsvvn/public_html/gallery/');
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
open_basedir restriction in effect <--- whyyyyy
« Reply #4 on: March 24, 2003, 07:22:44 AM »
From http://www.php.net/manual/en/features.safe-mode.php#AEN6100
Quote
open_basedir string
Limit the files that can be opened by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether Safe Mode is turned On or Off.

When a script tries to open a file with, for example, fopen or gzopen, the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it. All symbolic links are resolved, so it's not possible to avoid this restriction with a symlink.

The special value . indicates that the directory in which the script is stored will be used as base-directory.

Under Windows, separate the directories with a semicolon. On all other systems, separate the directories with a colon. As an Apache module, open_basedir paths from parent directories are now automatically inherited.

The restriction specified with open_basedir is actually a prefix, not a directory name. This means that "open_basedir = /dir/incl" also allows access to "/dir/include" and "/dir/incls" if they exist. When you want to restrict access to only the specified directory, end with a slash. For example: "open_basedir = /dir/incl/"

Note: Support for multiple directories was added in 3.0.7.

The default is to allow all files to be opened.

Offline OpenGL

  • Newbie
  • *
  • Posts: 15
    • View Profile
open_basedir restriction in effect <--- whyyyyy
« Reply #5 on: March 24, 2003, 07:38:29 AM »
i did as V@no said, but it dont work....

Should i create file .htaccess and add open_basedir in to that file ?...

I don't know why... i don't modify any thing from last monday uptil now....

Offline my123class

  • Pre-Newbie
  • Posts: 7
    • View Profile
    • http://lop123qh.vze.com
open_basedir restriction in effect <--- whyyyyy
« Reply #6 on: March 24, 2003, 08:32:32 AM »
hiz noway resolve this problems....... I can't access Control panel now.... hiz ..... Chac phai iu cau admin VNT turn off open_basedir qu'a

Offline OpenGL

  • Newbie
  • *
  • Posts: 15
    • View Profile
open_basedir restriction in effect <--- whyyyyy
« Reply #7 on: March 24, 2003, 02:37:47 PM »
Quote
hiz noway resolve this problems....... I can't access Control panel now.... hiz ..... Chac phai iu cau admin VNT turn off open_basedir qu'a


you couldn't login to cpanel ? why, may be your password is incorrect... I still login to cpanel... I got error with open_basedir. Is there any way to resolve it with out asking permission from Admin...

Offline OpenGL

  • Newbie
  • *
  • Posts: 15
    • View Profile
open_basedir restriction in effect <--- whyyyyy
« Reply #8 on: March 25, 2003, 04:57:39 AM »
any one have idea that use file: .htaccess to bypass Open_basedir of PHP ???

Quote
body: /4images/admin/.htaccess

php_value include_path = .:/images:/plugins


is it correct ???

Offline my123class

  • Pre-Newbie
  • Posts: 7
    • View Profile
    • http://lop123qh.vze.com
open_basedir restriction in effect <--- whyyyyy
« Reply #9 on: March 25, 2003, 11:03:22 AM »
hiz......... realy I can't access Control panel (4image)..... many host in our server have a problem like me

here is sample :http://123qhclass.1vn.net/album/admin/index.php

Offline OpenGL

  • Newbie
  • *
  • Posts: 15
    • View Profile
open_basedir restriction in effect <--- whyyyyy
« Reply #10 on: March 27, 2003, 09:01:24 AM »
everybody ???
Help me plzzzzzzzzzzzzzzzzzzzz

Offline my123class

  • Pre-Newbie
  • Posts: 7
    • View Profile
    • http://lop123qh.vze.com
open_basedir restriction in effect <--- whyyyyy
« Reply #11 on: March 27, 2003, 01:31:57 PM »
I Fixed it....... U can find the help at here.... but I write it by vietnamese. And I think U are Vietnamese too he he........

Read it here:
http://123qhclass.1vn.net/forum/index.php?act=ST&f=28&t=226&s=

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
open_basedir restriction in effect <--- whyyyyy
« Reply #12 on: March 27, 2003, 01:49:54 PM »
so, basicaly, u just tells PHP to "SHUT UP!", right? :lol:
Quote
$src = (!@file_exists($media_src) && @file_exists(preg_replace("/\/{2,}/", "/", get_document_root()."/".$media_src))) ? preg_replace("/\/{2,}/", "/", get_document_root()."/".$media_src) : $media_src;
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline OpenGL

  • Newbie
  • *
  • Posts: 15
    • View Profile
open_basedir restriction in effect <--- whyyyyy
« Reply #13 on: March 27, 2003, 02:59:23 PM »
Thanks my123class... i think its a good idea in our free host... :) I can do it myself...

just tell PHP "SHUT UP", :( :( :(

Although Thanks V@no.

Offline my123class

  • Pre-Newbie
  • Posts: 7
    • View Profile
    • http://lop123qh.vze.com
open_basedir restriction in effect <--- whyyyyy
« Reply #14 on: March 28, 2003, 05:25:53 AM »
Thanks V@no too..........  :D  :D  :D  :D