SELinux?

> On Jun 25, 2015, at 1:30 PM, dan moylan <[email protected]> wrote:
> 
> 
> my website moylan.us containes several cgi scripts, which
> have run fine for years and continue to do so.  my local
> versions used to run fine, but no longer do.  to check, i
> cobbled up a test script which exhibits the problem.
> 
> ############################################################
> #! /usr/bin/perl -wT -I./
> # moyts6.cgi
> 
>  use strict;
>  BEGIN {
>       $ENV{"PATH"} = "/bin:/usr/bin";
>       delete @ENV{ qw(IFS CDPATH ENV BASH_ENV) };
>  }
>  use CGI;
>  use CGI::Carp qw (fatalsToBrowser);
>  use FileHandle;
> 
>  my ($fhl, $fll, $time, );
>  $time = localtime;
>  $fll = "/home/moylan/www/cgi-bin/stuff/moyts6.log";
>  $fhl = new FileHandle ();
>  $fhl->open ($fll, "w") or die "couldn't open $fll";
>  $fhl->printf ("# MOYTS6\n\n");
> 
>  print "Content-type: text/html\n\n";
>  print <<END_OF_PAGE;
>  <html>
>  <head>
>         <title> moyts6 </title>
>  </head>
>  <body>
>         <h1>Test Page -- moyts6</h1>
>         <p> paragraph 1 </p>
>         <p> paragraph 2 </p>
>         <p> time: $time </p>
>  </body>
>  </html>
> 
> END_OF_PAGE
> 
> ############################################################
> 
> ON-LINE SITE (moylan.us)
> theodore:moylan:~/www/cgi-bin/stuff [1003] uname -a
>   Linux theodore.genwebserver.com
>   2.6.32-531.29.2.lve1.3.11.1.el6.x86_64
>   #1 SMP Thu Dec 18 06:49:17 EST 2014
>   x86_64 x86_64 x86_64 GNU/Linux
> theodore:moylan:~/www/cgi-bin/stuff [1004] perl --version
>   This is perl, v5.10.1 (*)
>   built for x86_64-linux-thread-multi
> 
> when moyts6.cgi runs
>   aok
> 
> LOCAL SITE (localhost)
> moylan stuff [1024] uname -a
>   Linux aldeberon
>   4.0.5-200.fc21.x86_64
>   #1 SMP Mon Jun 8 16:25:02 UTC 2015
>   x86_64 x86_64 x86_64 GNU/Linux
> moylan stuff[1030] perl --version
>   This is perl 5, version 18, subversion 4 (v5.18.4)
>   built for x86_64-linux-thread-multi
>   (with 23 registered patches, see perl -V for more detail)
> 
> when moyts6.cgi runs
>   Software error:
>   couldn't open /home/moylan/www/cgi-bin/stuff/moyts6.log
>   at /var/www/html/moylan/cgi-bin/moyts6.cgi line 20.
> 
> the file permissions seem fine.  i even tried it out writing
> the log file to /tst/moyts6.log where tst has 777
> permissions -- same results.
> 
> any suggestions would be most appreciated.
> 
> tia,
> ole dan
> 
> j. daniel moylan
> 84 harvard ave
> brookline, ma 02446-6202
> 617-777-0207 (cel)
> [email protected]
> www.moylan.us
> [no html pls]
> 
> _______________________________________________
> Boston-pm mailing list
> [email protected]
> http://mail.pm.org/mailman/listinfo/boston-pm



The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to