?
avatar jojo12
jojo12
17 Jun 2016

Steps to reproduce the issue

on a site with php 7
normal procedure

Expected result

should install

Actual result

Warning: session_start(): open(/var/lib/php5/sess_8919etsicjbi58kj0vut8fg8v7, O_RDWR) failed: Permission denied (13) in /srv/www/vhosts/mysite.ch/httpdocs/libraries/joomla/session/handler/native.php on line 258

Warning: session_write_close(): open(/var/lib/php5/sess_8919etsicjbi58kj0vut8fg8v7, O_RDWR) failed: Permission denied (13) in /srv/www/vhosts/mysite.ch/httpdocs/libraries/joomla/session/handler/native.php on line 192

Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in /srv/www/vhosts/mysite.ch/httpdocs/libraries/joomla/session/handler/native.php on line 192

System information (as much as possible)

php7.0.7
Apache Linux Server

Additional comments

avatar jojo12 jojo12 - open - 17 Jun 2016
avatar mbabker
mbabker - comment - 17 Jun 2016

This is an issue with your local configuration. The install app requires read/write access to the path that your PHP configuration defines for the session.save_path variable to write session data. If session.save_path doesn't have a value, then the path returned by sys_get_temp_dir() is used instead.

avatar mbabker mbabker - change - 17 Jun 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-06-17 12:17:41
Closed_By mbabker
avatar mbabker mbabker - close - 17 Jun 2016
avatar mbabker mbabker - close - 17 Jun 2016
avatar brianteeman brianteeman - close - 17 Jun 2016
avatar jojo12
jojo12 - comment - 17 Jun 2016

only to say, when I change on the same place to php 5.6. it installs without any problems!

avatar mbabker
mbabker - comment - 17 Jun 2016

Check for differences between the PHP 5.6 and 7.0 configurations. It is not an issue of PHP version incompatibility.

avatar brianteeman brianteeman - change - 18 Jun 2016
Labels Added: ?
avatar alexz18
alexz18 - comment - 6 Sep 2017

Same error:

PHP Warning: session_start(): Failed to read session data: user (path: /tmp) in /var/www/html/libraries/joomla/session/session.php on line 654

avatar zero-24
zero-24 - comment - 6 Sep 2017

@alexz18 This is a very old issue. Please do not comment on such old issues.

Please check the PHP configuration as told by mbabker If there is still a issue please get in contact with your hoster or ask in the forums at https://forum.joomla.org thanks!

avatar wkoomson
wkoomson - comment - 12 Sep 2017

I am having the same issue with PHP 7, tried different directories for session.save_path, made sure the permissions were correct (directory owned by http user). Installing and enabling PHP 5.6 fixed the problem

avatar mbabker
mbabker - comment - 12 Sep 2017

This is not an issue in the core Joomla install unfortunately; Joomla core runs correctly on all stable PHP releases. The fact that it works on PHP 5.6 and not on PHP 7 is indicative of a server misconfiguration.

avatar wkoomson
wkoomson - comment - 26 Jan 2018

Just wanted to comment that I eventually fixed my problem by enabling mysqli.so in my php.ini for PHP7

avatar infograf768
infograf768 - comment - 29 Jan 2018

Just wanted to comment that I eventually fixed my problem by enabling mysqli.so in my php.ini for PHP7

@mbabker
Does that mean that we should check for the mysqli extension in core?

avatar brianteeman
brianteeman - comment - 29 Jan 2018

mysqli is enabled by default in php7 and mysql is not present at all in php 7 - to me this was just a bad install/configuration of php

avatar wkoomson
wkoomson - comment - 29 Jan 2018

Yeah I guess it's poor configuration on my part since I'm using a MariaDB database, but I will note that a fresh install of PHP 7 on Arch Linux has mysqli.so disabled. https://git.archlinux.org/svntogit/packages.git/tree/trunk/php.ini.patch?h=packages/php

avatar poproar
poproar - comment - 18 May 2018

I know this topic is closed but it has more discussion than I am finding elsewhere. I changed my tmp folder to 775 and 777 (yikes) and still no go. My php ini has this set to this dir and mysqli.so enabled. Any ideas or should I file a ticket with the host?

avatar mbabker
mbabker - comment - 18 May 2018

Go to your host. Joomla core has worked correctly with PHP 7 since Joomla 3.5.0 was released.

If you're able to consistently reproduce an issue that might look like a core bug, feel free to open a new item.

avatar poproar
poproar - comment - 18 May 2018

found it: mysqli.so is not enabled by the host :(
Thanks @mbabker

avatar NesCafe62
NesCafe62 - comment - 6 Dec 2018

For me solution was remove : symbol in configuration.php in $host variable

Add a Comment

Login with GitHub to post a comment