How to solve the error related to PHP session save path?

How to solve the error related to PHP session save path?

If you receive an error stating the PHP session path is not writable, you can simply update the session.save_path setting in the PHP Selector.

From the Extra Features menu item in DirectAdmin:

1. Open Select PHP Version
2. Click Options

3. For the session.save_path setting enter:

/home/USERNAME/tmp

Where "USERNAME" is your account username.

4. Once done, the error should no more appear.

If you still have any questions, please open a support ticket with us!
    • Related Articles

    • What to do when we see Forbidden: PHP engine is disabled?

      If you receive the error “Forbidden: PHP engine is disable”, it is due to “PHP Access” for the domain not being enabled. To enable it, simply go to Domain Setup in DirectAdmin and choose Modify. From there you can click the checkbox for PHP Access ...
    • PHP

      PHP (Hypertext Preprocessor) is an open-source scripting language that is especially suited for web development. It runs on the server side, meaning it processes code on the web server before sending it to the client (browser). WordPress is built on ...
    • How to solve a connection refused error when trying to use SMTP in DirectAdmin?

      In our DirectAdmin hosting environments, outgoing SMTP via scripts/apps requires permission per user account. How do I request SMTP access? If your script/app needs to send via SMTP, simply submit a ticket to our support team and request that we ...
    • How do I run my cron job on a specific PHP version?

      To run a cron job using a specific PHP version, you can use the following example code: /opt/alt/php81/usr/bin/php -q FILE_PATH Where "php81" is the PHP version you want to use (PHP 8.1) and can be changed to suit your needs. Such as php72, php73, ...
    • How do I use a different PHP version in a subdomain or folder?

      There are times you may find the need to use a specific PHP version for a subdomain application that is different from your main account PHP version. The following will show you how to use a different PHP version in specific folder and/or subdomain ...