To find out what is going on you must check your web server's logs and your CGI script's logs if it has its own. If there is a proxy server between your web browser and web server, you will also have to check the logs on your proxy server.

If your script is producing correct HTML as you say then presumably the problem is with the browser accessing the files. In this case, you should find records in your web server's access log or proxy server logs that record the attempt to access the files, with some status other than 200 and a corresponding record in your web server's error log indicating the cause of the failure, which is likely that permission is denied. If you don't find these records, then it is likely that either your HTML is not correct or your web server is not logging adequately - check your web server's documentation for guidance on how to set up its logs or talk with your web server administrator.

If it is your CGI script that is unable to access the files, it should be producing error messages. If not, then you need to improve your script to test that operations complete successfully and produce error messages when they fail to do so. Depending on how you produce your error messages, they may appear in the browser (e.g. if you use CGI::Carp with qw(fatalsToBrowser)) in your web server's error logs (e.g. if you write error messages to STDERR) or in your scripts error logs if it has its own.


In reply to Re: File Not Found by ig
in thread File Not Found by Loerps

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.