Hi Brendon,

Unless you have full control of the Plesk server you will be unable to edit the 
php.ini directly.
As Plesk is essentially a permissions segmented control panel, which resides on 
an Apache/PHP stack and controls the VirtualHost directives when installed on a 
Linux server (for the Web server part anyway),
editing the php.ini on the server will affect not only your own VirtualHost, 
but also everyone else's - so not's not something that should be done, and 
essentially can't be from a Plesk client point of view.

However, Plesk have implemented the ability to alter your own VirtualHost 
configuration - similar as you would on a standard LAMP server.
The difference on a Plesk server is that you do not edit the VirtualHost 
file/directives themselves (located in the /conf dir), as they'll get over 
written by Plesk on reloads etc,  but you add a vhost.conf file to your Plesk 
users /conf directory.

The vhost.conf file is structured similarly to an Apache Vhost file, but you 
only add the directives you want to change.

In your case:

<Directory /var/www/vhosts/[domain.co.nz]/httpdocs>
  php_admin_value session.save_path 
"/var/www/vhosts/[domain.co.nz]/temp/session"
</Directory>

Of course your domain/locations may vary.


Looking at your session variables currently set, I don't see anything abnormal 
with the current configuration.
It's looks like a default  Plesk PHP setup (I run a few Plesk servers myself).

Perhaps you should compare the settings on the previous server to see what is 
different (with exception to the session_save_path).
First thing I would check is the auto_start setting - if that's turned off on 
your current hosting, and you do not explicitly start a session on every page 
load, you will not be able to access/store session information.

HTH

~ C




From: [email protected] [mailto:[email protected]] On Behalf Of 
Brendan Brink
Sent: Friday, 21 January 2011 4:02 p.m.
To: [email protected]
Subject: [phpug] Session Issue

hi there,

I am migrating a system from shared hosting to its own server and having issues 
with sessions saving between pages. I am guessing I need to alter the php.ini 
file, but not sure how to do this on the server. Running Plesk on the new 
server.

The current system phpinfo is as follows:
session
Session Support

enabled

Registered save handlers

files user sqlite

Registered serializer handlers

php php_binary wddx


Directive

Local Value

Master Value

session.auto_start

Off

Off

session.bug_compat_42

Off

Off

session.bug_compat_warn

On

On

session.cache_expire

180

180

session.cache_limiter

nocache

nocache

session.cookie_domain

no value

no value

session.cookie_httponly

Off

Off

session.cookie_lifetime

0

0

session.cookie_path

/

/

session.cookie_secure

Off

Off

session.entropy_file

no value

no value

session.entropy_length

0

0

session.gc_divisor

1000

1000

session.gc_maxlifetime

1440

1440

session.gc_probability

1

1

session.hash_bits_per_character

5

5

session.hash_function

0

0

session.name<http://session.name>

PHPSESSID

PHPSESSID

session.referer_check

no value

no value

session.save_handler

user

files

session.save_path

no value

no value

session.serialize_handler

php

php

session.use_cookies

On

On

session.use_only_cookies

Off

Off

session.use_trans_sid

0

0




____

the phpinfo on the server is:
session
Session Support

enabled

Registered save handlers

files user

Registered serializer handlers

php php_binary wddx


Directive

Local Value

Master Value

session.auto_start

Off

Off

session.bug_compat_42

Off

Off

session.bug_compat_warn

On

On

session.cache_expire

180

180

session.cache_limiter

nocache

nocache

session.cookie_domain

no value

no value

session.cookie_lifetime

0

0

session.cookie_path

/

/

session.cookie_secure

Off

Off

session.entropy_file

no value

no value

session.entropy_length

0

0

session.gc_divisor

1000

1000

session.gc_maxlifetime

1440

1440

session.gc_probability

1

1

session.hash_bits_per_character

5

5

session.hash_function

0

0

session.name<http://session.name>

PHPSESSID

PHPSESSID

session.referer_check

no value

no value

session.save_handler

files

files

session.save_path

/var/lib/php/session

/var/lib/php/session

session.serialize_handler

php

php

session.use_cookies

On

On

session.use_only_cookies

Off

Off

session.use_trans_sid

0

0

_____________

im guessing the issue has to do with the save_path setting or the save_handler.

If anyone could assist me with how to FIND and update the php.ini file.

Im using Dreamweaver.

Would be most appreciated as its quite urgent.

Thanks
Brendan.
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to