• 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!
  • 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.

Question vhost php session location

Ahmad12

Basic Pleskian
Hello,

when i'm using the default php session location for webserver php 7.0.8, i'm getting session issue for magento, so what the correct session path?

Regards,
 
Hi Ahmad12,

your domain/subdomain - specific PHP - settings can be set at

Home > Subscriptions > example.com > Websites & Domains > PHP Settings

The standart "session.save_path" is based on the depending PHP - handler "php.ini", which is in your case located at "/opt/plesk/php/7.0/etc/php.ini", which can be as well edited over the Plesk Control Panel at:

Home > Tools & Settings > PHP Settings > Settings for 7.0.8 CGI application
( !!! Note !!! : "This php.ini file is also used by the following PHP handlers: 7.0.8 FastCGI application, 7.0.8 FPM application. The settings apply to all websites that use these handlers." )​
 
that is right and clear, the default session path is: /var/lib/php/session, the issue that the installed application (magento 2) has denied permission to the session location
 
Hi Ahmad12,

there are very, very few information and that leaves space only for guessings.

You don't include your operating system, you don't include your Plesk version ( incl. MU ), you don't include log - files, you don't include configurations files, you don't include, how you installed Magento 2 ( version number ?!? ) and you don't include as well WHERE you experienced the issue/problem/failure, so it might be reproduced by people willing to help you. It is as well a good idea to tryout different browser, to ensure, that neither the browser, nor your browser settings are the root cause of your issue.

I can only recommend to use the FORUM SEARCH, where you should find several threads, which might help you:

https://talk.plesk.com/search/search?&keywords="/var/lib/php/session"
 
Thank you UFHH01, I've no issue only since the defualt session path on plesk php is "/var/lib/php/session" where no application is working since only root user has access, it is working for me when I'm changing that path to a path where my application user has access.

anyway, it is only a question on a public forum.

i'm using latest plesk "12.5.30 Update #40" installed on centos 7 and magento 2.1 istalled using plesk application pool.

Regards..
 
Back
Top