Joomla-cms: Problems when new install on php7

Created on 17 Jun 2016  路  15Comments  路  Source: joomla/joomla-cms

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

No Code Attached Yet

All 15 comments

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.

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

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

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

@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!

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

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.

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

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?

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

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

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?

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.

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brianteeman picture brianteeman  路  4Comments

PhilETaylor picture PhilETaylor  路  3Comments

alex7r picture alex7r  路  4Comments

Hils picture Hils  路  5Comments

MartijnMaandag picture MartijnMaandag  路  6Comments