You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Michael Hurwitch <mh...@goebusiness.com> on 2000/12/21 16:20:42 UTC
Apache::ASP permissions problem?
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>
<TITLE>Mike'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
mhurwitch@goebusiness.com
Re: Apache::ASP permissions problem?
Posted by Joshua Chamas <jo...@chamas.com>.
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.com 1-714-625-4051