Announcement

Collapse
No announcement yet.

Script or Merge File Problems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Script or Merge File Problems

    Last week ended as a bit of a nightmare as I was unable to load my site. I got problems with the merge file.

    I spent hours checking everything - and received a great deal of help from Actinic. Eventually the support guys realised it was a script problem. This was a server problem (Claranet) which was reported Friday morning and fixed on Monday afternoon.

    I thought that it would be useful if I posted up a simple check.

    Create a file called hello_world.html with the following content:

    <HTML>
    <HEAD>
    <TITLE>Hello World CGI Script</TITLE>
    </HEAD>
    <BODY>
    <A HREF="http://www.highlandclans.co.uk/cgi-bin//hello_world.pl">Say hello to the world!</A>
    </BODY>
    </HTML>

    then create the hello_world.pl



    #!/usr/bin/perl
    # The above line must contain the path to your Perl interpreter.
    # If you are not sure what this is, on most unix systems, you may
    # use the command "whereis perl".

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

    exit;
    Place the html file in your root (in my case www.highlandclans.co.uk) and then the pl file in your cgi bin.

    if you then click http://www.highlandclans.co.uk/hello_world.html you will see "Say hello to the world! "

    Click on this and if scripts etrc are working then you get this chearful response "Hello World!! "

    If I had done this I would have saved many hours of frustration.

    By the way many thanks to da boys and girls at Actinic and Claranet.
    Niall
    www.highlandclans.co.uk

    #2
    Thanks for the handy tip Niall
    Should certainly be quicker than waiting for a full refresh to confirm the server is going slow.
    Also confirms my fears that Claranet were having problems again.
    Our orders are usually around 10 a days, but had dropped to 1 or 2 over the weekend.
    Martin

    Comment

    Working...
    X