The Weycrest Knowledgebase

Revelling in the Dark Underbelly of Cheap Hosting and Domain Names

The Weycrest Knowledgebase header image 4

Entries Tagged as 'CGI'

Q. What version of Perl are running?

May 9th, 2007 · 1 Comment · CGI, Perl, Pre-Sales, Programming Lanquages

Ans. On our Plesk and cPanel servers the current version of Perl is perl-5.8.5

[Read more →]

Tags:

Q. I am getting an “Internal Server Error” when I try and run a perl/cgi script.

May 9th, 2007 · No Comments · CGI, MySQL, Perl, Programming Lanquages

There are two most probable causes.
1. if you upload your script using FTP, you must use ASCII as opposed to binary mode.
2. Windows as a hangover from its DOS days ends text lines with a carriage returns / newline pair where as Linux (based on Unix) ends text with just a newline character.
Compatability problems [...]

[Read more →]

Tags:

Q.What is the path to Perl?

May 9th, 2007 · No Comments · CGI, Perl, Pre-Sales, Programming Lanquages

Ans: The path to perl on all our hosting servers is:
/usr/bin/perl
Therefore all your perl/cgi scripts must start:
#! /usr/bin/perl

[Read more →]

Tags: