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
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
39
52
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
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
45
35
Quote
g7pkf
Anonymous
same error here did you ever solve it? all my paths look a okay???
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
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
49
35
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
(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
47
40
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
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
46
43
Quote
g7pkf
Anonymous
that worked cheers,
42
40
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.
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.
44
40
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/'; 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
45
41
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?
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?
37
38
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.
52
37
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
$_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
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
46
49
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.
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.
35
40
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
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
39
46
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' );
/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' );
38
46
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
35
41
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 513Fatal 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!
46
38
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
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
45
46
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