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?

 

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...