Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems when new install on php7 #10855

Closed
jojo12 opened this Issue Jun 17, 2016 · 15 comments

Comments

Projects
None yet
9 participants
@jojo12
Copy link

jojo12 commented Jun 17, 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

@mbabker

This comment has been minimized.

Copy link
Member

mbabker commented Jun 17, 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.

@mbabker mbabker closed this Jun 17, 2016

@jojo12

This comment has been minimized.

Copy link
Author

jojo12 commented Jun 17, 2016

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

@mbabker

This comment has been minimized.

Copy link
Member

mbabker commented Jun 17, 2016

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

@alexz18

This comment has been minimized.

Copy link

alexz18 commented Sep 6, 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

@zero-24

This comment has been minimized.

Copy link
Contributor

zero-24 commented Sep 6, 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!

@wkoomson

This comment has been minimized.

Copy link

wkoomson commented Sep 12, 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

@mbabker

This comment has been minimized.

Copy link
Member

mbabker commented Sep 12, 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.

@wkoomson

This comment has been minimized.

Copy link

wkoomson commented Jan 26, 2018

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

@infograf768

This comment has been minimized.

Copy link
Member

infograf768 commented Jan 29, 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?

@brianteeman

This comment has been minimized.

Copy link
Contributor

brianteeman commented Jan 29, 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

@wkoomson

This comment has been minimized.

Copy link

wkoomson commented Jan 29, 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

@poproar

This comment has been minimized.

Copy link

poproar commented May 18, 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?

@mbabker

This comment has been minimized.

Copy link
Member

mbabker commented May 18, 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.

@poproar

This comment has been minimized.

Copy link

poproar commented May 18, 2018

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

@NesCafe62

This comment has been minimized.

Copy link

NesCafe62 commented Dec 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.