weird behaviour of Sessions directory on MediaTemple (dv) host



i just migrated my Oscommerce based site from mediatemple GS plan (a
shared hosting) to a DV plan (virtual private/dedicated)

the new url is: http://72.47.210.90/
the new server installs CentOS 4.4 (more specs here
http://kb.mediatemple.net/article.php?id=239)

the server's FS looks like this:
* drwxrwxrwx --- tmp
* ....
* drwxr-xr-x --- usr
* drwxr-xr-x --- var
o tmp
o ...
o www
+ html
+ ...
+ vhosts
# ...and so on...
+ ...
o db
o ...
o lib
and so on.....

at first, I saw the session was not working properly, and i was
getting warnings from the application (Warning: The sessions directory
does not exist)

I then tried to create TMP folders everwhere (www, vhost,
domainname.com, httpdocs ), always giving chmod 777, right owner, and
eventually changing the session.save_path accordingly, but always with
same error.

Later i did more test, and i realized the session files are actually
created in the right folder when the pages load, but:

the main problem is:
1. a new session file is created on every page reload, so the session
information are not kept between one page an another

plus, other strange details which are not creating problems directly,
but may be related:
2. is_dir() function doesnt see the session folder path
[is_dir('/var/www/vhosts/mydomain.com/tmp') returns FALSE]

3. for testing, i tried to printout the dir structure from within php:
while (false !== ($file = readdir('./'))) {
if ($file != "." && $file != "..") {
echo "$file\n";
}
}

on other servers it will return the folder content, eg:
html
cgi-bin
..htaccess

while on this server i get nothing, just like i was on the root of the
server!

mediatemple is not answering on this, and i am lost!
could anyone enlighten me?
.



Relevant Pages

  • Re: weird behaviour of Sessions directory on MediaTemple (dv) host
    ... existence of the session directory in order to work. ... therefore, in the original settings of the server, php could not find ... is_dirfunction doesnt see the session folder path ...
    (comp.os.linux.networking)
  • Re: ASP IIS Session Hell
    ... Sessions are maintained by cookies passed between the server and browser. ... If the server is not sending the session cookie, ... 3 sites off a common folder, ...
    (microsoft.public.inetserver.iis)
  • Sharing sessions across virtual directories/projects
    ... I am setting a session in one directory. ... for this folder is runnig in the root directory of the server. ... I am then redirecting to to a virtual directory which is ... I am currently using the same SQL Server to handle sessions. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: RWW Timing
    ... I understand that you want to monitor when and how ... > to an internal Windows XP or Terminal Server computer. ... SBS creates a connection to the internal client on port 3389 which is ... But it can not tell which one session from the RWW, ...
    (microsoft.public.windows.server.sbs)
  • Re: Restricting TS USers
    ... MCSE, CCEA, Microsoft MVP - Terminal Server ... Terminal Services and Microsoft Windows Server 2003 Service Pack ... the remote session does not end immediately. ...
    (microsoft.public.windows.terminal_services)