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

Installation Help

Quote Reply
Installation Help
I know that this would have been asked millions of times before, but I can't find the answer easly sorry.

Below I have copied part of my admin.cgi. I can't get it to work.

When I telent to my site and use the PWD command I get

/usr/home/sidecarworld/ as a responce. What should the liines below then read please?

# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/www/sidecarworld.com/links2/cgi-bin/admin";
$db_dir_url = "http://www.sidecarworld.com/links2/cgi-bin/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/www/sidecarworld.com/links2/pages";
$build_root_url = "http://www.sidecarworld.com/links2/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
# --------------------------------------------------------
# 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;
# Referers -- which hosts are allowed to add to your database.
@db_referers = ();

# Email Options
# --------------------------------------------------------
# NOTE: Be sure to edit the text of the message. It can be found
# in the templates directory: email-add.txt, email-del.txt and
# email-mod.txt respectively.

# Set only ONE of either $db_mail_path which should go to a
# mail program like sendmail, or $db_smtp_server which will use
# a SMTP server. Do not set both at once!

# PATH of sendmail. # SMTP Server
$db_mail_path = '/usr/sbin/sendmail'; $db_smtp_server = '';



Quote Reply
Re: Installation Help In reply to
Change the following codes:

Code:

$db_script_path = "/www/sidecarworld.com/links2/cgi-bin/admin";


to the following codes:

Code:

$db_script_path = "/usr/home/sidecarworld/cgi-bin/links2/admin";


Note: Make sure you have all your files in the correct directory based on this new configuration.

Then change the following codes:

Code:

$build_root_path = "/www/sidecarworld.com/links2/pages";


to the following codes:

Code:

$build_root_path = "/usr/home/sidecarworld/links2/pages";


And in your admin.cgi file, make sure you are using the following require codes for the links.cfg file:

Code:

require "/usr/home/sidecarworld/cgi-bin/links2/admin/links.cfg";


Regards,

Eliot Lee
Quote Reply
Re: Installation Help In reply to
Ok Ok Here is where the real confessions start to surface.

The reason I moved the installation into the links2 directory and made everything else a sub directory of that directory, is that I have never been able to get anything working as a sub directory of cgi-bin directory.

Does matter what I do, change it to 777, 755 666 nothing seems to make a difference in relation to getting programs to operate or sub directories visable under cgi-bin dir.

I know that this will make all of you laugh, but some of us are on a steep learning curve here!

So my real problem is knowing how to get programs in cgi-bin and anything in a sub directory under that - operational?

Thanks in advance for any help here.


AnthroRules I totally undersand that when you read this you may reach for the shape knife in your top draw and stab me repeatedly. I have got other scripts working fine:
http://www.sidecarworld.com/forums/forums.shtml
http://www.sidecarworld.com/s601/top.cgi

But I did these without using the cgi-bin directory, directly.

Sorry for being a time waster. Once I understand how I to get the cgi-bin directory "operational" for these scripts, I can sit down and painfully get these things to run.

Gary


Quote Reply
Re: Installation Help In reply to
In Reply To:
Ok Ok Here is where the real confessions start to surface.
Do you mean confusion rather than confessions???

Wink


In Reply To:
Does matter what I do, change it to 777, 755 666 nothing seems to make a difference in relation to getting programs to operate or sub directories visable under cgi-bin dir.
PLEASE refer to the README file...Also, there have been three Threads posted in the past three weeks in this forum that give an explicit listing of file/directory permissions. Search this forum for Permissions List using And option and select Links Installation-Unix forum.

Smile

Regards,

Eliot Lee
Quote Reply
Re: Installation Help In reply to
My issue therefore isn't actually the settings of the program filkes in the program, but more of how I ge my cgi-bin directory on my website to behave itself.

When I am refering to CGI-Bin in my conversation I am refering to the root CGI-BIN directory of the web site not the prgram. It is this that I have the trouble with.

I have printed out all lists about permissions and stand ready to deploy the minute I work out how to get my cgi-bin directoy in line.