• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

session.save_path problem

fabrizioi

Basic Pleskian
Hi to all,

I have activated a new linux dedicated server with centos5.4 and plesk8.6

I came from experience from plesk8.x/window2008, so this is first time on linux/plesk

I have problem with php and the session.save_path.

I have read the following kb
http://kb.odin.com/en/6781

When I set the environment like explain in the article the site became very slowly, it is possible ? Why ?

If, for example, I move the session save path to a folder inside the web directory for example:

/var/www/vhosts/<domain>/httpdocs/tmp

The site works well, but this is incorrect and insecure because the sessions cannot be stored in a web directory I believe.

So I'd like to know which is the correct way to configure the session.save_path.

After any change I reconfigure the vhost.conf with:

websrvmng --reconfigure-vhost ....

And I restart the httpd service.

For the session I use the Pear/Auth Class that works well in windows environment for my experience.

Any help are appreciate.

Bye.
 
in /etc/php.ini change the session_path to /tmp
if you use su_php and you have for each domain your own php.ini then you can do there and then can be custom path
 
Hi,

Thanks for the replay.

So if I have correct understand:

I can edit php.ini and set session.save.path = /etc/tmp/

I must also integrate the "php_admin_value openbase_dir" located in /var/www/vhosts/<domain>/conf/vhost.conf with the /etc/tmp/ ?

I don't know su-php

It is possible and/or reccomended to store session in a layout like this: /tmp/sess_domain1/ /tmp/sess_domain2 and so on ?

Php garbage collector work well also in this situation ?


Bye
 
Hi,

I have found this article very very intresting, thanks for sharing.

I have apply some fix to my server, like explain in the article.

I have a question about the session.save_path.

The session file created in ./tmp have the apache:apache user:group setting.

This is correct ? Or I must install suPhp ? (I do not use any software at the moment listed in the article)

Bye
 
Yes, apache:apache is normal for files created by a php script (via apache) in /tmp.

Indeed, any file created by php anywhere in the filesystem will likely be apache:apache.

Only if you use su-php (not recommended unless you really know what you are doing, even with lvalic's wonderful info) will the owndership be different.

Faris.
 
Back
Top