Jump to content

Perl And Cgi Problems, Moving From Stevie To Tommy


Recommended Posts

Posted

Hello, my username is feeldumb. I am trying to get my 4 websites from Stevie working on Tommy.

 

I wrote a test perl program called "hello.pl"

 

Here it is;

#!/usr/bin/perluse cPanelUserConfig;# hello.pl - My first CGI programprint "Content-Type: text/html\n\n";# Note there is a newline between # this header and Data# Simple HTML code followsprint "<html> <head>\n";print "<title>Hello, world!</title>";print "</head>\n";print "<body>\n";print "<h1>Hello, world!</h1>\n";print "</body> </html>\n";

I put this in in /home/feeldumb/entiaacctg/www, which is the root for entiaacctg.tk.

 

I set its permissions to 755.

 

When I enter

 

http://entiaacctg.tk/hello.pl

 

it works just fine, great.

 

So I copied the file to /home/feeldumb/honeywebph/www, which is root for honeywebph.tk

 

Checked permissions 755

 

But when I enter

 

http://honeywebph.tk/hello.pl

 

I get Internal Server Error.

 

Anyone have any idea what I am doing wrong?

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...