Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 07:08 am EST

Geeklog Forums

Pathname issues driving me nuts


Stephan

Anonymous
angry
Can someone please tell me what this means??? No matter how I specify the pathname/s (relative or full), I keep getting these kindof errors. The files are present where they should be. I know I'm missig something obvious but can't figure out what!!!

Warning: main(): open_basedir restriction in effect. File(/sys/config.php) is not within the allowed path(s):

Warning: main(/sys/config.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/digtersvryheid.za.net/httpdocs/lib-common.php on line 137

Fatal error: main(): Failed opening required '/sys/config.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/digtersvryheid.za.net/httpdocs/lib-common.php on line 137
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Installing Geeklog requires that you edit config.php to setup various parameters and that you modify lib-common.php to point directly to config.php using an absolute path. The only other absolute path you need is for $_CONF['path']. If you had to move public_html to a directory other than at the same level as system and plugins, you will have to use an absolute path in $_CONF['path_html'].

Your error indicates that you probably did not modify lib-common.php correctly. Find the line "require_once ('/path/to/geeklog/config.php');" and replace /path/to/geeklog with the absolute path to config.php.

Of you continue to have errors, look for the path FAQ in the FAQs link on the left under support.
 Quote

Status: offline

Brittany

Forum User
Newbie
Registered: 11/17/06
Posts: 7
Can somebody help me with a similar problem?

heres my error

Warning: main(portal/config.php): failed to open stream: No such file or directory in /home/content/k/9/z/k9zambi/html/portal/lib-common.php on line 69

Fatal error: main(): Failed opening required 'portal/config.php' (include_path='.:/usr/local/lib/php') in /home/content/k/9/z/k9zambi/html/portal/lib-common.php on line 69

I do not have a program that gives me the lines so I do not know what I need to edit.

I deleted the folder /public_html/ (Unless if that was a mistake?!?!??!) but I did not delete the files... they're all in my portal folder.. How can I get GL to work?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Brittany: Fatal error: main(): Failed opening required 'portal/config.php' (include_path='.:/usr/local/lib/php') in /home/content/k/9/z/k9zambi/html/portal/lib-common.php on line 69

I do not have a program that gives me the lines so I do not know what I need to edit.

I deleted the folder /public_html/ (Unless if that was a mistake?!?!??!) but I did not delete the files... they're all in my portal folder.. How can I get GL to work?

Even Notepad has a "go to line" function ...

Line 69 in lib-common.php is the line where you include the config.php. Make sure you're using the complete path there. It looks like you only have 'portal/config.php' there, while it should really be '/home/content/k/9/z/k9zambi/html/portal/config.php'

Having said that: lib-common.php and config.php should never be in the same directory - that's an insecure setup. I know that some auto installers do it that way, but it's plain wrong.

See Installing Geeklog entirely within the web root for a better way to do it if you can't place files outside of your webroot.

bye, Dirk
 Quote

Status: offline

Brittany

Forum User
Newbie
Registered: 11/17/06
Posts: 7
Hi there Dirk thanks for the help but now I have another problem...

I'm recieving

Parse error: parse error, unexpected '/' in /home/content/k/9/z/k9zambi/html/portal/lib-common.php on line 69

I do not have windows I'm currently viewing the lib-common.php on Openoffice.com writer on Ubuntu Dapper... I know it has nothing to do with GL but if you can show me how to access the go to line function I would appeceriate it alot.
 Quote

Status: offline

Brittany

Forum User
Newbie
Registered: 11/17/06
Posts: 7
Ok I seem to found away to get the line number to show up on another program... and have now fixed the problem... now I get the error:

Parse error: parse error, unexpected T_STRING in /home/content/k/9/z/k9zambi/html/portal/lib-common.php on line 74

and on line 74 is

// Before we do anything else, check to ensure site is enabled

Line 74: if( isset( $_CONF['site_enabled'] ) && !$_CONF['site_enabled'] )
{
if( empty( $_CONF['site_disabled_msg'] ))
{
echo $_CONF['site_name'] . ' is temporarily down. Please check back soon';
}
else
{
// if the msg starts with http: assume it's a URL we should redirect to
if( preg_match( "/^(https?):/", $_CONF['site_disabled_msg'] ) === 1 )
{
echo COM_refresh( $_CONF['site_disabled_msg'] );
}
else
{
echo $_CONF['site_disabled_msg'];
}
}

exit;
I do not know what to put down... Can you help me Dirk?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I'd suggest you try using another editor, as the one you're using right now seems to be confused by the PHP code. Start over with a fresh copy of lib-common.php. You should really only have to change that one line (to include config.php) in that file.

Also see http://www.geeklog.net/docs/install.html#corrupted

bye, Dirk
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Actually "unexpected T_STRING" or similar errors are usually caused by missing or unescaped quote marks. I suspect the include on line 69 lacked the closing quote mark. But Dirk is right, better to start with a clean lib-common.php then to try to find the stray quote.
 Quote

All times are EST. The time is now 07:08 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