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

links 2.0 permissions denied

Quote Reply
links 2.0 permissions denied
Hi,

I have just upgraded from links 1.1 to 2.0
I've finished the upload and set permissions
as per the readme.txt, but when i try to
build the pages, i get this error...


Pages built on 15-Feb-1999 at 08:10:15
--------------------------------------------------------

Backing up database . . .
Backing up links, category and email database (File::Copy) ...

CGI ERROR
==========================================
Error Message : Unable to copy links backup. Reason: Permission denied


I have files like this :
--->cgi-bin/links
--->cgi-bin/links/admin

* Pages are built at the root.
* i set all permissions as per the readme.txt
* uploaded evrything in ASCII
* Perl path is right ( i have perl 5)
* was running version-1.1 succesfully

I tried chmod777 on the backup directory too,
but it did not help..

Appreciate any help.

Thank you

Joe

P.s. I am also getting a 500 server error everytime, I load upgrade.pl..

I loaded it into the data directory.
The perl path is right on upgrade.pl, and
was uploaded in ASCII..
Quote Reply
Re: links 2.0 permissions denied In reply to
 
Quote:
I have files like this :
--->cgi-bin/links
--->cgi-bin/links/admin

Do you have a cgi-bin/links/admin/backup directory with permissions set to 777?

Quote:
P.s. I am also getting a 500 server error everytime, I load upgrade.pl..

I loaded it into the data directory.
The perl path is right on upgrade.pl, and
was uploaded in ASCII..

Is the permissions on upgrade.pl set to 755 and are you running it from your shell or from your browser?

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/


Quote Reply
Re: links 2.0 permissions denied In reply to
Hi Bobsie,

Thanks a TON! It worked...The upgrade.pl
ran and said that 2 new fields have been added. As per the readme.txt, i deleted
the old links.db, and renamed the new "links2.db" to links.db.

* However, it also said that i should chmod
hits dir back to 755? Is this right?

Also, another strange error..

I thought all the old links would have
a "rate it" next to their description.

On the contrary, there seems to be a "NULL"
appearing on related categories with a hyperlink to Null direcoty ..! Should I manually edit the category.db (I thought upgrade.pl would do it automatically?)

Please help..
Thanks..
Joe
Quote Reply
Re: links 2.0 permissions denied In reply to
Hi Bobsie,

Thanks a TON! It worked...The upgrade.pl
ran and said that 2 new fields have been added. As per the readme.txt, i deleted
the old links.db, and renamed the new "links2.db" to links.db.

* However, it also said that i should chmod
hits dir back to 755? Is this right?

Also, another strange error..

I thought all the old links would have
a "rate it" next to their description.

On the contrary, there seems to be a "NULL"
appearing on related categories with a hyperlink to Null directory ..! Should I manually edit the category.db (I thought upgrade.pl would do it automatically?)

Please help..
Thanks..
Joe
Quote Reply
Re: links 2.0 permissions denied In reply to
O.K. Bobsie,

I've modified the category.db as you said,
and rebuilt the pages. Wow! The NULL stuff disappeared off the web page. the problem now is :

=========================================
1. I still don't see the 'rate it' icon next to the old links.I manually added a new link with the popularity as 10, and it showed up in the
ratings page, but that link too did not have
the 'rate it' icon next to it, in the search results.
==========================================

2. I had successfully added a link to other
search engines if the links (1.1)search failed, that does not seem to work now in 2.0! This is the search that is executed --> minus keywords = Frown
Eg : www.altavista.digital.com/cgi-bin/query?q=

I got the mod from a posting on this BB. I've pasted it at the end of this message..
============================================

3. Am I missing some new features by not using the new site_html.pl? 2.0 seems to have a search feature built in.

The new CSS stuff really confuses me, so I am still using the old site_html, but I have pasted the new stuff mentioned in the readme.txt.
=============================================

Sorry for the barrage of questions. Really appreciate your help.

Regds
Joe

-=============

This mod below does not work on 2.0 -->

I remember the posting mentioned adding a line of code to the search.cgi, I
guess this could be the problem, because the new search.cgi looks totally different.

I'd be glad if you could tell me where I am going wrong..I've pasted the code below (from the old posting) :
===========================================
wirthit
posted February 07, 1999 03:55 PM PST


not sure if this is what you are looking for it was written by Craig Antill (Sorry Craig if I spelt that
wrong.)

Introduction
This is a modification to Gossamer Threads' Links Engine 1.1 which I was asked to implement on a
site I was working on. It is a pretty straightforward mod which will allow you to show a 'now search
these engines...' feature.
It allows that when a search on the database is made, either successful or not, that the user is
presented with the option to carry out a further search on various other search engines. This is
similar to the option you have on Yahoo! after a similar search.

--------------------------------------------------------------------------------


Instructions
First of all, do the sensible thing - BACK ALL YOUR FILES UP!!! this includes all files in /links and
/links/admin. I can't, and won't, be responsible for any errors - self induced, or otherwise - which
result from this modification...

--------------------------------------------------------------------------------

Open search.cgi and make the following changes:
In sub main, follow this section:

# Boolean connector defaults to "and".
if (!$in{'bool'}) { $in{'bool'} = 'and'; }

Add this:
# Stores the query in $term seperated by a +
$term = $in{'query'};
$term =~ tr/ /+/;

--------------------------------------------------------------------------------

Open site_html.pl and make the following changes:
Add these lines to sub site_html_search_results where you wish it to be output:

Now Try This Search On:
<BR><BR>
<A HREF="http://www.infoseek.com/Titles?qt=$term">Infoseek</A> |
<A HREF="http://www.altavista.digital.com/cgi-bin/query?q=$term">Altavista</A> |
<A HREF="http://search.yahoo.com/bin/search?p=$term">Yahoo</A> |
<A HREF="http://search.excite.com/search.gw?search=$term">Excite</A> |
<A HREF="http://www.hotbot.com/?MT=$term">Hotbot</A> |
<A
HREF="http://www.lycos.com/cgi-bin/pursuit?matchmode=and&cat=lycos&query=$term">Lycos</A>

Finally, add these lines to sub site_html_search_failure where you wish it to be output:
Search Again? Use the search form below to search the $site_title database, or select any of these
fine search engines to search their more general databases
<BR><BR>
Try This Search On:
<BR>
<A HREF="http://www.infoseek.com/Titles?qt=$term">Infoseek</A> |
<A HREF="http://www.altavista.digital.com/cgi-bin/query?q=$term">Altavista</A> |
<A HREF="http://search.yahoo.com/bin/search?p=$term">Yahoo</A> |
<A HREF="http://search.excite.com/search.gw?search=$term">Excite</A> |
<A HREF="http://www.hotbot.com/?MT=$term">Hotbot</A> |
<A
HREF="http://www.lycos.com/cgi-bin/pursuit?matchmode=and&cat=lycos&query=$term">Lycos</A>

Bob Wirth
Wirthit.com

[This message has been edited by Joe Louis (edited February 18, 1999).]
Quote Reply
Re: links 2.0 permissions denied In reply to
The upgrade.pl file only upgrades the links.db. You have to update the categories.db manually by doing a global search and replace (or an item by item search), replacing any occurance of "|NULL" with "|".

Also, I don't think it matters if you leave the hits directory at 777 if your admin directory is password protected. Looking at the script, I don't see why it even refers to the "hits" directory. I think it meant the "data" directory.

Finally, if you upgraded from 1.1 to 2.0, then the message you got about the new fields is incorrect. Three new fields were created by upgrade.pl, not two. The "Votes", "Rating", and "ReceiveMail" fields were added by the script.

I hope this helps.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/




[This message has been edited by Bobsie (edited February 16, 1999).]