Ok, checked the SELinux status:
# cat /selinux/enforce 1
was set to enforcing, did the following:
# echo 0 >/selinux/enforce
It now writes the files and no longer gets the "could not open socket" error. Now it is timing out on the DNS Resolver, httpd log:
[Wed Apr 08 10:51:09 2009] [error] [client 209.18.32.79] Name "main::r +everse" used only once: possible typo at /var/www/cgi-bin/ipsectest/i +psectest.pl line 98., referer: http://inoc.cdptpa.rr.com/tools/ipsect +est.html [Wed Apr 08 10:53:09 2009] [warn] [client 209.18.32.79] Timeout waitin +g for output from CGI script /var/www/cgi-bin/ipsectest/ipsectest.pl, + referer: http://inoc.cdptpa.rr.com/tools/ipsectest.html [Wed Apr 08 10:53:09 2009] [error] [client 209.18.32.79] (70007)The ti +meout specified has expired: ap_content_length_filter: apr_bucket_rea +d() failed, referer: http://inoc.cdptpa.rr.com/tools/ipsectest.html
Changed the Resolvers nameserver variable and the output is fine now. SELinux apparently was the culprit. Thanks for the help.

In reply to Re^2: Perl?Apache issue on newly installed server by Dranzaz
in thread Perl?Apache issue on newly installed server by Dranzaz

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.