Replies: 4 comments 2 replies
-
You are probably looking for https://www.php.net/manual/en/session.configuration.php#ini.session.save-path |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Digging deeper I am still not sure of where the /tmp should be located. Where does phpldapadmin store the SESSION data (files)? I ma not seeing them in /tmp or finding an alternate path. The session seems to be creating, I do see a cookie with the session uid but I still get this error. Warning: Unknown: open(/tmp/sess_0ilrner3sa5omqo5dsh6ovn9d1, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 |
Beta Was this translation helpful? Give feedback.
-
Yesterday I injected phpinfo() into the opening page (/htdocs/index.php). This showed the session.path as ‘no value’ so I assume it would be /tmp by default.
The folder is wide open so why I get this error on the opening page is still a mystery. “E_WARNING: Unknown: open(/tmp/sess_lag45jer6fjbap1v09329jj8c2, O_RDWR) failed: No such file or directory (2)”
Is it possible that httpd, which is using an alias to point at phpldamadmin/htdoc is creating the issue with writing the session file ?
From: William Desportes ***@***.***>
Sent: Monday, September 25, 2023 11:35 PM
To: leenooks/phpLDAPadmin ***@***.***>
Cc: Deas, Jim ***@***.***>; Author ***@***.***>
Subject: Re: [leenooks/phpLDAPadmin] Location and pupose of this tmp file (Discussion #236)
[CAUTION]
This email originated outside Warner Bros.
The folder is located where the php ini config said it is located.
To find the file that defines the value run php --ini or a better alternative is to have a test page that has:
<?php
phpinfo();
It is not PLA that manages the storing of the files or their location, only PHP itself :)
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/leenooks/phpLDAPadmin/discussions/236*discussioncomment-7108892__;Iw!!AQdq3sQhfUj4q8uUguY!gGaXRJWgXbt8Su5OjG927Ep_0reh0aKQ521IGJq1U7FjKgxY03fwQebgqm-DWG0UQ4RtWtfmZ2d15T7qvzSSk4P2u3E$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AV3CSZO6W7PP356ON6ZUZCLX4JZPRANCNFSM6AAAAAA5GGKQBA__;!!AQdq3sQhfUj4q8uUguY!gGaXRJWgXbt8Su5OjG927Ep_0reh0aKQ521IGJq1U7FjKgxY03fwQebgqm-DWG0UQ4RtWtfmZ2d15T7qvzSSozTqUHY$>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
I am trying to recover a phpldapadmin instance embedded in our internal website. Currently, starting the app returns a warning:
E_WARNING: Unknown: open(/tmp/sess_5srr0j98g6glnuov2bdmligo07, O_RDWR) failed: No such file or directory (2)
Leads me to believe that a tmp directory somewhere has filled up, disappeared, or lost permission to create a files. Knowing that php can have its own /tmp directory, where is a good place to confirm the actual directory being used to troubleshoot this file creation issue?
Beta Was this translation helpful? Give feedback.
All reactions