magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Failed to set ini option "session.save_path" to value

Open pavelnovitsky opened this issue 11 years ago • 3 comments

Hi, IspManager and IspManager Light predefine session.save_path in virtual host config as
php_admin_value session.save_path "/var/www/dev/data/mod-tmp"

This prevents from changing session.save_path with ini_set() in SessionManager::initIniOptions(). Value can not be set and result is always «false» that leads to the Failed to set ini option "session.save_path" to value "/var/www/dev/data/www/example.com/magento2/var/session/".

pavelnovitsky avatar Dec 09 '14 15:12 pavelnovitsky

@pavelnovitsky Thank you for reporting. We are investigating the issue.

antonmakarenko avatar Dec 15 '14 22:12 antonmakarenko

@pavelnovitsky Are you able to alter IspManager to not use php_admin_value? Trying to understand if that is a valid workaround while we fix the code. Maybe this will help?

If you can stop php_admin_value from setting the session.save_path and you want to alter what Magento uses, then you can modify the app/etc/config.php file to set a different path.

Would need to add an entry like the following to config.php:

‘session’ => [
    ‘save_path’ => ‘/your/save/path/here'
]

otoolec avatar Dec 17 '14 17:12 otoolec

We have committed the fix for this issue. Please reopen if the fix doesn't work for you.

muasir avatar Jan 23 '15 21:01 muasir