> > ------ Semaphore Arrays --------
> > key       semid     owner     perms     nsems     status
> > 0x000d9479 0         daemon    666       1
> > 0x000d946e 1         daemon    666       1
> >
> 
> The nsems values must be higher for Apache::Session (>=8). I am not an IPC
> guru, but if you are on a test system, I would try to use ipcrm to delete
> these both semaphores. I guess one of them is in the way. Then
> Apache::Session can recreate his semaphore. If this is not a test system, be
> carefull not to delete a semaphore that is needed by another process

I have the same problem.  I stopped all servers (apache and postgres), 
deleted all semaphores and shared memory segments and restarted the
servers.  Now I get in apache logs:

[Fri Sep 22 13:56:47 2000] [error] Cannot require
Apache::Session::Lock::SysVSem aphoreLocker at
/usr/lib/perl5/site_perl/5.005/i386-linux/HTML/Embperl/Session.pm
line 204.

[Fri Sep 22 13:56:47 2000] [error] Cannot require
Apache::Session::Lock::SysVSem aphoreLocker at
/usr/lib/perl5/site_perl/5.005/i386-linux/HTML/Embperl/Session.pm
line 204.

[Fri Sep 22 13:56:47 2000] [error] Can't locate
auto/HTML/Embperl/ScanEnviron.al
 in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux
/usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005 . /usr/local/apache/
/usr/local/apache/lib/perl) at /usr/lib/perl5/site_perl/5.005/i3
86-linux/HTML/Embperl.pm line 1222

[Fri Sep 22 13:56:47 2000] [error] Can't locate
auto/HTML/Embperl/ScanEnviron.al
 in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux
/usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005 . /usr/local/apache/
/usr/local/apache/lib/perl) at /usr/lib/perl5/site_perl/5.005/i3
86-linux/HTML/Embperl.pm line 1222

However everything seems to work OK if I changed

PerlSetEnv EMBPERL_SESSION_CLASSES "File SysVSemaphoreLocker"

into

PerlSetEnv EMBPERL_SESSION_CLASSES "File File"

in apache config.  I am storing sessions in a file because I run
PostgreSQL instead of MySQL and I couldn't get session handling to
work with postgresql.  Anyone knows how?

My config is

Red Hat Linux release 6.2
Linux kernel 2.2.14-5.0
Server version: Apache/1.3.12 (Unix)
mod_perl-1.24
Apache-Session-1.53
DBD-Pg-0.95
DBI-1.14
HTML-Embperl-1.3b5

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to