PHP session.save_path error

PHP session.save_path error

You receive the following error in PHP:



"The session.save_path setting in your php configuration file (php.ini)
is not set or is set to a folder which did not exist. You might need to
set the save_path setting in php.ini or verify that the folder sets in
save_path exist."



To fix this on Linux:



1) Create a folder at the root of your account -- where you see the domain folders. -- called "sessions"

2) In the control panel go to Account --> Account Settings and copy the "Home Directory" value

3) Enter the following in the .htaccess file in the folder of the script: php_value session.save_path HOME_DIRECTORY/sessions

a) Replace "HOME_DIRECTORY" with the value you copied in #2

4) Save the .htaccess file and test the script.
    • Related Articles

    • PHP

      Php     Sort PHP processes by user: Show PHP Errors: put this code at top of php page you want to test (usually index.php): error_reporting(E_ALL); ini_set('display_errors', 1);
    • How to get your own PHP error log via .htaccess

      I would like to get my own PHP error log, how can I do this? =========================================== If you don't have a .htaccess file, create it it using the file manager or a regular text editor on your computer and upload that file using ftp. ...
    • err_too_many_redirects on WordPress - Php

      How to Solve Too Many Redirects Error in WordPress? The most common misconfiguration that we have come across repeatedly is when a user has incorrect URL in WordPress Address URL or Site Address URL settings. For example, lets assume that your site’s ...
    • Changing PHP Memory Limit via .htaccess

      If you get an error such as: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 317560 bytes) On your PHP scripts, you can fix it with a line in your .htaccess reading: php_value memory_limit 12M Simply modify the 12M to ...
    • php files downloaded rather than executing

      From time to time, php on cPanel servers gets a bit messed up, and wants to download the php file itself. here's how to fix this Login to WHM Click on Service Configuration Click on Apache Configuration Click on Configure PHP and Suexec Save ...