Apache::ASP permissions problem?

2000-12-21 Thread Michael Hurwitch

I have been trying to install Apache:ASP 2.07 on Solaris 2.6 with Perl
5.6.0. When I try to load an ASP page, I get the following errors:


Errors Output
  1.. Can't open /tmp/.state/3d/3d8ae603196.lock: ,
/raid1/perl5.6.0/lib/site_perl/5.6.0/Apache/ASP.pm line 4831
Debug Output
  1.. Can't open /tmp/.state/3d/3d8ae603196.lock: ,
/raid1/perl5.6.0/lib/site_perl/5.6.0/Apache/ASP.pm line 4831
ASP to Perl Script

Here is the directory listing:
zeus:mhurwitch/tmp/.state/3d ls -ltotal 0-rw-r-   1 nobody   nobody
0 Dec 21 10:07 3d8ae603196.dir-rw-rw-rw-   1 nobody   nobody 0 Dec
21 10:07 3d8ae603196.lock-rw-r-   1 nobody   nobody 0 Dec 21
10:07 3d8ae603196.pag

Here is the ASP page:


HEAD

TITLEMike's ASP Page/TITLE

%
$Session-{"Test"} = "This is a test";
%

/HEAD

BODY

%
print "Hello!\n";
%

/BODY


Httpd.conf is pretty simple :

Files *.asp
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global /tmp
PerlSetVar Debug 2
/Files


If we use PerlSetVar NoState 1, the page works fine.

Apache runs as user 'nobody', and I think this is permissions problem, but
/tmp/.state seems to be fine.

I'd appreciate any help you can offer.

Thanks,

Michael Hurwitch

[EMAIL PROTECTED]




Re: Apache::ASP permissions problem?

2000-12-21 Thread Joshua Chamas

Michael Hurwitch wrote:
 
 I have been trying to install Apache:ASP 2.07 on Solaris 2.6 with Perl
 5.6.0. When I try to load an ASP page, I get the following errors:
 
 Errors Output
   1.. Can't open /tmp/.state/3d/3d8ae603196.lock: ,
 /raid1/perl5.6.0/lib/site_perl/5.6.0/Apache/ASP.pm line 4831
 Debug Output
   1.. Can't open /tmp/.state/3d/3d8ae603196.lock: ,
 /raid1/perl5.6.0/lib/site_perl/5.6.0/Apache/ASP.pm line 4831
 ASP to Perl Script
 
 Here is the directory listing:
 zeus:mhurwitch/tmp/.state/3d ls -ltotal 0-rw-r-   1 nobody   nobody
 0 Dec 21 10:07 3d8ae603196.dir-rw-rw-rw-   1 nobody   nobody 0 Dec
 21 10:07 3d8ae603196.lock-rw-r-   1 nobody   nobody 0 Dec 21
 10:07 3d8ae603196.pag
 

This looks like a bug in the way Apache::ASP sets the file
permissions.  Before you do anything, I would like to see
the ls -allg for .state and .state/3d ... but to 
fix your problem temporarily so you can move onto 
development, you can "chmod -R 0755 .state"

-- Josh

_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks  free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051