473,378 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

session_write_close() failing

(As a *nix newbie) I think this is more of a system configuration problem
than a php language problem, but I'm not sure where else to go for help.
I'm trying to install phpMyAdmin on a linux shared hosting account. When I
run it (load phpMyAdmin's index.php with a browser), I get the following
three Warnings, and no other output:

Warning: session_write_close():
open(/tmp/php-ses/sess_0c21c95414d34dd67d6adf9ab3de88f6, O_RDWR) failed: No
such file or directory (2)

Warning: session_write_close(): Failed to write session data (files). Please
verify that the current setting of session.save_path is correct
(/tmp/php-ses)

Warning: Cannot modify header information - headers already sent by (output
started at [the session_write_close() call above])

session_write_close(); is the first statement that phpMyAdmin executes
after a couple of require_once's for .lib files. The third warning is
generated by...
// start output
header('Content-Type: text/html; charset=' . $GLOBALS['charset']);

phpinfo() shows that session support is enabled, and session_save_path is
/tmp/php-ses

If I call the hosting provider's tech support, I get, "sorry, we don't help
with scripting problems." Is there something specific that I can say needs
changing in their configuration? ... or, any helpful ideas would be very
appreciated.

--
For mail, please use my surname where indicated:
st***@surname.reno.nv.us (Steve Brecher)
May 2 '06 #1
3 8577
Steve Brecher wrote:
(As a *nix newbie) I think this is more of a system configuration problem
than a php language problem, but I'm not sure where else to go for help.
I'm trying to install phpMyAdmin on a linux shared hosting account. When I
run it (load phpMyAdmin's index.php with a browser), I get the following
three Warnings, and no other output:

Warning: session_write_close():
open(/tmp/php-ses/sess_0c21c95414d34dd67d6adf9ab3de88f6, O_RDWR) failed: No
such file or directory (2)

Warning: session_write_close(): Failed to write session data (files). Please
verify that the current setting of session.save_path is correct
(/tmp/php-ses)

Warning: Cannot modify header information - headers already sent by (output
started at [the session_write_close() call above])

session_write_close(); is the first statement that phpMyAdmin executes
after a couple of require_once's for .lib files. The third warning is
generated by...
// start output
header('Content-Type: text/html; charset=' . $GLOBALS['charset']);

phpinfo() shows that session support is enabled, and session_save_path is
/tmp/php-ses

If I call the hosting provider's tech support, I get, "sorry, we don't help
with scripting problems." Is there something specific that I can say needs
changing in their configuration? ... or, any helpful ideas would be very
appreciated.


So, does /tmp/php-ses exist, and does it have the correct permissions?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
May 2 '06 #2
I wrote:
(As a *nix newbie) I think this is more of a system configuration
problem than a php language problem, but I'm not sure where else to
go for help. I'm trying to install phpMyAdmin on a linux shared
hosting account. When I run it (load phpMyAdmin's index.php with a
browser), I get the following three Warnings, and no other output:

Warning: session_write_close():
open(/tmp/php-ses/sess_0c21c95414d34dd67d6adf9ab3de88f6, O_RDWR)
failed: No such file or directory (2)
[etc.]


Solution -- insert:
session_save_path ('/absolute/path/to/local/sessions/directory/');
at the start of phpMyAdmin's libraries/session.inc.php, where the string
argument is of course a "self-documenting dummy"(tm).

--
For mail, please use my surname where indicated:
st***@surname.reno.nv.us (Steve Brecher)
May 2 '06 #3
I wrote:
I wrote:
(As a *nix newbie) I think this is more of a system configuration
problem than a php language problem, but I'm not sure where else to
go for help. I'm trying to install phpMyAdmin on a linux shared
hosting account. When I run it (load phpMyAdmin's index.php with a
browser), I get the following three Warnings, and no other output:

Warning: session_write_close():
open(/tmp/php-ses/sess_0c21c95414d34dd67d6adf9ab3de88f6, O_RDWR)
failed: No such file or directory (2)
[etc.]


Solution -- insert:
session_save_path ('/absolute/path/to/local/sessions/directory/');
at the start of phpMyAdmin's libraries/session.inc.php, where the
string argument is of course a "self-documenting dummy"(tm).


I forgot to mention some context. The key was finding this from the hosting
provider: "customers cannot use the default PHP session path in /tmp.
Instead, sessions will need to be saved in each account’s home directory."

--
For mail, please use my surname where indicated:
st***@surname.reno.nv.us (Steve Brecher)
May 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sundeep Gawande | last post by:
I am facing a strange problem. I am trying to host a .NET(C#) control in a VC6 COM ocx. Now when I create the control using CreateControl(...) or CoCreateInstance(...) my call is failing with...
7
by: Kieran Simkin | last post by:
Hi all, I'm having some trouble with a linked list function and was wondering if anyone could shed any light on it. Basically I have a singly-linked list which stores pid numbers of a process's...
3
by: bob | last post by:
Hello, I've tried a few testing frameworks with C# but so far haven't found a way to debug into a failing test. I'm used to S Unit (Smalltalk) where when a test fails you just right click on it...
1
by: Frank Rizzo | last post by:
Hello, I have a bunch of thread in my app doing variuos things. One of them is failing at some point in the app and I can't (actually don't know how) figure out which one it is. Is there a way to...
3
by: Michael Tissington | last post by:
I'm using LoadLibrary to import a DLL in a asp.net application. The dll was written in c++ and is located in the bin folder I have been testing the website on my development machine and our...
18
by: Scott David Daniels | last post by:
There has been a bit of discussion about a way of providing test cases in a test suite that _should_ work but don't. One of the rules has been the test suite should be runnable and silent at every...
0
by: a_rajanikanth | last post by:
Hi, The following is the trigger which is failing when executing. Can you please tell me the reason why it is failing ? Trigger got created but throwing exception. CREATE TRIGGER TOBJ_U...
0
by: seye.ojumu | last post by:
Hello, I'm trying to nail down an issue and I'm not entirely sure what is wrong. It is this "loading pages that share a session problem." The solution, as I've read many places, should be to...
3
by: noon | last post by:
I'm runing an xmlHttpRequest to get the site's source code and then applying the regex xhr.responseText.split(/<body*>((?:.|\n)*)<\/body>/i) Works for google.com. Fails on yahoo.com and...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.