Gossamer Forum
Quote Reply
Plesk install
I am midway though installing, and never having installed one am asking. The instructions say "if you are comfortable with cgi--I am not, but there is no alternative.

Plesk says do NOT use the cgi bin, so I made a folder called ggi inside httpdocs

And made links and admin inside that...

(I see now i could have just had the ftp program create that automatically but I did

it manually and used drag and drop)

It said"Upload the cascading style sheet: links.css and the background image
to the directory where you want the pages created."

NOT CLEAR---Do I want that inside links??
or inside something called pages outside? That is what i did --outside of LINKS.

Changed path to CGI (Shebang???)
#!/usr/bin/perl -w is what I used.

It wasn't explicity said, but as there are cgi files in ADMIN, I did the same thing there.


uploaded in same structure as listed in the install folders using ascii
and changed file permissions A LA CYBERWINGS PLESK (means not 777 but 755 for the cgi files)

So I did
755 for cgi files inside cgi and those inside admin
but nothing for pl etc in admin (It didn7t say to do anythinga bout pl files)

made directories data and templates and added files
rates and hits in data



also backup



chmod 666 (-rw-rw-rw-) on all files in the data directory.

There are none---SHOULD I DO FOR THOSE INSIDE THE TWO OTHER FOLDERS??

HITS AND RATES???

chmod 666 (-rw-rw-rw-) on all your template files (if using the online editor)

WHAT DO YOU MEAN?? How dod I know if

I want to use it or not? anyway did it.



chmod 777 (drwxrwxrwx) on the hits directory

WHAT ABOUT FILE IN IT???
chmod 777 (drwxrwxrwx) on the ratings directory

ACTUALLY CALLED RATES

WHAT ABOUT FILE IN IT??



Anyway, did 755 because plesk.



chmod 777 (drwxrwxrwx) on the directory where Links pages will be created.

means "pages" outside of it all?



Stopped here...it says next to



4. Edit links.cfg and set as a minimum: (as written in the instructions)

THIS PART SEEMS BACKWARD. SHouldn't I have set these BEFORE UPLOADING..



I asked my admin for the data to put in the next part and hope

this is going to work...



"DOCUMENT_ROOT. It looks like this:
/usr/local/psa/home/vhosts/yourdomain.com/httpdocs
And the full system path to your cgibin (in httpdocs) is:
/usr/local/psa/home/vhosts/yourdomain.com/httpdocs/cgibin
/usr/sbin/sendmail is the proper path to sendmail. "



Am I on the right track?

If I know in advance I can go and correct my errors so far.



Thanks!
Quote Reply
Re: [paularenson] Plesk install In reply to
>Plesk says do NOT use the cgi bin, so I made a folder called ggi inside httpdocs

Are you sure? I've some sites which are running on Plesk server and in cgi-bin.

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Plesk install In reply to
Thanks for the answer. I hopethe rest of my post is ok and if there are any glaring errors, someone will point them out.

I should have written I called it "cgi", but as regards the cgi bin, I am quoting the CEO of Cyberwings who says:

"1. On all PLESK domains there is a directory structure in the root of the domain that includes /cgi-bin/ - you do not want to use this /cgi-bin/ in your root directory of the domain. Be sure you are not using /cgi-bin/ in your root directory - this directory is aliased and can ONLY run scripts (not graphic files, html files, etc.) We recommend not even using that /cgi-bin/ in the root directory - run all your scripts/files from under the /httpdocs directory, but in a directory NOT called cgi-bin. Go under /httpdocs/ and create a /cgi/ file and run all your scripts from there - or from ANYWHERE under /httpdocs/. But do not use the /cgi-bin/ directory in
your domain's root - it's good ONLY for scripts, nothing more.

2. Be sure that your shebang line in ALL cgi files has a -w at the end (#!/usr/bin/perl -w) - this is required on PLESK servers.

3. Be sure that your CGI Support button is checked under your HOSTING preferences for all domains that you wish to have CGI support on.

4. Be sure that you have your "mod_perl" selection in PLESK turned OFF. If you have this turned on, all of your .PL files get filtered through a unique perl interpreter which is very different from the standard perl interpreter. This should ONLY be checked if you are an experienced PERL programmer and know the differences.

5. Check your permissions, of course. ALL CGI, PHP and .PL files should be set to CHMOD 755, not 777. 777 will not work for scripts on a PLESK server.

__________________
Shawn J. White
CEO, Cyberwings.com "

That is why I did what I did.

To clarify my confusion, when I first looked at the script, I asked these questions in the cgi forum on cyberwings, getting answers that follow them:

I ASKED:

"I do not know yet
if this is something the forum over on Gossemer can tell me or if this is clear from the point of view of Cyberwings. I will ask over there if I need to, but it says all of this:


Edit links.cfg and set as a minimum:

- PATH to your admin directory, this is a system path, not a URL!

QUESTION ONE
Ok....I have trouble with these terms....My website is
tokyoprogressive.org. I have a cgi folder in httpdocs then directories as mentioned. So I guess I
do x/y/x, but not sure where to start. Is X cgi?

QUESTION TWO

-If you
get an error message about not finding a file, look at the SCRIPT_FILENAME
variable for clues on the proper path!

I guess I can figure that out. (I hope!)

QUESTION THREE

$db_script_path = "/alex/links/cgi-bin/admin";
- URL to your admin directory. This should start with 'http://'.

I think I have this.

QUESTION FOUR

$db_dir_url = "http://localhost/links/cgi-bin/admin";
- URL of where your user cgi is kept. If you kept the default installation,
it will just be one level below the admin directory.
WHICH WAY IS BELOW? IT MEANS INSIDE???


QUSTION FOUR
$db_cgi_url = "http://localhost/links/cgi-bin";

- PATH to where your pages are built. This should be a system path, not a URL.
$build_root_path = "/alex/links/pages";


NOT SURE WHAT GOES HERE. IT DEPENDS
ON ALL THE OTHER THINGS. IF I HAVE
TO PUT THE PAGES IN THE LINKS FOLDER?
IF I HAVE TO PUT IT OUTSIDE?

FOR EXAMPLE--- httpdocs--links--pages--etc
OR if it is httpdocs---pages--links--etc????

QUESTION 5

- URL of where your pages are.
$build_root_url = "http://localhost/links/pages";

I AM ALWAYS UNCLEAR ABOUT THE DIFFERENCE BETWEEN A SYSTEM PATH AND URL...LIKE WHAT DO WE PUT FOR THE TOP LEVEL OF THE SYSTEM PATH?
httpdocs? www?

QUESTION 6

- Set one of either:
$db_mail_path = ''; $db_smtp_server = '';
SEE BELOW

QUESTION 7

If you are on NT, set $db_smtp_server to your SMTP server. If you are on UNIX,
set $db_mail_path to your sendmail program.

I THINK PLESK IS UNIX

I SEE THESE:
sendmail:
/usr/sbin/sendmail
/usr/sbin/sendmail.saved_by_psa
/etc/sendmail.cf
/usr/lib/sendmail
/usr/share/man/man8/sendmail.8.gz

WHICH TO USE???

QUESTION 8

- Set the email address for who all emails will come from:
$db_admin_email = '';


OK I think. BUT THERE IS ONLY ONE QUOTE MARK. SHOULDN'T IT BE $db_admin_email = ''SOMETHING"?


THESE ARE THE ANSWERS THAT SOMEONE SENT TO ME--BUT NOT SURE HOW TO RELATE THIS TO WHAT I NEED TO PUT IN THE ABOVE ANSWERS.
KINDS DEPENDS ON WHERE THE PAGES FOLDER GOES:

"you'll find the full system path, known as DOCUMENT_ROOT. It looks like this:
/usr/local/psa/home/vhosts/yourdomain.com/httpdocs
And the full system path to your cgibin (in httpdocs) is:
/usr/local/psa/home/vhosts/yourdomain.com/httpdocs/cgibin
/usr/sbin/sendmail is the proper path to sendmail.

Thanks, but the more I look at this, the less sure I am that I know what I am doing....


Paul
Quote Reply
Re: [paularenson] Plesk install In reply to
Points 1 and 2 by the CEO are bull.
Quote Reply
Re: [paularenson] Plesk install In reply to
I'm on a plesk server and use the cgi-bin that is set up .... hmmmm ... gonna have to look into what you mentioned about that.

but anyway, here's my setup:

Code:
# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/httpd/vhosts/tokyoprogressive.org/cgi-bin/links/admin";
$db_dir_url = "http://www.tokyoprogressive.org/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/httpd/vhosts/qooq.com/httpdocs/pages";
$build_root_url = "http://www.tokyoprogressive.org/pages";

the above is set so that Links is within the cgi-bin called "links"
tokyoprogressive.org is what your plesk sets up your directory as ...
your pages are built in the directory called "pages"


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

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'paul@tokyoprogressive.org';

# Notify visitors automatically when their links are validated?
$db_email_add = 1;

# Notify visitors automatically when their links are modified?
$db_email_modify = 1;

# Log all outgoing messages? Put the full path to a logfile and make sure it
# exists and is writeable (chmod 666 -rw-rw-rw-). This logfile can get pretty
# big!
$db_mailer_log = '/home/httpd/vhosts/tokyoprogressive.org/cgi-bin/links/admin/data/email.db';

set your email to paul@tokyoprogressive.org

the rest should be pretty easy.
setting permissions and such as per the readme.txt is much more understandable compared to the links settings for urls and paths.

good luck!

openoffice + gimp + sketch ... Smile
Quote Reply
Re: [QooQ] Plesk install In reply to
In Reply To:
I'm on a plesk server and use the cgi-bin that is set up .... hmmmm ... gonna have to look into what you mentioned about that.

but anyway, here's my setup:

Code:
# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/httpd/vhosts/tokyoprogressive.org/cgi-bin/links/admin";
$db_dir_url = "http://www.tokyoprogressive.org/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/httpd/vhosts/qooq.com/httpdocs/pages";
$build_root_url = http://www.tokyoprogressive.org/pages; SO I JUST COPY THE ABOVE?AND THEN THERE ARE A WHOLE LOT OF OTHER THINGS I DO NOT TOUCH? Like: # 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";

the above is set so that Links is within the cgi-bin called "links"
tokyoprogressive.org is what your plesk sets up your directory as ...
your pages are built in the directory called "pages" DOES THAT MEAN I HAVE TO MAKE SURE PAGES IS INSIDE THE CGI FOLDER???


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

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'paul@tokyoprogressive.org';

# Notify visitors automatically when their links are validated?
$db_email_add = 1;

# Notify visitors automatically when their links are modified?
$db_email_modify = 1;

# Log all outgoing messages? Put the full path to a logfile and make sure it
# exists and is writeable (chmod 666 -rw-rw-rw-). This logfile can get pretty
# big!
$db_mailer_log = '/home/httpd/vhosts/tokyoprogressive.org/cgi-bin/links/admin/data/email.db';

set your email to paul@tokyoprogressive.org ---> DOES THAT MEAN I DO SOMETHING TO THE ABOVE?

the rest should be pretty easy.
setting permissions and such as per the readme.txt is much more understandable compared to the links settings for urls and paths.
I GOT LOST I AM AFRAID. NOT SURE IF "SET YOUR EMAIL" MEANS I HAVE TO DO SOMETYHING TO
THE TEXT ABOVE IT? AND THERE IS A WHOLE SECTION THAT THERE WAS NO SUGGESTIONS ABOUT. THANKS FOR YOUR HELP, BUT I AM REALLY CONFUSED. PAUL
good luck!
Quote Reply
Re: [QooQ] Plesk install In reply to
UnsureThanks to all who have helped so far...I am just bad at following directions....



So I have (at least for now) installed a different package. Main reasons: lack of time and the fact that it had an auto installer that worked.

http://www.tokyoprogressive.org/...links/SuperLinks.cgi?

Regards,



Paul
Quote Reply
Re: [paularenson] Plesk install In reply to
oh well, I hope the other scripts works out for you.

But now you get to miss out on all the great mods and community here. Blush

cheers

openoffice + gimp + sketch ... Smile