Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

bennierounder:

I'm not a web developer, so I'll grasp at a few straws.

Things I've tried:

  • I pointed my browser at "http://protechflooring.co.uk" and got an "Index of /" page listing cgi-bin as the only entry. It looks like what I'd expect to see when Apache is serving up a directory without an index.html file.
  • I tried clicking the cgi-bin directory and got the (expected) "403: Forbidden" page.
  • I notice that you mentioned that a script was named "perl_script.pl", so I tried going to http://protechflooring.co.uk/cgi-bin/perl_script.pl, at which point it gave me a "500: Internal Error" page.
  • Finally, I entered http://protechflooring.co.uk/cgi-bin/boink.pl, as I doubt that you have a file named boink.pl in there, and got a "404: Page Not Found" error.

From that, it appears to me that you need an "index.html" page. I'd suggest trying something trivial like:

<html> <head> <title>CHEESY INDEX PAGE</title></head> <body> And here's a link to <a href="http://protechflooring.co.uk/cgi-bin/boink.pl">a page that +doesn't exist</a> as well as a link to <a href="http://protechflooring.co.uk/cgi-bin/perl_script.pl">the sc +ript you have</a> </body> </html>

Since you're getting a 500 error on the perl script, either the web server is misconfigured somehow, or the script is encountering an error while running. So let's try putting a totally simple perl script there to see if it will work. So we want the simplest possible thing. Perhaps just printing something, and nothing else, like this:

#!/usr/bin/perl print "Content-type: text/html\n\n"; print "NOTHING TO SEE HERE!\n";

I used the path /usr/bin/perl, as it looks like it should be either that or /usr/local/bin/perl depending on how I should interpret the dialog near the beginning.

So if it were me, I'd upload the index.html page and the script above into cgi-bin as boink.pl. Then I'd try to hit http://protechflooring.co.uk.

I'd hope it would show the cheesy index page. If so, that's one problem down. I'd then try to hit http://protechflooring.co.uk/cgi-bin/boink.pl (or just press the link, if the index.html page works properly) and see if we still get a 500 error or not. We it works and we get a blank (or "NOTHING TO SEE HERE"), then it would indicate a problem somewhere in perl_script.pl. If we still get a 500 error, then I'd try changing the script to use the other path and try again.

Do you have shell access to the machine you're uploading to?

I'll monitor this thread for a while and see how far you're getting.

Update: after reading huck's link to hostgator support, I struck out some irrelevent stuff.

Update: Added the content-type bit. Thanks to tangent for pointing it out!

...roboticus

When your only tool is a hammer, all problems look like your thumb.


In reply to Re: Please Save Me From Insanity!!! by roboticus
in thread Please Save Me From Insanity!!! by bennierounder

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-26 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found