Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 13 of 13

This is a discussion on CGI Problems... in the Shared & Semi-Dedicated forum
After attempting to install a couple of CGI scripts, I'm finding that I get nothing but 500 errors no matter how much I tweak. Is ...

  1. #1
    JPC Member
    Join Date
    Oct 2003
    Posts
    17

    CGI Problems...

    After attempting to install a couple of CGI scripts, I'm finding that I get nothing but 500 errors no matter how much I tweak. Is there something up with Jag's servers that I should be aware of? I'm installed a fair share of CGI scripts and never had problems like this...

    As a a side note, one of these scripts, for example, is a single file counter script...I can't possibly be messing that up continuously.

    Any help would be appreciated.

    Thanks,

    Paladin

  2. #2
    Loyal Client
    Join Date
    Sep 2001
    Location
    Wichita, KS
    Posts
    1,647
    Have you checked the files to make sure they are properly chmod'ed?

  3. #3
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Also make sure that you're uploading them as ASCII text (not binary or "raw data") and that you have the proper path to the interpreter as the first line of the file. (If you're using Perl, the first line of the scripts should be #!/usr/bin/perl, possibly with a dash and some options afterward, such as -wT).

    As for the chmod issue, make sure the scripts are set to 755...

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  4. #4
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Might want to check the manual too...

    http://www.jaguarpc.com/support/manu....html#cgi-apps
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  5. #5
    JPC Member
    Join Date
    Oct 2003
    Posts
    17
    Thanks for the responses, but like I said, I'm familiar with CGI installation, so yes chmod's are fine, and yes, everything that needed to be was uploaded in ASCII mode.

    This is frustrating...is it possible that Perl is located in a spot not defined in my CP? Or that absolute paths are listed by user name and not domain name?

    Paladin

  6. #6
    JPC Member
    Join Date
    Oct 2003
    Posts
    17
    *EDIT*

    Thought I had an idea, but alas, I do not.

    Paladin
    Last edited by Paladin229; 11-08-2003 at 03:49 PM.

  7. #7
    Jag Veteran
    Join Date
    Sep 2002
    Posts
    650
    Just an idea:
    get SSH access, log in and start the script from the command line.
    Cut & paste here a result of that script execution and you will get your answer in a matter of minutes

  8. #8
    JPC Member
    Join Date
    Oct 2003
    Posts
    17
    How do I get SSH access? I'm very new Linux, so forgive me for my ignorance...

    Paladin

  9. #9
    JPC Member
    Join Date
    Oct 2003
    Posts
    17
    Another point:

    When I try to run CGIEmail through my CP, I get a 500 error...

    Paladin

  10. #10
    Old Hillbilly Connie's Avatar
    Join Date
    Sep 2001
    Location
    Hills of Missouri
    Posts
    2,648
    Originally posted by Paladin229
    How do I get SSH access? I'm very new Linux, so forgive me for my ignorance...

    Paladin
    SSH in not enabled by default on any account. If you submit
    a support ticket they will enable SSH for your web site. This
    is normally done very quickly. I can't answer your other
    question in regard to the error messages.

    One of the experts will be along and try to help you with that
    issue I'm sure. There are many very knowledge people at
    the Jag forum that are more than willing to help when they
    can.

    Forum Moderators - Jag Staff

    Spam Whackers Blog - Dedicated to fighting Spam and providing General SEO Tips
    Organize your Kitchen or purchase Kitchen Accessories at Condells
    Ihelpyou Forum - Dedicated to "Best Practices" SEO

  11. #11
    JPC Member
    Join Date
    Oct 2003
    Posts
    17
    Thanks for the info...I'm sure it will be resolved.

    Again, thanks for the help.

    Paladin

  12. #12
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Originally posted by Paladin229
    This is frustrating...is it possible that Perl is located in a spot not defined in my CP? Or that absolute paths are listed by user name and not domain name?
    Perl is located at /usr/bin/perl. The absolute path to your home directory should be /home/USERNAME, to your web space its /home/USERNAME/public_html, and to your cgi-bin its /home/USERNAME/public_html/cgi-bin, where (obviously) USERNAME is your username.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  13. #13
    JPC Senior Member
    Join Date
    Sep 2001
    Posts
    50
    when you log into SSH, try "perl -c ./SCRIPTNAME"
    that will run the compiler without executing the script and you'll either get "syntax OK" or a bunch of errors with line numbers. If you get errors, DON'T try to fix them all at once. fix the first one then run the compiler again.
    --
    Alien Heat - Affordable Web Hosting and Design
    http://www.AlienHeat.com

Bookmarks

Posting Permissions

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