in reply to Re: Perl can't write files
in thread Perl can't write files

open ( UPLOADFILE, ">$filepath" ) or die "$!"; binmode UPLOADFILE; while ( <$file> ) { print UPLOADFILE $_; } close($file); close UPLOADFILE; }
It "die" on the the first line. The error on log is "Permission denied at /usr/lib/cgi-bin/script.cgi"

Replies are listed 'Best First'.
Re^3: Perl can't write files
by Arunbear (Prior) on Apr 10, 2014 at 11:13 UTC
    Does script.cgi have execute permissions? If not:
    chmod +x script.cgi