Welcome to Geeklog, Anonymous Tuesday, December 10 2024 @ 04:23 pm EST

Geeklog Forums

Warning: open_basedir restriction in effect

Page navigation


Patrick

Anonymous
Can someone help me with the error below?

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/casinoceo.com/httpdocs/admin/install/install.php on line 513

Fatal error: Failed opening required '/home/httpd/vhosts/casinoceo.com/system/classes/template.class.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/casinoceo.com/httpdocs/admin/install/install.php on line 513
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Hmm, assuming you entered /home/httpd/vhosts/casinoceo.com/ as your "path to Geeklog", I can't see anything obviously wrong.

Geeklog usually works with the open_basedir restrictions in effect, as long as you've got your paths right.

Is it possible that your hosting service does not allow you to have files outside of the "httpdocs" directory?

bye, Dirk
 Quote

g7pkf

Anonymous
same error here did you ever solve it? all my paths look a okay??? Cry Cry

e-smith

Warning: open_basedir restriction in effect. File is in wrong directory in /home/e-smith/files/ibays/Primary/html/admin/install/install.php on line 513

Fatal error: Failed opening required '/opt/geeklog-1.3.8-1sr3/system/classes/template.class.php' (include_path='.:/usr/share/php') in /home/e-smith/files/ibays/Primary/html/admin/install/install.php on line 513
 Quote

g7pkf

Anonymous
reinstalled geeklog, still no joy-even put into seperate directory as i suspected cgi-bin, why does it have the bit
(include_path='.:/usr/share/php') in the error there is nothing at this location?

Warning: open_basedir restriction in effect. File is in wrong directory in /home/e-smith/files/ibays/geeklog/html/admin/install/install.php on line 513

Fatal error: Failed opening required '/opt/geeklog-1.3.8-1sr3/system/classes/template.class.php' (include_path='.:/usr/share/php') in /home/e-smith/files/ibays/geeklog/html/admin/install/install.php on line 513
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
It looks like you entered "/opt/geeklog-1.3.8-1sr3" as your "path to Geeklog". Is that the correct path?

It looks like your webserver (or rather the open_basedir restriction in PHP) doesn't like that path, so you'll either have to put the files somewhere else of maybe there is another path to the same directory (e.g. through a symlink). I would assume that your webserver is configured such that it would prefer to have all files below /home/e-smith.

The "(include_path='.:/usr/share/php')" bit is only PHP telling you where else it looked for the file.

bye, Dirk
 Quote

g7pkf

Anonymous
that worked cheers,
 Quote

Robert

Anonymous
I got much the same error message.....

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/domains/config.php) is not within the allowed path(s): (/var/www/domains/rmdesign.com/) in /var/www/domains/rmdesign.com/myadminwas/install/install.php on line 80

The "public_html" folder is named "www" I am beginning to understand this must be a 'sym link' but I am still confused as to how to specify to a folder that is above. Obviously it isn't /var/www/domains/rmdesign.com/www/

So even after rtfm, this bbs and google, I still don't know how to point outside of the public space, which means both config.php and lib-common.php preferences are wrong. Hopefully that explains the error message above.

If having files outside there isnt allowed by the hosting co., is it acceptable from a security standpoint to move all geeklog files to within the public area, but then use htaccess to protect them? Any advice appreciated. thanks.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Robert: The "public_html" folder is named "www" I am beginning to understand this must be a 'sym link'

No need for a symlink. Usually, simply copying everything from Geeklog's public_html folder into your www directory and changing $_CONF['path_html'] to read
Text Formatted Code
$_CONF['path_html'] = $_CONF['path'] . 'www/';
 
should have the desired effect.

Quote by Robert: If having files outside there isnt allowed by the hosting co., is it acceptable from a security standpoint to move all geeklog files to within the public area, but then use htaccess to protect them? Any advice appreciated. thanks.

Having the files outside of the document root is always the better solution. For example, my hosting service accidentally disabled .htaccess files once, in which case such a directory would be world-readable again. Under normal circumstances, it should be safe, though.

bye, Dirk
 Quote

Grotesnor

Anonymous
I am having similar problems. The error message:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/httpd/vhosts/mysite.com/config.php) is not within the allowed path(s): (/home/httpd/vhosts/mysite.com/httpdocs) in /home/httpd/vhosts/mysite.com/httpdocs/admin/install/install.php on line 80

My public_html folder is 'httpdocs' and this is where I placed all the geeklog public_html files. Changing $_CONF['path_html'] to $_CONF['path'] . 'httpdocs/'; didn't do anything. I am lost here. Any advice?
 Quote

Status: offline

Grotesnor

Forum User
Newbie
Registered: 01/15/04
Posts: 4
To add to my previous posting, my config.php is in a folder 'geekfiles' below 'httpdocs' because my provider doesn't allow me to create folders above it. I have tried different paths in config.php and lib-common.php but with no result sofar. These path issues are getting pretty confusing now.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Going by the error messages and the way you describe things, it looks like you should have
Text Formatted Code
$_CONF['path'] = '/home/httpd/vhosts/mysite.com/httpdocs/geekfiles/';

$_CONF['path_html'] = '/home/httpd/vhosts/mysite.com/httpdocs/';
 

I.e. in this case, it's better to set the path_html variable as an absolute path directly.

bye, Dirk
 Quote

Status: offline

Grotesnor

Forum User
Newbie
Registered: 01/15/04
Posts: 4
Thanks for your quick reply. But unfortunately I haven't had any succes. I have tried different paths, in fact, I think I have tried every possible combination. I'm beginning to think my provider doesn't allow me to use paths in this way.

I'm confused as to which path the error message refers to. I've changed the path in lib-common.php and in config.php as well.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
When you call up the install script (without doing anything) it will display a "hint" at the bottom of the page. Can you quote what it says there?

The error message you quoted above makes it pretty clear that the server is set up such that it expects everything to be below /home/httpd/vhosts/mysite.com/httpdocs, so if both the path and path_html variables start with this path, you should be fine.

bye, Dirk
 Quote

Status: offline

Grotesnor

Forum User
Newbie
Registered: 01/15/04
Posts: 4
The hint at the bottom of the page is:
/home/httpd/vhosts/mysite.com/httpdocs/admin/install/install.php.
The paths in my config.php and lib-common.php are respectively:
$_CONF['path'] = '/home/httpd/vhosts/mysite.com/httpdocs/geekfiles/'; (where my config.php file resides),
$_CONF['path_html'] = $_CONF['path'] . '/home/httpd/vhosts/mysite.com/httpdocs/'; (where my public_html files are) and
require_once( '/home/httpd/vhosts/mysite.com/httpdocs/geekfiles/config.php' );
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Your $_CONF['path'] looks fine, but you should leave out the $_CONF['path'] when setting the $_CONF['path_html'] (see my other post above).

bye, Dirk
 Quote

Status: offline

Grotesnor

Forum User
Newbie
Registered: 01/15/04
Posts: 4
confused
You were right, my mistake. But I still get the same result. I'm almost ready to give up. Maybe this just isn't going to work. Thanks for your time anyway.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Grotesnor: But I still get the same result. I'm almost ready to give up. Maybe this just isn't going to work.

Hmm, that would be the first time that someone did not get Geeklog to work with open_basedir restrictions in effect. So I'd like to know why it doesn't work.

Have you tried contacting your hosting service? I'd send them the error message you get and ask them what a valid path should look like.

bye, Dirk
 Quote

Status: offline

vadertech

Forum User
Full Member
Registered: 05/26/03
Posts: 329
nevermind Oops!
GeekLog Hosting, Installations and Upgrades - WWW.AWEHOST.COM - Hosting starts @ only $4.95/mo.
 Quote

Mitch

Anonymous
Text Formatted Code
Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/mydomain.com/httpdocs/admin/install/install.php on line 513

Fatal error: Failed opening required '/home/httpd/vhosts/mydomain.com/system/classes/template.class.php' (include_path='.:/usr/share/pear:/php/includes:/usr/share/php') in /home/httpd/vhosts/mydomain.com/httpdocs/admin/install/install.php on line 513
 


I am having the same issue and am really confused... I have been trying to install Geeklog for hours now. Please offer some advice!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
It looks like your hosting service doesn't want you to have files in the /home/httpd/vhosts/mydomain.com directory.

Often when open_basedir restrictions are in effect, it tells you where you are allowed to put files (as in the case of the poster above). However, in your case it doesn't do that, so I'd suggest asking your hosting service for advice.

If all else fails, you could put the files that normally reside outside of public_html into a password-protected folder inside of public_html, but the way you tried it is the preferred one.

bye, Dirk
 Quote

Page navigation

All times are EST. The time is now 04:23 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content