[thelist] Apache ... configuration problem

Daniel J. Cody djc at members.evolt.org
Tue Nov 6 10:57:05 CST 2001


the date and flock() functions are both unix specific george :(

something like:
use Date::Manip;
$date_command = UnixDate(ParseDate('now'),'%B %d, %Y');

should work better for you on win32.. not sure about the flock() stuff 
though :(

lemme know how it goes :)



George Dillon <> Evolt! wrote:

> ----- Original Message -----
> 
>>Subject: [thelist] Apache + ActivePerl CGI not working locally etc.
>>Date: Mon, 5 Nov 2001 16:04:32 -0000
>>
> 
> I've fixed the path problem... so now I can open/read/write files (solution
> below).
> 
> But I still can't get date to work in the lines:
> 
>    $date_command="/bin/date"; # STILL NOT WORKING
>    $logdate= `date +"%Y%m.log"`; # STILL NOT WORKING
>    $getdate = `date +"%d/%b/%Y:%T"`;  # STILL NOT WORKING
> 
> And the flock line throws up this error:
> 
>   flock() unimplemented on this platform at f:\HOME\etc.
> 
> I thought these would be standard functions within Apache, but obviously
> not.  Does this mean these are extras (modules ?) and I have to do something
> more to install them and/or tell Apache (or to get Apache to tell my CGI
> script) where to find them?
> 
> If so what do I do?
> 
> The above script causes Perl to go into some sort of endless loop, and it
> won't shut-down whatever I do (i.e. CTRL+ALT+DEL fails and a number of
> taskmanager's kill utilities also fail).  Result - I can only shut down
> Win98 using the reset button - nasty!
> 
> What's Perl trying to do and is there a way to kill Perl once it does this,
> or is there a magic-bullet line of script to prevent such a fatal error (I'm
> already using "use CGI::Carp qw(fatalsToBrowser);" and it's not working!)?







More information about the thelist mailing list