[thelist] Apache SSL and Perl save file

Andrew Chadwick andrew.chadwick at prnewswire.co.uk
Wed Sep 19 08:36:26 CDT 2001

On Wed, Sep 19, 2001 at 07:43:22AM -0500, Mark Gillingham wrote:
> I inherited a set of Perl scripts that collects student information and 
> saves it to a flat text file. I needed to move the scripts to a new 
> host, but still on Linux. The scripts work in non-SSL calls (http) and 
> most of the work in SSL too (e.g., https). The part that does not work, 
> but only in SSL, is appending a text variable to an open file.
> My question. Does Linux/Appache SSL have different rules for appending 
> to a file when SSL is on versus when it is off?

Odd. Don't think it could, assuming you're using the Perl iterpreter
itself rather than mod_perl. Only one thing I can think of really:
check your script's effective uid and gid and make sure they can write
to the file in question. Check that the script can really open the
file by opening it like

   open (OUT, ">>", $file)   or die "can't open $file: $!\n";

and check your server logs if it breaks after doing that.

Andrew Chadwick, UNIX/Internet Programmer, PR Newswire Europe, Oxford
The views or opinions above are solely mine and are not necessarily those
of PR Newswire Europe. The message may contain privileged or confidential
information; if you are not a named recipient, notify me, and do not copy,
use, or disclose this message. <andrew.chadwick at prnewswire.co.uk>.

More information about the thelist mailing list