Forum

Thread tagged as: Problem, Error, Configuration

Having trouble signing in

A website I built for a city airport suddenly decided to stop letting people sign in. I'm getting the following debug message when trying to login.

SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=0
Queries: 1
Memory: 0.6342
Array
(
    [type] => 2
    [message] => session_start(): open(/tmp/php/session/sess_4aktvs1mvussc5h9armml6k7r4, O_RDWR) failed: No such file or directory (2)
    [file] => /var/www/html/perch/core/lib/PerchSession.class.php
    [line] => 19
)

Im pretty sure it has something to do with too many PHP sessions, I just need confirmation as Im not well versed in PHP. The DB is hosted on the city servers, so I don't have much access to it.

Cheers, Matt

MATTHEW URSO

MATTHEW URSO 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You server is configured to store session data in /tmp/php/session but that location doesn't exist or isn't accessible.

You should speak to your server administrator.

Drew McLellan said:

You server is configured to store session data in /tmp/php/session but that location doesn't exist or isn't accessible.

You should speak to your server administrator.

Thanks Drew,

I thought as much. I'll contact the city to see if I can get that folder back.

Hey Guys,

It looks like my server admin changed something on their end as I have a new debug message.

SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=0
Queries: 1
Memory: 0.6331
Array
(
    [type] => 2
    [message] => session_start(): open( where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;     session.save_path = N/sess_66pdi2lpe3avmske8qq4uht7d6, O_RDWR) failed: No such file or directory (2)
    [file] => /var/www/html/perch/core/lib/PerchSession.class.php
    [line] => 19
)
Drew McLellan

Drew McLellan 2638 points
Perch Support

That's still something you need to sort out with your server admin.

Hey Drew,

Thanks for clarifying. What should I be specifically asking them? It looks like they resolved the session folder (/tmp/php/session) issue, but the error message above is a different animal.

Thanks. Matt

Drew McLellan

Drew McLellan 2638 points
Perch Support

I would just show them the error you're getting. That's not coming from Perch.