weird behaviour of Sessions directory on MediaTemple (dv) host
- From: internet@xxxxxxxxx
- Date: Thu, 29 Nov 2007 09:48:02 -0800 (PST)
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?
.
- Follow-Ups:
- Prev by Date: Re: connecting to internet via certain ip address
- Next by Date: connecting internet using N73 to my pc(suse 10.2)
- Previous by thread: nss_ldap and pam_ldap is enough?
- Next by thread: Re: weird behaviour of Sessions directory on MediaTemple (dv) host
- Index(es):
Relevant Pages
|