[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: php+sessions
Have you installed the package PHP-Pear ?
http://pt2.php.net/manual/en/install.openbsd.php
Chris Alatakis wrote:
>3.4 GENERIC#18 i386
>PHP 4.3.3 (cli) (built: Sep 7 2003 22:26:05)
>Zend Engine v1.3.0
>Php core is build from pkg all loaded modules from ports(gd,xml etc almost
>all)
>Apache default openbsd install is chrooted to /var/www and works ok with php
>except sessions.
>When a session starts session is written to tmp/php in jail succesfully.
>permissions are 777 and chown root.daemon of tmp and tmp/php directory in
>jail
>
>But session handling is not working and I am going crazy. I see the session
>file, I can read it
>but when a call from a script sessions dont work:
>From apache logs:
>PHP Warning: session_start():
>open(tmp/php/sess_c72e8a8ce41348dee0af9bc332b0556d, O_RDWR)
>failed: No such file or directory (2) in
>/home/domain/www/domain/test1/ses.php on line 7
>
>The file sess_c72e8a8ce41348dee0af9bc332b0556d exists and php has
>permissions to that as it is
>already created.(user www)
>
>But the file is there!!!
># ls -la /var/www/tmp/php
>-rw------- 1 www daemon 8 Feb 4 00:39
>sess_c72e8a8ce41348dee0af9bc332b0556d
>
>In previous versions of php there was no Registered save handlers => files
>"user" in php info at least
>What excactly is "user". Do I make smth wrong?
>I know that it is not a php mailing list but If someone has any idea what is
>going on
>will be a grate help.
>
>Thanks and these are my settings.
>
>Session Support => enabled
>Registered save handlers => files user
>----------------------------------------------------------------------------
>-------------------
>Directive => Local Value => Master Value
>session.auto_start => Off => Off
>session.bug_compat_42 => Off => Off
>session.bug_compat_warn => On => On
>session.cache_expire => 180 => 180
>session.cache_limiter => nocache => nocache
>session.cookie_domain => no value => no value
>session.cookie_lifetime => 0 => 0
>session.cookie_path => / => /
>session.cookie_secure => Off => Off
>session.entropy_file => no value => no value
>session.entropy_length => 0 => 0
>session.gc_divisor => 1000 => 1000
>session.gc_maxlifetime => 1440 => 1440
>session.gc_probability => 1 => 1
>session.name => PHPSESSID => PHPSESSID
>session.referer_check => no value => no value
>session.save_handler => files => files
>session.save_path => tmp/php => tmp/php
>session.serialize_handler => php => php
>session.use_cookies => On => On
>session.use_only_cookies => Off => Off
>session.use_trans_sid => On => On
>
>Regards,
>
>Chris
>
>
>
--
Manuel Pata
pata (ate) alface (dote) de