Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 07:18 am EST
Geeklog Forums
Why ME?
Speechless
Anonymous
i keep getting this error when installing:
Can some one give me a decent answer? i know it is the $_CONF['path'] but why? A full exlpain answer and how to overcome the situation for me would be nice.
Warning: main(): open_basedir restriction in effect. File(/public_html/system/databases/mysql.class.php) is not within the allowed path(s): (/home/foreverg:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/foreverg/system/lib-database.php on line 114
Warning: main(/public_html/system/databases/mysql.class.php): failed to open stream: Operation not permitted in /home/foreverg/system/lib-database.php on line 114
Fatal error: main(): Failed opening required '/public_html/system/databases/mysql.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/loginib') in /home/foreverg/system/lib-database.php on line 114
Warning: main(/public_html/system/databases/mysql.class.php): failed to open stream: Operation not permitted in /home/foreverg/system/lib-database.php on line 114
Fatal error: main(): Failed opening required '/public_html/system/databases/mysql.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/loginib') in /home/foreverg/system/lib-database.php on line 114
Can some one give me a decent answer? i know it is the $_CONF['path'] but why? A full exlpain answer and how to overcome the situation for me would be nice.
13
11
Quote
Status: offline
ajzz
Forum User
Regular Poster
Registered: 01/19/05
Posts: 113
Look at the php.ini - your site would work if there is no open_basedir restriction there.
It looks like the path to system/databases is not included in the path specified in php.ini. PHP cannot access anything outside the specified basedir/s if this restriction is under affect. Please modify accordingly
good luck,
Ajay
It looks like the path to system/databases is not included in the path specified in php.ini. PHP cannot access anything outside the specified basedir/s if this restriction is under affect. Please modify accordingly
good luck,
Ajay
10
11
Quote
Speechless
Anonymous
Now i got this:
Warning: main(): open_basedir restriction in effect. File(/public_html/system/databases/mysql.class.php) is not within the allowed path(s): (/home/foreverg:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/foreverg/public_html/system/lib-database.php on line 114
Warning: main(/public_html/system/databases/mysql.class.php): failed to open stream: Operation not permitted in /home/foreverg/public_html/system/lib-database.php on line 114
Fatal error: main(): Failed opening required '/public_html/system/databases/mysql.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/loginib') in /home/foreverg/public_html/system/lib-database.php on line 114
Wht should i Do?
Warning: main(): open_basedir restriction in effect. File(/public_html/system/databases/mysql.class.php) is not within the allowed path(s): (/home/foreverg:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/foreverg/public_html/system/lib-database.php on line 114
Warning: main(/public_html/system/databases/mysql.class.php): failed to open stream: Operation not permitted in /home/foreverg/public_html/system/lib-database.php on line 114
Fatal error: main(): Failed opening required '/public_html/system/databases/mysql.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/loginib') in /home/foreverg/public_html/system/lib-database.php on line 114
Wht should i Do?
13
10
Quote
Status: offline
vadertech
Forum User
Full Member
Registered: 05/26/03
Posts: 329
Does your $_CONF['path'] line read as the following?
$_CONF['path'] = '/home/foreverg/'; // should end in a slash
GeekLog Hosting, Installations and Upgrades - WWW.AWEHOST.COM - Hosting starts @ only $4.95/mo.
$_CONF['path'] = '/home/foreverg/'; // should end in a slash
GeekLog Hosting, Installations and Upgrades - WWW.AWEHOST.COM - Hosting starts @ only $4.95/mo.
14
15
Quote
Status: offline
ajzz
Forum User
Regular Poster
Registered: 01/19/05
Posts: 113
As the error message says, only files in the following directories can be executed by PHP
/usr/lib/php
/usr/local/lib/php
and
/tmp
Now it looks like you have put the geeklog core files in
/public_html which is not in any of the above paths and therefore not allowed according to the error message. (If this is not the case, please check where you have put the geeklog core files, for example config.php and tell us what that path is)
Try moving the core files to a subfolder in /home/foreverg/ for example /home/foreverg/geeklog-1.xxx .
In case /home/foreverg is readable through a URL by the rest of the world (ie the web directory = this is bad), put the geeklog core files in a non-web readable directory in the list above that still allows php execution for example /usr/local/lib/php/geeklog-1.xxx .
Hope that helps,
Ajay
[edit: could you please write to us where you have put the core files and the web-readable files? the feeling i get from the error is that there may be some issue there.
Also dont forget to change the paths in config.php and lib-common.php after making these changes]
Text Formatted Code
/home/foreverg/usr/lib/php
/usr/local/lib/php
and
/tmp
Now it looks like you have put the geeklog core files in
/public_html which is not in any of the above paths and therefore not allowed according to the error message. (If this is not the case, please check where you have put the geeklog core files, for example config.php and tell us what that path is)
Try moving the core files to a subfolder in /home/foreverg/ for example /home/foreverg/geeklog-1.xxx .
In case /home/foreverg is readable through a URL by the rest of the world (ie the web directory = this is bad), put the geeklog core files in a non-web readable directory in the list above that still allows php execution for example /usr/local/lib/php/geeklog-1.xxx .
Hope that helps,
Ajay
[edit: could you please write to us where you have put the core files and the web-readable files? the feeling i get from the error is that there may be some issue there.
Also dont forget to change the paths in config.php and lib-common.php after making these changes]
14
14
Quote
Speechless
Anonymous
whats worst: 117 or 114?
Which is closer to fix the problem?
Well i am confuse but i try to give u more info:
- my hosing is using cpanel
- i am uploading using an ftp client
When i am log in i see:
.cpanel.database
.trash
mail
public_ftp
public_html
tmp
www
- my core files are in the public_html folder
I think i am starting to get it....
Which is closer to fix the problem?
Well i am confuse but i try to give u more info:
- my hosing is using cpanel
- i am uploading using an ftp client
When i am log in i see:
.cpanel.database
.trash
public_ftp
public_html
tmp
www
- my core files are in the public_html folder
I think i am starting to get it....
10
12
Quote
Status: offline
vadertech
Forum User
Full Member
Registered: 05/26/03
Posts: 329
If your host is using cpanel, you will not have access to anything beyond your /home/foreverg directory.
I always use this structure..
/home/foreverg/public_html/geeklog files/...
your root folder should show:
.cpanel.database
.trash
backups
data
language
logs
mail
plugins
public_ftp
public_html
sql
system
tmp
tmp
www
config.php
emailgeeklogstories
config.php should show:
$_CONF['path'] = '/home/foreverg/'; // should end in a slash
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';
// you shouldn't need to edit theses
$_CONF['path_system'] = $_CONF['path'] . 'system/';
$_CONF['path_log'] = $_CONF['path'] . 'logs/';
$_CONF['path_language'] = $_CONF['path'] . 'language/';
$_CONF['backup_path'] = $_CONF['path'] . 'backups/';
$_CONF['path_data'] = $_CONF['path'] . 'data/';
$_CONF['path_images'] = $_CONF['path_html'] . 'images/';
GeekLog Hosting, Installations and Upgrades - WWW.AWEHOST.COM - Hosting starts @ only $4.95/mo.
I always use this structure..
/home/foreverg/public_html/geeklog files/...
your root folder should show:
.cpanel.database
.trash
backups
data
language
logs
plugins
public_ftp
public_html
sql
system
tmp
tmp
www
config.php
emailgeeklogstories
config.php should show:
$_CONF['path'] = '/home/foreverg/'; // should end in a slash
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';
// you shouldn't need to edit theses
$_CONF['path_system'] = $_CONF['path'] . 'system/';
$_CONF['path_log'] = $_CONF['path'] . 'logs/';
$_CONF['path_language'] = $_CONF['path'] . 'language/';
$_CONF['backup_path'] = $_CONF['path'] . 'backups/';
$_CONF['path_data'] = $_CONF['path'] . 'data/';
$_CONF['path_images'] = $_CONF['path_html'] . 'images/';
GeekLog Hosting, Installations and Upgrades - WWW.AWEHOST.COM - Hosting starts @ only $4.95/mo.
16
9
Quote
Speechless
Anonymous
thanks a lot vadertech
if i get it up, then i will become a meember here. {i always have trouble installing, after i am sailling the ocean blue}
I am going to try it right away, if i have trouble i will come back
if i get it up, then i will become a meember here. {i always have trouble installing, after i am sailling the ocean blue}
I am going to try it right away, if i have trouble i will come back
9
12
Quote
All times are EST. The time is now 07:18 am.
- 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