It worked at first, now nothing happens. Why
Apr 19, 1999, 12:35 AM
Veteran (3111 posts)
Apr 19, 1999, 12:35 AM
Post #3 of 13
Views: 5005
Like:
1. What did you change between the time it was working and it stopped working if anything?
2. Is this from the web or from telnet?
3. If from the web, did you try it from telnet to see if you get an error message?
4. Does it say Document Done in the browser status line, or does the browser indicate that it is still processing?
Anything and everything you can think of that relates to the problem. Otherwise, we would just be guessing.
1. What did you change between the time it was working and it stopped working if anything?
2. Is this from the web or from telnet?
3. If from the web, did you try it from telnet to see if you get an error message?
4. Does it say Document Done in the browser status line, or does the browser indicate that it is still processing?
Anything and everything you can think of that relates to the problem. Otherwise, we would just be guessing.
Apr 19, 1999, 4:04 AM
Novice (17 posts)
Apr 19, 1999, 4:04 AM
Post #4 of 13
Views: 4980
Error Message : Unable to copy links backup. Reason: Permission denied
Script Location : /data1/hypermart.net/finn/cgi-bin/admin/nph-build.cgi
Perl Version : 5.00404
This is the message I get when I try to build all.
I set Backup dir & files permissions at 777 but still can't write.
Where's the mistake?
Thanxx
Script Location : /data1/hypermart.net/finn/cgi-bin/admin/nph-build.cgi
Perl Version : 5.00404
This is the message I get when I try to build all.
I set Backup dir & files permissions at 777 but still can't write.
Where's the mistake?
Thanxx
Apr 20, 1999, 8:34 AM
Novice (17 posts)
Apr 20, 1999, 8:34 AM
Post #7 of 13
Views: 4922
Thanks Bobsie but didn't work
I had to change data folder name to "datax" cause of the hypermart server policies..I modified links.cfg with the right paths ...maybe any other cgi file still searches for DATA folder?
The error is still:
CGI ERROR
==========================================
Error Message : Unable to copy links backup. Reason: Permission denied
Script Location : /data1/hypermart.net/fin/cgi-bin/admin/nph-build.cgi
Perl Version : 5.00404
Maybe is nph-build.cgi 's fault?
Thanks for being always so gentle and helpful
I had to change data folder name to "datax" cause of the hypermart server policies..I modified links.cfg with the right paths ...maybe any other cgi file still searches for DATA folder?
The error is still:
CGI ERROR
==========================================
Error Message : Unable to copy links backup. Reason: Permission denied
Script Location : /data1/hypermart.net/fin/cgi-bin/admin/nph-build.cgi
Perl Version : 5.00404
Maybe is nph-build.cgi 's fault?
Thanks for being always so gentle and helpful
Apr 20, 1999, 1:47 PM
Veteran (3111 posts)
Apr 20, 1999, 1:47 PM
Post #8 of 13
Views: 5005
All of the following need to be changed in links.cfg:
$db_category_name = "$db_script_path/data/categories.db"; # PATH to category database.
$db_valid_name = "$db_script_path/data/validate.db"; # PATH to validation database.
$db_modified_name = "$db_script_path/data/modified.db"; # PATH to modification database.
$db_url_name = "$db_script_path/data/url.db"; # PATH to URL lookup database.
$db_email_name = "$db_script_path/data/email.db"; # PATH to email database.
$db_links_id_file_name = "$db_script_path/data/linksid.txt"; # PATH to links counter file.
$db_category_id_file_name = "$db_script_path/data/categoryid.txt"; # PATH to category counter file.
$db_hits_path = "$db_script_path/data/hits"; # PATH to hits directory.
$db_rates_path = "$db_script_path/data/rates"; # PATH to ratings.
In nph-build.cgi, you need to change the following lines:
sub build_backup:
&File::Copy::copy ("$db_script_path/data/categories.db", "$db_script_path/backup/$date.category.db") or &cgierr ("Unable to copy category backup. Reason: $!");
&File::Copy::copy ("$db_script_path/data/email.db", "$db_script_path/backup/$date.email.db") or &cgierr ("Unable to copy email backup. Reason: $!");
open (TMP, "$db_script_path/data/$_.db") or &cgierr ("Unable to open $db_script_path/data/$_.db. Reason: $!");
I hope this helps.
[This message has been edited by Bobsie (edited April 20, 1999).]
Quote:
$db_links_name = "$db_script_path/data/links.db"; # PATH to links database. $db_category_name = "$db_script_path/data/categories.db"; # PATH to category database.
$db_valid_name = "$db_script_path/data/validate.db"; # PATH to validation database.
$db_modified_name = "$db_script_path/data/modified.db"; # PATH to modification database.
$db_url_name = "$db_script_path/data/url.db"; # PATH to URL lookup database.
$db_email_name = "$db_script_path/data/email.db"; # PATH to email database.
$db_links_id_file_name = "$db_script_path/data/linksid.txt"; # PATH to links counter file.
$db_category_id_file_name = "$db_script_path/data/categoryid.txt"; # PATH to category counter file.
$db_hits_path = "$db_script_path/data/hits"; # PATH to hits directory.
$db_rates_path = "$db_script_path/data/rates"; # PATH to ratings.
In nph-build.cgi, you need to change the following lines:
sub build_backup:
Quote:
&File::Copy::copy ("$db_script_path/data/links.db", "$db_script_path/backup/$date.links.db") or &cgierr ("Unable to copy links backup. Reason: $!"); &File::Copy::copy ("$db_script_path/data/categories.db", "$db_script_path/backup/$date.category.db") or &cgierr ("Unable to copy category backup. Reason: $!");
&File::Copy::copy ("$db_script_path/data/email.db", "$db_script_path/backup/$date.email.db") or &cgierr ("Unable to copy email backup. Reason: $!");
open (TMP, "$db_script_path/data/$_.db") or &cgierr ("Unable to open $db_script_path/data/$_.db. Reason: $!");
I hope this helps.
[This message has been edited by Bobsie (edited April 20, 1999).]
Apr 21, 1999, 2:09 PM
Novice (17 posts)
Apr 21, 1999, 2:09 PM
Post #11 of 13
Views: 4995
Hey guys;
I tried everything but but but "IT IS NOT WORKING!"
I did the following:
1. I changed my data folder name to datax and also the changes in nph_build.pl and ...
2. I added the permission problem mod (Bobsie mentioned that).
3. I changed the chmods 100 times with different configurations.
And I am still getting the following error:
Please Help;
Thanks in advance
Backing up database . . .
Backup exists for today.. Skipping
Done.
Building URL Index . . .
Done.
Updating New and Popular Records . . .
What's New Cutoff: 14 days
Popular Cutoff: 20 hits
CGI ERROR
==========================================
Error Message : unable to open temp links database: /usr/home/wallstre/public_html/cgi-bin/links/admin/datax/links.db.bak. Reason: Permission denied
Script Location : /usr/home/wallstre/public_html/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.00502
I tried everything but but but "IT IS NOT WORKING!"
I did the following:
1. I changed my data folder name to datax and also the changes in nph_build.pl and ...
2. I added the permission problem mod (Bobsie mentioned that).
3. I changed the chmods 100 times with different configurations.
And I am still getting the following error:
Please Help;
Thanks in advance
Backing up database . . .
Backup exists for today.. Skipping
Done.
Building URL Index . . .
Done.
Updating New and Popular Records . . .
What's New Cutoff: 14 days
Popular Cutoff: 20 hits
CGI ERROR
==========================================
Error Message : unable to open temp links database: /usr/home/wallstre/public_html/cgi-bin/links/admin/datax/links.db.bak. Reason: Permission denied
Script Location : /usr/home/wallstre/public_html/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.00502
Apr 21, 1999, 5:57 PM
Veteran (3111 posts)
Apr 21, 1999, 5:57 PM
Post #12 of 13
Views: 5040
1. Is your data directory chmod 777?
2. Is your links.db chmod 666?
If either is no, chmod it and try again. If both are yes, then look at the following thread: http://www.gossamer-threads.com/...um2/HTML/000730.html
I hope this helps.
2. Is your links.db chmod 666?
If either is no, chmod it and try again. If both are yes, then look at the following thread: http://www.gossamer-threads.com/...um2/HTML/000730.html
I hope this helps.
Apr 22, 1999, 3:58 AM
Novice (17 posts)
Apr 22, 1999, 3:58 AM
Post #13 of 13
Views: 4999
B I N G O !
Thank You very much Bobsie YOU ARE GREAT!
I just changed the CHMOD and it worked!
Regards;
Peyman
P.S. By the way did you do anything about the script that we were discussing in the other boards? I am talking about the one that users can vote for the site as "The most beautiful site" or "the most boaring site" and ... and then each one will be saved into a separate page! You might want to take a look at this site www.planetclick.com this is a great example of what I have in mind.
Thanks Again
Thank You very much Bobsie YOU ARE GREAT!
I just changed the CHMOD and it worked!
Regards;
Peyman
P.S. By the way did you do anything about the script that we were discussing in the other boards? I am talking about the one that users can vote for the site as "The most beautiful site" or "the most boaring site" and ... and then each one will be saved into a separate page! You might want to take a look at this site www.planetclick.com this is a great example of what I have in mind.
Thanks Again