I've just run into the same problem. I get the premission denied error when
ever I use %udat. Here is the information.
setup
----
Apache-Session-1.03
HTML-Embperl-1.2.1
mod_perl-1.24
apache_1.3.12
the startup
----
[jwalstra@www1 conf]$ ../bin/apachectl start
[5050]SES: Embperl Session management enabled (1.xx)
../bin/apachectl start: httpd started
from my httpd.conf
----
PerlSetEnv EMBPERL_SESSION_CLASSES "DBIStore SysVSemaphoreLocker"
PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:sessions UserName=global
Password=global"
PerlModule HTML::Embperl
command line access of sessions database
----
[jwalstra@www1 conf]$ mysql --user=global --password=global sessions
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 35306 to server version: 3.22.22
Type 'help' for help.
mysql> explain sessions;
+-----------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+-------------+------+-----+---------+-------+
| id | varchar(32) | | PRI | | |
| a_session | text | YES | | NULL | |
+-----------+-------------+------+-----+---------+-------+
2 rows in set (0.00 sec)
mysql>insert into sessions (a_session) values ('test');
Query OK, 1 row affected (0.00 sec)
mysql> delete from sessions where a_session='test';
Query OK, 1 row affected (0.00 sec)
my test app
-----------
[-
$udat{message} = "HI";
-]
<html>
<head>
<title>test</title>
<head>
<body>
test
</body>
</html>
the error
---------
[5052]ERR: 24: Line 1: Error in Perl code: Permission denied at
/usr/lib/perl5/site_perl/5.005/Apache/Session/SysVSemaphoreLocker.pm line 63.
When I do an IPC, I get the following.
----
[jwalstra@www1 public_html]$ ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x05f42a8b 16257 daemon 666 34868 0
0x00000000 106376 jwalstra 600 46084 3 dest
------ Semaphore Arrays --------
key semid owner perms nsems status
0x000d9479 0 daemon 666 1
0x000d946e 1 daemon 666 1
------ Message Queues --------
key msqid owner perms used-bytes messages
----
I've never used IPC before, so I'm not sure what the output is telling me. I do
know that the "jwalstra" is my apache, since when I shut down apache that line
disappears. The user and group for people connecting is the same as the user
and group of apache.
User jwalstra
Group users
Well, that's about it for information that I think is usefull.
Thanks,
John
>I've been having a lot of problems with sessions lately. I'll run through
>everything I've done so far.
>
>I have currently downgraded my Apache::Session from 1.53 to 1.03 since I am
>running Embperl 1.2.1 with mod_perl 1.24. In my original httpd.conf file I
>previously used:
>
>PerlSetEnv EMBPERL_SESSION_CLASSES "DBIStore SysVSemaphoreLocker"
>PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:sessions
UserName=username Password=password"
>However, if I use SysVSemaphoreLocker then I get this error when it tries
>to load a page from a browser.
>
[>27330]ERR: 24: Line 12: Error in Perl code: Permission denied at
>/usr/local/lib/perl5/site_perl/5.005/Apache/Session/SysVSemaphoreLocker.pm
>line 63.
>Apache/1.3.12 (Unix) mod_perl/1.24 HTML::Embperl 1.2.1 [Fri Sep 15 23:22:42
>2000]
--
John Walstra CNET Networks / Apollo Solutions
Senior Software Developer 300 Park Blvd, Suite 105
mailto:[EMAIL PROTECTED] Itasca, IL 60143-4914
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]