Jump to content


Photo

session.save_path () is not writable


  • Please log in to reply
2 replies to this topic

#1 JacobD

JacobD

    Member

  • Members
  • PipPip
  • 10 posts

Posted 08 March 2019 - 11:07 AM

Hello,

 

I am trying to create a new installation of x2 and when checking requirements.php, I get the following error:

 

  • The path defined in session.save_path () is not writable.

 

I know that this is an issue which has been covered before on the forums but I cannot get it to work despite the other solutions.

 

My system is FreeBSD 11.2 running nginx and php71-fpm. The nginx user is www, php user is www and group www.

 

Here is the snippet from my php.ini:

session.save_path="/usr/local/tmp"

Output of ls -l for /usr/local/tmp:

drwxrwxrwt  2 nobody nogroup  2 Mar 8 10:48 tmp

I have tried chmod 1777 and chown www:www as well without any luck

 

The error is legitimate because I cannot open the login screen either after changing requirements.php and installing.

 

Thanks for the help.



#2 JacobD

JacobD

    Member

  • Members
  • PipPip
  • 10 posts

Posted 12 March 2019 - 08:04 AM

After playing around, I discovered a few things.

 

I ran this script: 

<?php print(sys_get_temp_dir()); ?>

which output: 

/tmp/

So, I commented out

$ssp = ini_get('session.save_path');

And instead put in:

$ssp = '/tmp/';

Now according to requirements.php I am all set. Except, when I try to open the login page for my site, it does not load. Error 500



#3 JacobD

JacobD

    Member

  • Members
  • PipPip
  • 10 posts

Posted 13 March 2019 - 01:29 PM

@X2Peter anything on this?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users