Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1

    Default Fix for search.cgi errors

    Well I finally got my old search.cgi scripts working. Here's what you will need to do if you are having the same problem.

    This is assuming you have the two files search.cgi and search_define.pl.

    You will also need the file cgi-lib.pl. (you can get it at http://cgi-lib.berkeley.edu/) This file was in my cgi-bin folder already.

    Get the file and create a folder in your cgi-bin called "library". Put the cgi-lib.pl file in this folder.

    cgi-lib.pl changes

    Change line 1 to: #!/bin/perl

    search.cgi changes

    The file search.cgi points to cgi-lib.pl at lines 26 and 27 by saying:
    • $lib = "/library"; # Default path for loading libraries
      require "$lib/cgi-lib.pl";
    Remove the leading forward slash in the "/library" statement to make it read "library".

    Change line 1 of search.cgi to #!/bin/perl.

    search_define.pl changes

    Change lines 15 and 16 to read:
    • $root_web_path = "/www/htdocs/";
      $server_url = "http://yourdomain.com";

    Line 24 defines files and folders you want to exclude from your searches. Make sure you exclude things like your cgi-bin and other private folders. I notice my /plugins folder showed up in a search on my site so I had to add it to the list. There will probably be some others I'll have to add.


    Once these changes are made the the search.cgi should work. At least it does on my site.

    Some of you more tech savvy webmasters out there probably can explain this a little better and it may be that I've done something I shouldn't have. If this is the case please let me know.

    Some have been reporting that perl hasn't been installed in the transition to 2.0 so make sure it's installed too.

    One other thing, if you have to get the cgi-lib.pl file set it's permissions to 755. That's what mine is set to.

    Hope this helps! Now off to get my Guestbooks working!

    Scott

  2. #2
    Junior Member
    Join Date
    Aug 2003
    Location
    Argentina
    Posts
    16

    Default

    Thank you very much!!! You solved it!

  3. #3
    Member
    Join Date
    Sep 2003
    Location
    Spokane WA
    Posts
    38

    Default Formmail working thanks

    Hi JS Doyle,

    thanks for your post. I had a formmail problem since the move but figured out the problem--when I changed the path as the manual said to do for cgis I had removed the #! in front of the path so it would look just like what the manual said. I put them back in and now the forms are working again.
    Lori

  4. #4
    Member
    Join Date
    Sep 2003
    Location
    Spokane WA
    Posts
    38

    Default search cgi fix

    Hi JSdoyle

    I'm back for more. Thanks for your very clear instructions on the search.cgi as I couldn't get mine to work but they are now.
    Lori

  5. #5

    Default

    You're welcome Lori. I had similar problems with my guestbook. If you need help with it let me know.

    Scott

  6. #6
    Member
    Join Date
    Sep 2003
    Location
    Spokane WA
    Posts
    38

    Default re guestbook

    Oh darn!! I forgot about my guestbook. Yes, I'll need that fix also please.
    Lori

  7. #7
    Junior Member
    Join Date
    Sep 2003
    Location
    Los Angeles
    Posts
    15

    Default

    JS Doyle, I finally tried your search solution (been dealing with email) but I'm still getting an internal server error. I think I did everything you said. Any ideas what I may be doing wrong? Thanks.
    Watch for abandoned kittens in your neighborhood and call a local rescue organization for help if you find them. The youngest have little time without help. In L.A., please contact Kitten Rescue at http://www.kittenrescue.org. Thank you.

  8. #8

    Default

    I'm at work and have a bunch of bullets to ID to a gun right now but I'll try to answer later after I get off work.

    Scott

  9. #9
    Junior Member
    Join Date
    Sep 2003
    Location
    Los Angeles
    Posts
    15

    Default

    I got the search to work on one site; now I'm off to try the other. Don't know what I was doing wrong yesterday, but it's okay now. Thanks a bunch.

    Branwen
    Watch for abandoned kittens in your neighborhood and call a local rescue organization for help if you find them. The youngest have little time without help. In L.A., please contact Kitten Rescue at http://www.kittenrescue.org. Thank you.

  10. #10
    Junior Member
    Join Date
    Sep 2003
    Location
    Los Angeles
    Posts
    15

    Default

    I thought I had the search script going fine until today. I did a search on my site and came up with dozens (hundreds?) of duplicate returns and I don't know where they come from. For example, one search brought up the following:

    Herb Meanings and Herbal Information, A-B (/herbal-AB.html)
    Herb Meanings and Herbal Information, A-B (/html/herbal-AB.html)
    Herb Meanings and Herbal Information, A-B (/html/html/herbal-AB.html)
    Herb Meanings and Herbal Information, A-B (/html/html/html/herbal-AB.html)

    And so on, apparently in an endless loop - I didn't wait for the page to finish loading. What did I do?
    Watch for abandoned kittens in your neighborhood and call a local rescue organization for help if you find them. The youngest have little time without help. In L.A., please contact Kitten Rescue at http://www.kittenrescue.org. Thank you.

Similar Threads

  1. Displaying PHP errors in Wordpress
    By squidier in forum PHP / MySQL
    Replies: 9
    Last Post: 06-12-2007, 07:38 AM
  2. Zen-Cart Security Fix
    By rispku in forum E-commerce
    Replies: 1
    Last Post: 02-18-2006, 12:44 PM
  3. Need help with errors during the payment
    By kimalpena in forum Miva Merchant
    Replies: 2
    Last Post: 11-16-2005, 04:53 PM
  4. How do I forward Dadamail mail errors directly to th client?
    By dansroka in forum E-mail / FTP Management
    Replies: 0
    Last Post: 06-19-2005, 08:17 AM
  5. mysql link errors
    By GoRaiders007 in forum PHP / MySQL
    Replies: 6
    Last Post: 12-03-2003, 03:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •