What everyone else said, and a couple of other things.

You should check the permissions on *every* directory up to the root, if you haven't already.

Another thing I find useful when I'm ripping my hair out, is and this works only if you have root access to the machine, is to run strace on the web server on Linux. On Solaris, use truss.

The command would be:

strace -f apachectl start or truss -f apachectl start
This may produce a lot of output, so you can redirect the output to to a logfile.

Update: jeffa suggested I mention redirecting STDERR, but you don't have to do that, you can use the "-o" option to direct the trace output to a logfile. "-o logfilename" works with both strace and truss.

One can then use less or tail -f to look at the logfile. STDERR and STDOUT will then appear with the running process as usual.

This method of testing works equally well for any script you might write in addition to CGI.

Another cool option is using "-p" to attach to a running process.

Mike - mps@discomsys.com

"The two most common elements in the universe are hydrogen... and stupidity."
Harlan Ellison


In reply to Re: FILE NOT FOUND 404 error - INTERMITANT by unixwzrd
in thread FILE NOT FOUND 404 error - INTERMITANT by alexiskb

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.