Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

cannot see the output on my site

Quote Reply
cannot see the output on my site
I installed links2 without problems, but now from the administration page :
1) I cannot reach my home page ( get a 404 error)
2) I can add categories and delete them, but I dont'know how to see the output on my site.

Quote Reply
Re: cannot see the output on my site In reply to
Hi

Check your settings in links.cfg

This section

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/alex/links/pages";
$build_root_url = "http://localhost/links/pages";

it would appear that you have this misconfigured, if you are getting no errors on the build, then they are there somewhere,

you are using the build function?

Good Luck

DavyC

Quote Reply
Re: cannot see the output on my site In reply to
It seems I configured it right, but I don't have any directory named "pages".
There are many things I don't understand in this script.
What Alex stands for, for example.
I see a button named build? But what is it for? There are no explanations.

Quote Reply
Re: cannot see the output on my site In reply to
Have you changed links.cfg to reflect the system you have tried to install Links on? From your comments, you don't seem to have grasped the concept of absolute paths and URLs completely. For instance, Alex is the author of Links 2.0 and his name appears in the path as an illustration only. The link called build builds your pages based on the database entries. Tongue

Have you installed any other CGI/Perl scripts successfully?

Martin Webster
--
Cebidae's UK Internet Resource
http://www.cebidae.co.uk/
Quote Reply
Re: cannot see the output on my site In reply to
LINKS has been easily installed at my first try and is working fine.
The problem is that I'm in the administrator menu and I don't know how to place a directory in my home page. Should I know html editing to do that?



Quote Reply
Re: cannot see the output on my site In reply to
I have the same exact same problem he/she is having.
Can anyone help us?

Here is my Links.cfg(I have tryed tons of different paths):



# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/data1/hypermart.net/top40sw//cgi-bin/Links/Admin";
$db_dir_url = "http://server20.hypermart.net/top40sw/cgi-bin/Links/Admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://server20.hypermart.net/cgi-bin/Links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "data1/hypermart.net/top40sw/Build";
$build_root_url = "http://top40sw.hypermart.net/Build";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "data1/hypermart.net/top40sw/cgi-bin/Links/Admin/templates/New";
$build_new_url = "http://server20.hypermart.net/top40sw/cgi-bin/Links/Admin/templates/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "data1/hypermart.net/top40sw/cgi-bin/Links/Admin/templates/Cool";
$build_cool_url = "http://server20.hypermart.net/top40sw/cgi-bin/Links/Admin/templates/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "data1/hypermart.net/top40sw/cgi-bin/Links/Admin/templates/Ratings";
$build_ratings_url = "http://server20.hypermart.net/top40sw/cgi-bin/Links/Admin/templates/Ratings";

# Database Options
# --------------------------------------------------------
# You really need to use flock(). However if your system doesn't support it (Win95),
# then turn this off at your own risk!
$db_use_flock = 1;
# Use Pragma: no-cache to stop browsers from caching output? (0 = cache, 1 = nocache)
$db_nocache = 0;
# Use IIS headers? Set this to 1 if your web server needs the full headers (HTTP/1.0 etc.)
$db_iis = 0;
# Field number of category in category.db
$db_main_category = 1;



I created a directory called "Build" outside of my cgi-bin, and Chmoded it 777. I then added Links.css and background.gif to the directory. I have created 4 categories, and a few links. When I hit the build function in the Admin part, it just shows the result as a blank page.

Any suggestions?

Thanks alot,



Quote Reply
Re: cannot see the output on my site In reply to
Aford,

I'm not sure what you are asking. Links 2.0 will build your home page (index.html) in the directory you configured (links.cfg). Perhaps you could post the URL of your site and the paths.

Darkstar,

There are errors in your links.cfg. For instance, $db_script_path = "/data1/hypermart.net/top40sw//cgi-bin/Links/Admin"; should not have "//" in it!

You have also omitted a leading "/" in some entries. Also, the paths to your ratings page etc. is wrong. This should be off your build directory.

I would hazard a guess and say that your links.cfg should look like this:

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/data1/hypermart.net/top40sw/cgi-bin/links/admin";
$db_dir_url = "http://top40sw.hypermart.net/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://top40sw.hypermart.net/cgi-bin/links";

# PATH and URL of root directory where home page is located. No Trailing Slash.
$build_root_path = /data1/hypermart.net/top40sw/links";
$build_root_url = "http://top40sw.hypermart.net/links";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/new";
$build_new_url = "$build_root_url/new";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/cool";
$build_cool_url = "$build_root_url/cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/ratings";
$build_ratings_url = "$build_root_url/ratings";


Martin Webster
--
Cebidae's UK Internet Resource
http://www.cebidae.co.uk/
Quote Reply
Re: cannot see the output on my site In reply to
OK, I re-did the whole thing, keeping only my links.cfg file. I finally got rid of the white page syndrom. Now everything works, but I get this error.



Links Manager: Building Pages
Building Pages
Pages built on 27-Jul-2000 at 12:16:49
--------------------------------------------------------

Backing up database . . .
Backup exists for today.. Skipping
Done.

Building URL Index . . .
Done.

Updating New and Popular Records . . .
What's New Cutoff: 14 days
Popular Cutoff: 2 hits
Updating record: 3, marking as new.
Done.

Updating ratings ..
Done.

Loading Category Information . . .
Done.

Gathering Category and Link information . . .
Done

Building Home Pages . . .
Subcategories: 1
Total Links: 1
Opening page: data1/hypermart.net/top40sw/Build/index.html

CGI ERROR
==========================================
Error Message : unable to open home page: data1/hypermart.net/top40sw/Build/index.html. Reason: No such file or directory
Script Location : nph-build.cgi
Perl Version : 5.00404

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
AUTH_TYPE : Basic
DOCUMENT_ROOT : /data1/hypermart.net/top40sw
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION : Keep-Alive
HTTP_COOKIE : ssAllowCookie=true; p_go2id=V28XDUgx2RVwZq9U40JwJT
HTTP_HOST : server20.hypermart.net
HTTP_REFERER : http://server20.hypermart.net/top40sw/cgi-bin/Links/Admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
PATH : /usr/local/bin:/usr/bin:/bin
QUERY_STRING :
REMOTE_ADDR : 169.207.141.185
REMOTE_PORT : 1501
REMOTE_USER : top40sw
REQUEST_METHOD : GET
REQUEST_URI : /top40sw/cgi-bin/Links/Admin/nph-build.cgi
SCRIPT_FILENAME : /data1/hypermart.net/top40sw//cgi-bin/Links/Admin/nph-build.cgi
SCRIPT_NAME : /top40sw/cgi-bin/Links/Admin/nph-build.cgi
SCRIPT_URI : http://server20.hypermart.net/top40sw/cgi-bin/Links/Admin/nph-build.cgi
SCRIPT_URL : /top40sw/cgi-bin/Links/Admin/nph-build.cgi
SERVER_ADMIN : webmaster@hypermart.net
SERVER_NAME : server20.hypermart.net
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.1
SERVER_SOFTWARE : Apache/1.3.6 (Unix)


I'm sure this is happening, because I dont have a index.html in my Build directory. Should I make a blank one there? or where does this file come from?
All my permissions are set right. I never had a problem with file permissions. Oh, and the double slash "//" in my path is correct. I didnt think so at first either, but then I used that tester.cgi program and thats what it shows is my path. It works, so I'll just leave it alone. I don't think that is the problem

to see my site config go here:
http://top40sw.hypermart.net



Quote Reply
Re: cannot see the output on my site In reply to
As I suggested earlier, put in the leading "/".

Martin Webster
--
Cebidae's UK Internet Resource
http://www.cebidae.co.uk/
Quote Reply
Re: cannot see the output on my site In reply to
I'm sorry Cebidae, I must have missed that in your last post. I cant believe it was that simple. Thank You!
I now have everything working.Smile

Thanks Again,

Darkstar

Quote Reply
Re: cannot see the output on my site In reply to
Cebidae

I had a look at your answer to Darkstar and at the links.cfg configuration you did for him, I show you mine, it seems path and url of root directory is missing.
Thank you for your help

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/web/sites/fixedideas.com/docs/cgi-bin//links/admin";
$db_dir_url = "http://www.fixedideas.com/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.fixedideas.com/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/web/sites/fixedideas.com/docs/pages";
$build_root_url = "http://fixedideas.com/pages";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";

# Database Options

Quote Reply
Re: cannot see the output on my site In reply to
Aford,

I note that $db_script_path = "/web/sites/fixedideas.com/docs/cgi-bin//links/admin"; has two "/" together. Is this correct?

Also, you don't always prefix the URLs with www. I found your pages at http://fixedideas.com/pages/ but this did not include a link I took the liberty to add (your admin.cgi is not protected at the moment). Try this:

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/web/sites/fixedideas.com/docs/cgi-bin/links/admin";
$db_dir_url = "http://www.fixedideas.com/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.fixedideas.com/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/web/sites/fixedideas.com/docs/pages";
$build_root_url = "http://www.fixedideas.com/pages";


The only thing I'm uncertain about is whether or not your cgi-bin is under docs or not.

So you may want to try this to:

$db_script_path = "/web/sites/fixedideas.com/cgi-bin/links/admin";

You are also mixing case in the categories. ART is not the same as Art.

Martin Webster
--
Cebidae's UK Internet Resource
http://www.cebidae.co.uk/
Quote Reply
Re: cannot see the output on my site In reply to
Cebidae,
Thanks for your help. Now I can see Links on my site.

sebans