Jump to content


Photo

session save problem in Plesk (solution)

plesk 500 error save_path

  • Please log in to reply
No replies to this topic

#1 dale

dale

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 02 August 2018 - 07:27 AM

Installing on a server running the Plesk control panel (websavers.ca).

 

The requirements script showed an error - The path defined in session.save_path (/var/lib/php/session) is not writable.

Checked with the host and it was writable, and included current sessions by the web user.

 

Installed anyway as it seemed a false positive.

 

No errors to the user but a 500 error when logging in as admin:

Error Message: is_file(): open_basedir restriction in effect. File(/opt/plesk/php/7.1/share/pear/Opportunities.php) is not within the allowed path(s):

 

The solution is on the Plesk site:

https://support.ples...ction-in-effect

Cause

PHP script is trying to access the folder for which access is not allowed. This restriction is limited by the PHP open_basedir variable for each virtual host separately. By default, open_basedir is set to allows access for PHP files to the tmp and httpdocs directories.

 

I used the

{WEBSPACEROOT}{/}{:}{TMP}{/}{:}{/}var{/}lib{/}php{/}session{/}

 

It worked.

 

Opportunities.php seems to be in the message section of each language.

 

Comment from a host tech:

"I’m wondering if X2 may be written with a certain expectation of available paths instead of querying the system."

 

Initially installed X2 from a softdelicious on a host running cpanel. Successfully move the install. 

 

Hope this helps someone or the code can be updated.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users