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

Cannot build pages

Quote Reply
Cannot build pages
Can someone please help me, I cant seem to Build Pages. Does anything look wrong?...more on bottom.

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 build pages In reply to
When you click on build does it say it's building. Ie. do you see it saying building whats new etc...?

Good Luck!

Glenn


http://mir.spaceports.com/~glennu/
Quote Reply
Re: Cannot build pages In reply to
It used too.. Now I get just a plain old blank page. Actually its a white page. I was wondering, does the "pages" directory go inside of the cgi-bin or not?
I have been trying everything I can think of. I probably have to go and reset all the permissions.

Quote Reply
Re: Cannot build pages In reply to
Also, Is the path and URL to the pages to be built supposed to end in home.html? or is it fine as is? I am starting the "frustration stage". Soon I'll be beating up my brand new computer! Someone please help me!


# 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";





Quote Reply
Re: Cannot build pages In reply to
So from what you're saying it's building pages but just blank pages?

I would delete all of the directories and pages created by nph-build and then build it again.

Also it probably doesn't make much difference but I wouldn't have my new, cool etc. directories inside my templates folder.

In theory the pages directory could go anywhere (depending on your server) Most people prefer to put it somewhere different to their cgi-bin.

I believe I had a problem with nph-build once and the only way I could get it to build the pages was to build them in the same directory as nph-build. (not an ideal solution but it worked) I think that particular server restricted permissions alot etc... However I think hypermart should be okay. I'd try deleting any directories created by nph-build and then start again.

Good Luck!

Glenn


http://mir.spaceports.com/~glennu/
Quote Reply
Re: Cannot build pages In reply to
Is the path and URL to the pages to be built supposed to end in home.html? or is it fine as is?


It's fine as it is. It's needs to be set to build in a directory which is what you've already put.

Good Luck!

Glenn


http://mir.spaceports.com/~glennu/
Quote Reply
Re: Cannot build pages In reply to
I think I'll just start all over! I'm going to save my links.cfg and just start over. All new permissions, all new directories. Then I'll tell you what happens....
Thanks for the help.

Quote Reply
Re: Cannot build pages In reply to
Here's what your links.cfg should look like:

Code:
# 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://top40sw.hypermart.net/cgi-bin/links/admin";

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

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

# 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";
Quote Reply
Re: Cannot build pages In reply to
I have it working, but thanks for the reply anyway...