Gossamer Forum
Home : Products : Links 2.0 : Discussions :

nph_build.cgi Problem

Quote Reply
nph_build.cgi Problem
Hi,
When I tried to build pages, I got an error saying it couldn't find index.html page in "pages" directory, I thought only files in there are background.gif and style.css.
According to intallation instructions, we don't need to create index.html page in the directory where the pages will be built, right? But the "build all" link will do it for us.
Someone please help
Thank you very much

Quote Reply
Re: nph_build.cgi Problem In reply to
Yes...but you have to set the permissions of the folders you configured in the links.cfg file (like links/pages, links/pages/New, links/pages/Ratings, links/pages/Cool).

All these folders need to be set to 777. Read the README file again...there is a section that explicitly outlines what permissions you need to set before building your directory.

Also, there is an FAQ in the Resources section that address ALL the file and directory permissions,

And this type of Thread should be posted in the Links 2.0 Installation - X forum depending on your operating system.

Regards,

Eliot Lee
Quote Reply
Re: nph_build.cgi Problem In reply to
Sorry for posting to the wrong place.

I chmode "pages" directory to 777, I'm using CuteFTP so I can re-check again and again all the CHMODE for all files and directories correctly.
Right now, my pages directories don't have other directories like New, Ratings, or Cool, I thought the build function will do it for us.
Is there anything else I can do to make it work
Please help. Thanks a lot


Quote Reply
Re: nph_build.cgi Problem In reply to
BTW, my program stop at the first process of building index.html page of pages directory
Thank you

Quote Reply
Re: nph_build.cgi Problem In reply to
You have to MANUALLY create those other directories before building your directory.

Double check the permissions of the pages directory and double check the configurations in the links.cfg file. Make sure you have the correct ABSOLUTE paths set in the *_path variables and also the correct URLs in the *_url variables.

Good luck!

Regards,

Eliot Lee
Quote Reply
Re: nph_build.cgi Problem In reply to
Please take a look here
http://www.coolasians.net/cgi-bin/links/admin/admin.cgi
my pages directory is weblinks
I just created other directories under weblinks, and chmod all of them again including weblinks to 777, but still....didin't work...Thank you
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/usr/local/plesk/apache/vhosts/coolasians.net/cgi-bin/links/admin";
$db_dir_url = "http://www.coolasians.net/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/usr/local/plesk/apache/vhosts/coolasians.net/weblinks";
$build_root_url = "http://www.coolasians.net/weblinks";

# 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: nph_build.cgi Problem In reply to
Welp...I would recommend creating a blank file called index.html in your "weblinks" directory.

Regards,

Eliot Lee
Quote Reply
Re: nph_build.cgi Problem In reply to
Tried that, still doesn't work :(

Quote Reply
Re: nph_build.cgi Problem In reply to
What is the error you are getting?

The same as before?

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: nph_build.cgi Problem In reply to
Think I know why its not working. Looking at the error page the script is looking for the page at

/usr/local/plesk/apache/vhosts/coolasians.net/weblinks

but, the error bit suggests to me that it should be;

/usr/local/plesk/apache/vhosts/coolasians.net/httpdocs/weblinks

Try setting the PATH in links.cfg for the pages to this, and then see if that works!!!

Hope this helps

Andy


http://www.ace-installer.com
webmaster@Ace-installer.com
Quote Reply
Re: nph_build.cgi Problem In reply to
Yes that is correct Andy......

The error always gives the correct path so those who get errors should compare the path they are using with the path the error message gives.



Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: nph_build.cgi Problem In reply to
What can I say? You guys da BOMB...
Thanx for all your help.

Cheers