+ Reply to Thread
Results 1 to 5 of 5

Thread: Hello .. New to X10... cgi-bin issue...

  1. #1
    devnagri is offline x10Hosting Member devnagri is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    0

    Hello .. New to X10... cgi-bin issue...

    I've uploaded my perl script at public_html/cgi-bin/
    but I get HTTP 500 Internal server error when following file is accessed:
    devnagri.x10hosting.com/cgi-bin/hello.pl
    file permission is set to 755. Also tried 777 but of no avail. I also get error when run from public_html directory.

    Anything missing?

    regards,

  2. #2
    intheclutch is offline x10Hosting Member intheclutch is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    72

    Re: Hello .. New to X10... cgi-bin issue...

    755 is the permission you'd want. I wonder if it's a problem with the code itself.

    You might want to add these in the code:

    #!/usr/bin/perl

    use CGI;
    use CGI::Carp qw(fatalsToBrowser);

  3. #3
    Join Date
    Aug 2007
    Location
    Gangstas Paradise
    Posts
    4,143

    Re: Hello .. New to X10... cgi-bin issue...

    Code:
    #!/usr/bin/perl -wT
    yet that might not be the problem. What server are you on? If it is absolut maybe try changing the extension to *.cgi !

    http://dev.x10hosting.com (this has nothing to do with x10hosting)

    ->All us helpful people here at x10hosting would like to reach our next user groups, "Community Paragon". Please click the +rep icon on the left hand side of a post if that post was helpfull.



  4. #4
    devnagri is offline x10Hosting Member devnagri is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    0

    Re: Hello .. New to X10... cgi-bin issue...

    I tried both suggestions, but the same 500 errror problem:
    permission is set to 755.

    1.) http://devnagri.x10hosting.com/cgi-bin/hello2.pl

    #!/usr/bin/perl
    use CGI;
    use CGI::Carp qw(fatalsToBrowser);
    print "<html>\n";
    print "<head>\n";
    print "<title>Devnagri Sample - &#x0915;&#x093f;&#x0936;&#x094a;&#x0930;&nbsp;&#x0 915;&#x0941;&#x092e;&#x093e;&#x0930;</title>\n";
    print "</head>\n";
    print "<body>\n";
    print "Hello World\n<br>";
    print "\n</body>\n";
    print "</html>\n";

    2.) http://devnagri.x10hosting.com/cgi-bin/hello3.pl

    #!/usr/bin/perl -wT
    print "<html>\n";
    print "<head>\n";
    print "<title>Devnagri Sample - &#x0915;&#x093f;&#x0936;&#x094a;&#x0930;&nbsp;&#x0 915;&#x0941;&#x092e;&#x093e;&#x0930;</title>\n";
    print "</head>\n";
    print "<body>\n";
    print "Hello World\n<br>";
    print "\n</body>\n";
    print "</html>\n";


    Please help.

    thanks.

  5. #5
    intheclutch is offline x10Hosting Member intheclutch is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    72

    Re: Hello .. New to X10... cgi-bin issue...

    Ah..you'll want this:

    print "Content-type: text/html\n\n";

    Put that the line before print "<html>\n";
    Last edited by intheclutch; 09-19-2007 at 04:54 PM.

+ Reply to Thread

Similar Threads

  1. Cpanel Image Issue
    By sk1tL1L in forum Free Hosting
    Replies: 7
    Last Post: 12-03-2006, 11:34 PM
  2. Disk Space Issue
    By dyfuse in forum Free Hosting
    Replies: 0
    Last Post: 10-24-2006, 03:06 AM
  3. Domain issue
    By Torch in forum Free Hosting
    Replies: 6
    Last Post: 06-23-2006, 10:51 AM
  4. DNS Issue
    By Corey in forum Service Alerts
    Replies: 10
    Last Post: 05-14-2006, 02:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers