Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 12:21 am EST

Geeklog Forums

As expected: Install error message on my second attempt


Daniel

Anonymous
blank
Hi all,
here I am, trying to install GL for the second time, but what do you know? Samo, samo: install hassles Smile
Done everything as per instructions, put content of public_html in public folder, mad folder for the other stuff, edited config and lib-common, chmoded the dir and files, but this is what I get:
---------------
Parse error: parse error, unexpected T_STRING in /home/httpd/vhosts/xxxxx/httpdocs/priv/config.php on line 109

Warning: main(databases/.class.php): failed to open stream: No such file or directory in /home/httpd/vhosts/xxxxx/httpdocs/priv/system/lib-database.php on line 110

Fatal error: main(): Failed opening required 'databases/.class.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/xxxxx/httpdocs/priv/system/lib-database.php on line 110
---------

any ideas?

thanks,
Daniel
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
> Parse error: parse error, unexpected T_STRING in /home/httpd/
> vhosts/xxxxx/httpdocs/priv/config.php on line 109

You have a parse error around line 109 of your config.php file. Watch out for unescaped quotes in strings (escape them with a backslash).
 Quote

Daniel

Anonymous
Quote by Turias: > Parse error: parse error, unexpected T_STRING in /home/httpd/
> vhosts/xxxxx/httpdocs/priv/config.php on line 109

You have a parse error around line 109 of your config.php file. Watch out for unescaped quotes in strings (escape them with a backslash).


Thanks, but I still can't make much sense of the code, where am I to put the / ?

Here's the code around line 109:

-------------------------------
// Note: See the file docs/config.html for more information on the settings.

// +---------------------------------------------------------------------------+
// | OTHER PATH SETTINGS |
// | |
// | All paths must have a trailing slash ('/'). |
// +---------------------------------------------------------------------------+


$_CONF['path_system'] = $_CONF['path'] . 'system/';
$_CONF['path_log'] = $_CONF['path'] . 'logs/'; [THIS IS LINE 109]

$_CONF['path_language'] = $_CONF['path'] . 'language/';
$_CONF['backup_path'] = $_CONF['path'] . 'backups/';

// If you set path_images to something other than the default, you will need to
// make sure that you add the following subdirectories to that directory:
// articles/, userphotos/
$_CONF['path_images'] = $_CONF['path_html'] . 'images/';
-------------------

Thanks again,
Daniel
 Quote

Daniel

Anonymous
ok, I got past that bit. Got to step 3, or whatever -- ready to actually go into the admin part, and I get this error message:

Template Error: set_root: /home/httpd/vhosts/xxxxx/httpdocs/priv/public_html/layout/XSilver is not a directory.
Halted.

So what is it now? I uploaded the files in ASCII (twice) and I can't think what else I can do, apart perhaps from playing around with the paths further down in the config file, but I am a newbie and I will most certainly wreck the whole thing.

Daniel
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
Well, is that path correct? It doesn't look like it, so you have to figure out which path in your config.php file is incorrect and fix it.
 Quote

Daniel

Anonymous
curious
Quote by Turias: Well, is that path correct? It doesn't look like it, so you have to figure out which path in your config.php file is incorrect and fix it.

Would you care to extrapolate? (are you being a smartass or you just can't offer further help from the info I have supplied?)
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
No, I'm not being a smartass.

Your error message said that
/home/httpd/vhosts/xxxxx/httpdocs/priv/public_html/layout/XSilver
is not a directory. Is it? I don't have access to your server, so I can't check for you. In all likelihood, that directory is actually located somewhere else (unless you deleted that theme, in which case you have to change the default theme entry in your config.php file).

Hope that helps.
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
put content of public_html in public folder
my guess is that you did, as you say, put your public files into the public_html folder, but that your $_CONF['path_html'] is pointing to a 'public_html' folder that is located within the 'priv' folder. that would certainly cause your layout error.

This is a path problem no matter how you look at it.
lets say that httpdocs/ is your document root as it should be and that priv/ is your "mad" folder as you put it, your public_html/ is probably gonna be httpdocs/public_html/ rather than httpdocs/priv/public_html/.
so if that is the case then your paths should look like this:
Text Formatted Code
$_CONF['path']              = '/home/httpd/vhosts/xxxxx/httpdocs/priv/';
$_CONF['path_html']         = '/home/httpd/vhosts/xxxxx/httpdocs/public_html/';
$_CONF['site_url']          = 'http://www.yoursite.com';
 
notice on your html path that the $_CONF['path'] is missing--this is because the public_html folder is no longer one dir after your $_CONF['path'] and so, as per instructions, needed to be changed to reflect that.

If this is wrong and your public_html folder is actually within your priv/ dir then the problem is simpler: assuming the doc root is as above and that there is "a" public_html/ folder in that root but that you have chosen to leave your files in the priv/public_html/ dir then your &_CONF['site_url'] needs to reflect that, like this: $_CONF['site_url'] = 'http://www.yoursite.com/public_html'

how's that for longwindednes?
 Quote

Daniel

Anonymous
angelic
Thank you, that's been very helpful. I now actually have GL installed
Thanks again, and sorry if I came accross as being a bit grumpy, couldn't help it with the frustruation I experienced as a newbie trying to make sense of php code and paths, etc. But i have learned much which is another positive.

Now let me show you how I got confused, it might help other newbies:

In config.php, lines 67-74 you have the following default comments and code:

// This should point to the directory where your config.php file resides.
$_CONF['path'] = '/path/to/geeklog/'; // should end in a slash

// You only need to change this if you moved or renamed the public_html
// directory. In that case, you should specify the complete path to the
// directory (i.e. without the $_CONF['path']) like this:
// $_CONF['path_html'] = '/path/to/your/public_html/';
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';

The last line above should be changed so the thing looks like this: (replace the path in the last line with your own)

// This should point to the directory where your config.php file resides.
$_CONF['path'] = '/home/httpd/vhosts/crookdeal.com/httpdocs/nono/'; // should end in a slash

// You only need to change this if you moved or renamed the public_html
// directory. In that case, you should specify the complete path to the
// directory (i.e. without the $_CONF['path']) like this:
// $_CONF['path_html'] = '/path/to/your/public_html/';
$_CONF['path_html'] = '/home/httpd/vhosts/xxxxx.com/httpdocs/';

So, I needed to change the path as above BECAUSE, as the comments suggest, I put the stuff in the public_html folder in the public area of my website.

However, the CONFUSING part for me was the 'public_html/'; with which line 74 ended, and I eventually deleted. If this wasn't there I think I would've got it sooner.

Anyhow, I hope this helps others.

Cheers,
Daniel
 Quote

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