Posted on: 05/26/06 07:15am
By: Anonymous (Cragsterboy)
ok when im installing geeklog, i click next to go on to the second page and i get this error!
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/path/to/geeklog/system/databases/mysql.class.php) is not within the allowed path(s): (/home/hangout/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/hangout/public_html/crag/geeklog/system/lib-database.php on line 117
Warning: require_once(/path/to/geeklog/system/databases/mysql.class.php) [function.require-once]: failed to open stream: Operation not permitted in /home/hangout/public_html/crag/geeklog/system/lib-database.php on line 117
Fatal error: require_once() [function.require]: Failed opening required '/path/to/geeklog/system/databases/mysql.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hangout/public_html/crag/geeklog/system/lib-database.php on line 117
Can u help me please?
Help lil probelm
Posted on: 05/26/06 09:11am
By: Robin
[QUOTE BY= Cragsterboy] Can u help me please?[/QUOTE]
Hopefuly
There are two files where you're supposed to specify the path to config.php:
1. config.php
// This should point to the directory where your config.php file resides.
$_CONF['path'] = '/path/to/geeklog/'; // should end in a slash
2. lib-common.php
* Make sure to include the name of the config file,
* i.e. the path should end in .../config.php
*/
require_once( '/path/to/geeklog/config.php' );
You cannot leave it as is.
HTH
Robert
Help lil probelm
Posted on: 05/26/06 12:44pm
By: Anonymous (Cragsterboy)
OK done wat u said but it still does it!
i think its got somethig to do with the database
Help lil probelm
Posted on: 05/26/06 01:00pm
By: mevans
The key line to your error message is:
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/path/to/geeklog/system/databases/mysql.class.php) is not within the allowed path(s):
You (or your hosting provider) is running PHP with
open_basedir restriction. This basically limits what directories a PHP script can open files. Here is the blurb from php.net about it...
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.
You will need to contact your hosting provider and ask them to include your Geeklog directories in the list, or to turn off the restriction for you site.
Hope this helps!
Mark