Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Domain on Plesk with WHMCS shows error: The PHP session save path /var/lib/php/session is not writable

 
domainsfile managergohostedinterface

Symptoms

  • Domain with WHMCS shows error:

    The PHP session save path /var/lib/php/session is not writable. Please investigate the session.save_path PHP setting or contact your system administrator.


    Warning: session_start(): open(C:WindowsTempsess_udfqa0si9tsg9i89dhene7ms78, O_RDWR) failed: Permission denied (13) in C:inetpubvhostsexample.comincludesconnect.php on line 2

  • Permissions for the folder mentioned in the error are correct:

    # ls -la /var/lib/php/
    ...
    drwx-wx-wt 2 root root 4096 Nov 15 23:36 session


    C:> UsersAdministrator>icacls C:WindowsTemp
    C:WindowsTemp NT AUTHORITYNETWORK SERVICE:(CI)(RX,D,WD,AD)
    HOSTNAMEPP_WPG:(CI)(RX)
    HOSTNAMEpsaserv:(CI)(RX)
    HOSTNAMEpsacln:(CI)(RX)
    HOSTNAMEpsaadm:(CI)(RX)
    HOSTNAMEpsaadm:(OI)(IO)(R)
    BUILTINUsers:(CI)(S,WD,AD,X)
    BUILTINIIS_IUSRS:(OI)(CI)(S,RD)
    CREATOR OWNER:(OI)(CI)(IO)(F)
    NT AUTHORITYSYSTEM:(OI)(CI)(F)
    BUILTINAdministrators:(OI)(CI)(F)

Cause

Subscription system user directory for sessions is not created or it is not set in the session.save_path PHP settings.

Resolution

Note: in case there is no WHMCS installed on the same server, refer to the following article: Website hosted in Plesk displayed incorrectly or showing the PHP warning: Failed to read session data: files

It is required to create a special directory for the PHP sessions. It is possible to do it via SSH (for Linux) or via Plesk UI (for both Linux and Windows).

Using Plesk Interface

  1. Log into Plesk.

  2. Open File Manager under Domains > example.com.

  3. Click New and choose Create directory.

  4. Specify some name for the folder in this case we call it phpsessions.

  5. Go to the PHP-Settings under Domains > example.com.

  6. Change the setting session.save_path to the total path of a created folder:

    /var/www/vhosts/example.com/phpsessions


    C:inetpubvhostsexample.comhttpdocsphpsessions

Using SSH

  1. Connect to the server using SSH;

  2. Execute the following commands, instead of example, insert subscription system user name:

    # mkdir -p /home/example/whmcsdata/sessions
    # chmod 1750 /h /home/example/whmcsdata/sessions
    # chown example:psacln /home/example/whmcsdata/sessions

  3. Log into Plesk;

  4. Navigate to Domains > example.com > PHP settings;

  5. Set the following directives, for example (for PHP 7.0) and click OK to apply the change:

    include_path: ":/opt/plesk/php/7.0/share/pear:/home/example/whmcsdata/sessions"
    session.save_path: ":/home/example/whmcsdata/sessions"
    open_basedir: ":{WEBSPACEROOT}{/}{:}{TMP}{/}:/home/example/whmcsdata/sessions"

 

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

How to Host a Go App on Plesk

Read More »

Exploring Plesk’s Added Value Solutions So Far in 2023

Read More »

Unveiling Sitejet Builder: The Perfect Match for Your Effortless Website Creation Needs

Read More »
Knowledge Base

Website hosted on Plesk server does not work after switching to PHP 7.x: Call to undefined function mysql_connect()

Read More »

A website hosted in Plesk is not accessible: open_basedir restriction in effect

Read More »

How to find and edit PHP configuration files in Plesk for a domain or for global PHP handler

Read More »

A website hosted on a Plesk server shows a 500 or 504 error: Allowed memory size of XXX exhausted

Read More »

Hosting Wiki

  • Django
  • DBMS Interface
  • Server Redundancy
  • Linux Containers
  • Google Cloud CDN
  • Bare Metal Server
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • PHP
  • MongoDB
  • Domain
  • Plesk
  • Web Server
  • DNS Server
  • SSH
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family