Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-06-04 18:16:20

mridley
Member
From: UK
Registered: 2012-09-26
Posts: 221
Website

PHP 5.3.3 to 5.6.30 or 7.0.19

Hi,

Upgrading my server php version from PHP 5.3.3 to 5.6.30 or 7.0.19 results in the following error,

session_start(): open(./backlight/framework/../data/sessions/sess_1jsjghrmih9p5sf5h8avnba5h3, O_RDWR) failed: Permission denied (13)|#0 [internal function]: ErrorHandler::handleError(2, 'session_start()...', '/var/www/vhosts...', 74, Array) #1 /var/www/vhosts/tsiphotography.co.uk/httpdocs/backlight/framework/helpers/AuthHelper.php(74): session_start() #2 /var/www/vhosts/tsiphotography.co.uk/httpdocs/backlight/framework/init.php(124): AuthHelper::handleSession() #3 /var/www/vhosts/tsiphotography.co.uk/httpdocs/index.php(19): require_once('/var/www/vhosts...') #4 {main}|URL: /index.phpUnknown: open(./backlight/framework/../data/sessions/sess_1jsjghrmih9p5sf5h8avnba5h3, O_RDWR) failed: No such file or directory (2)|Unknown|0

Offline

#2 2017-06-04 21:43:18

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: PHP 5.3.3 to 5.6.30 or 7.0.19

Hi Mark, upgrading the PHP version alone shouldn't cause this error.  Have your files been moved or copied from one server to another? 
If so, it looks like the permissions of the /backlight/data/sessions directory aren't sufficient for the web server to write the files.  (and possibly even the entire /backlight/data/ directory).  I suggest asking your host's technical support to update the permissions on /backlight/data.  One solution may be to change the owner for all contents under that directory to the web server, or to you your own account, whichever is sufficient.

Offline

#3 2017-06-04 23:15:40

mridley
Member
From: UK
Registered: 2012-09-26
Posts: 221
Website

Re: PHP 5.3.3 to 5.6.30 or 7.0.19

Hi Ben,

No the website\files are all in the same place,  they upgraded my version of Plesk which now allows me to change the php version,

Next to the php version drop down I have "run php as" then 3 options, 1. Apache mode, 2.  CGI Application and 3.  FastCGI Application,  if i leave the php version on 5.3.3 and on Apache all works fine, changing the php verison to 5.6.30 or 7.0.19 looses the option to "run PHPas" Apache mode and i get the error. 

So it appears that it will only work if I have the Apache mode option and does not appear to be PHP version related more "run PHP as" specific. 

Hope all that makes sense

Offline

#4 2017-06-05 09:17:12

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: PHP 5.3.3 to 5.6.30 or 7.0.19

That arrangement sounds specific to your host.  I would guess that to-date the files written by Backlight have been owned by the 'apache' user, and that a change to 5.6.30 or 7.0.19 will use the user you log in with.  Since the directories and files under data (and galleries) are owned by a different user then PHP won't be able to save to those directories.
You could partially confirm this scenario by FTPing into your site and looking for the owner details of the files and directories under backlight/data.

Offline

Board footer

Powered by FluxBB