[horde] session_start is throwing an error

Vijay Sankar vsankar at foretell.ca
Wed Apr 18 15:49:47 UTC 2018


Quoting Patrick Boutilier <boutilpj at ednet.ns.ca>:

> On 04/18/2018 12:29 PM, Mike Poznecki wrote:
>>
>>
>> On Wednesday, April 18, 2018, 10:24:22 AM CDT, Patrick Boutilier  
>> <boutilpj at ednet.ns.ca> wrote:
>>
>>
>> On 04/18/2018 12:20 PM, Mike Poznecki wrote:
>> >
>> >
>> > On Wednesday, April 18, 2018, 10:18:13 AM CDT, Patrick Boutilier
>> > <boutilpj at ednet.ns.ca <mailto:boutilpj at ednet.ns.ca>> wrote:
>> >
>> >
>> > On 04/18/2018 12:11 PM, Mike Poznecki wrote:
>> >
>> >  >
>> >  >
>> >  > On Wednesday, April 18, 2018, 9:41:33 AM CDT, Patrick Boutilier
>> >  > <boutilpj at ednet.ns.ca <mailto:boutilpj at ednet.ns.ca>  
>> <mailto:boutilpj at ednet.ns.ca <mailto:boutilpj at ednet.ns.ca>>> wrote:
>>
>> >  >
>> >  >
>> >  > On 04/18/2018 11:39 AM, Mike Poznecki wrote:
>> >  >
>> >  >  > Hi all,  I have a new Horde install.  When I try to log in, I get
>> >  > HORDE: PHP ERROR: session_start():
>> >  > open(/var/lib/php/session/sess_5skahi3sno28lsa, 0_RDWR) failed: No such
>> >  > file or directory (2) [PID 3821 on line 204 of
>> >  > "/usr/share/pear/Horde/Session.php"]
>> >  >  > Why would I be getting this error?
>> >  >
>> >  >  >
>> >  >
>> >  > Does the /var/lib/php/session directory exist? If so, can the user that
>> >  > the web server runs as write to the directory?
>> >  >
>> >  >
>> >  >
>> >  > Yes, the directory exist and has permissions of 770.  So it should be
>> >  > able to be written to and read from.
>> >
>> >
>> >
>> > Only if the web server user is the owner of the directory or is part of
>> > the group that owns the directory.
>> >
>> > What does this command show?
>> >
>> > ls -ld /var/lib/php/session
>> >
>> >
>> >
>> >
>> >
>> > It shows:
>> > drwxrwx---  2  root  apache  8192 Apr 18 07:33  /var/lib/php/session/
>>
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>>
>> As long Apache is running as group apache that should work.
>>
>> Does this create the file TEST in /var/lib/php/session ?
>>
>> sudo -u apache touch /var/lib/php/session/TEST
>>
>>
>>
>> Yes it does
>>
>
> So doesn't appear to be a permissions problem. I am out of ideas.

Hi Mike,

I am an OpenBSD user and in my case, /var/www/ has subdirectories for  
pear, horde, htdocs etc. Long time ago, when I did not do a ln -s  
../horde /var/www/htdocs/horde, I recall getting the error you got.

So it may help to get some details of what you are using to run Horde,  
whether it is a chroot'ed web server etc. Hope it helps.

Vijay


Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
vsankar at foretell.ca



More information about the horde mailing list