YNOT
  • Home
  • Industry News
    • Adult Business News
    • Adult Novelty News
    • YNOT Magazine
    • EU News
    • Opinions
    • Picture Galleries
  • PR Wire
    • Adult Company News
    • Adult Retail News
    • Adult Talent News
    • Adult Videos News
  • Podcasts
  • Industry Guides
    • Adult Affiliate Guide
    • Affiliate Marketing for Beginners
    • Top Adult Traffic Networks
    • Top Adult PR Agents
    • Funding an Adult Business
  • Business Directory
    • View Categories
    • View Listings
    • Submit Listing
  • Newsletters
  • Industry Events
    • Events Calendar
    • YNOT Cam Awards | Hollywood
    • YNOT Awards | Prague
    • YNOT Cammunity
    • YNOT Summit
    • YNOT Reunion
  • Login with YNOT ID
YNOT University: Educational articles and tutorials

Debugging Perl Script Installations

Posted On 05 Jun 2001
By : admin

If you’ve ever installed a CGI script on your own server then you’ve no doubt encountered the dreaded Internal Server 500 Error — also known as the kiss of death! TDavid offers up ten tips for beating this messenger of doom.If you’ve ever installed a CGI script on your own server then you’ve no doubt encountered the dreaded Internal Server 500 Error — also known as the kiss of death! TDavid offers up ten tips for beating this messenger of doom.

With this article I’m going to give you a list of 10 handy tips for debugging Perl CGI installations. I usually follow somewhat along this course when I get that blasted “internal server 500 error” message:

1. Check for missing or omitted quotes in a variable assignment.

WRONG: $variable = “value;RIGHT: $variable = “value”;

2. Are emails backslashed in interpreted quotes? Or did you use literal quoting?

WRONG: $email = “myemail@myisp.com”;RIGHT: $email = ‘myemail@myisp.com’;RIGHT: $email = “myemail\@myisp.com”;

3. Is the path to perl correct?

WRONG: #/usr/local/perlRIGHT: #!/usr/bin/perlRIGHT: #!/usr/local/bin/perlRIGHT: #!/usr/bin/perl5

4. Did you upload all script source files in ASCII mode?

WRONG: uploaded in BINARY modeRIGHT: do not use “auto” setting, use manual ASCII mode in your FTP program

5. Do you have the permissions set correctly the way the readme.txt or other instructions say?

6. Do you have URLs and PATHS properly defined where it requests them?

WRONG PATH: http://www.tdscripts.com/RIGHT PATH: /home/usr/tdavid/tdscripts/

WRONG URL: /home/usr/tdavid/scriptschoolRIGHT URL: http://www.scriptschool.com/

7. Is the syntax of the script correct using telnet? Login with telnet and type:

perl -c SCRIPTNAME.CGI

8. Is the path to sendmail correct? Check with your host to get the right path, but the common one is:

/usr/sbin/sendmail

\’. Are all the libraries you need installed on the server? Try commenting out the libwww or other require library calls and see if the script runs. If it does, then probably you don’t have this library on the server and you need to have your host add it. Or you may need to add it yourself if it is a dedicated server.

10. Is the syntax is okay and it still won’t execute… and you’ve tried everything else above? Then try deleting the file off the server and then reuploading (in ASCII, remember) and resetting the permissions. This one I can’t explain why it will sometimes work (caching maybe?) but it sometimes will when all else fails!

  • google-share
Previous Story

Guide to shooting your own content PART 1

Next Story

Oz Says: “Content Makes the World Go ‘Round”

Leave a Reply Cancel reply

You must be logged in to post a comment.

Sponsor

YNOT Shoot Me

YNOTShootMe.com has exclusive pics from adult industry business events. Check it out!

YNOT Directory

  • Dao of Leads
    CPA Networks
  • The Adult Academy
    Photographers & Videographers
  • Altgirlmedia
    Web Design & Templates
  • Premiere Listing

    CCBill

    More Details

RECENT

POPULAR

COMMENTS

Victoria Malfoy and Autumn Orchid In Sensual Girl-Girl Scene in ManyVids Release

Posted On 03 Sep 2025

RedGIFs Announces BullBossJosh as September Creator of the Month

Posted On 03 Sep 2025

Andie Anderson Stars in POV Scene from MILF VR

Posted On 03 Sep 2025

Vanessa, Meet Vivid

Posted On 29 Sep 2014
Laila Mickelwaite and Exodus Cry

Laila Mickelwaite, Exodus Cry and their Crusade Against Porn

Posted On 03 May 2021

Someone puts Gal Gadot in one of your vids? Take it down!

Posted On 13 Dec 2017

Hoping viewers can also enjoy a spooky...

Posted On 24 Oct 2023

now a days these type of games will get...

Posted On 17 Jul 2023

good move from adent. these type of...

Posted On 06 Jul 2023

Sponsor

Sitemap
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkPrivacy Policy