dil_bert Posted November 30, 2017 Share Posted November 30, 2017 good evening dear experts, hello dear PHP-Freaks, i have got some issues with a server where a wordpress - installation runs. if i have a closer look at the error-logs i see a lot of : server logs: PHP Warning: session_start(): Cannot find save handler 'mm' any idea what i can do here note : i am on PHP version 5xy love to hear from you: Quote Link to comment Share on other sites More sharing options...
dil_bert Posted November 30, 2017 Author Share Posted November 30, 2017 update; see the following data:PHP Warning: session_start(): Cannot find save handler 'mm' - session startup failed in /sitesCannot find save handler 'mm': save handler: see :If you compile PHP using the --with-mm configuration, you can set the session module to mm.This module uses shared memory for storing sessions. If you wish to implement your own handler in PI IP,see the session_set save handler function. string session_name(string naine) The session_name function returnshttp://forum.webhelp.pl/php-i-bazy-danych/cannot-find-save-handler-mm-t96365.htmlsee here some more about the topic: save handler mm:https://stackoverflow.com/questions/3740791/php-configuration-to-enable-sessions....Can the absence of the "mm sqlite" stop PHP sessions from working when shifting from development to production?taken from http://devzone.zend.com/article/141There are a couple built-in options for storing session data. The session handler is set in the php.ini under the directive namedsession.save_handlersqlite Optionally, you can store session data in an sqlite database. To do so, use a configuration such as:session.save_handler = sqlitesession.save_path = /tmp/phpsess.dbmm For high-performance session storage, you can store session data in memory with the mm shared-memory module. You'll need to compile php with the mm module support. Here is a tutorial to configure session handling with mm ( http://www.zend.com/tips/tips.php?id=164&single=1 ). Note that since session date is stored in RAM, you should consider it volatile data, and it's lost with power outage or a reboot. Note: the linkin the above tutorial is outdated. You can retrieve the mm module from the OSSP.org website. Quote Link to comment Share on other sites More sharing options...
mac_gyver Posted December 1, 2017 Share Posted December 1, 2017 the wordpress configuration is trying to store the session data using something other than the default session data file handler. since, there are very few real cases where you need to use a different session data handler, set the wordpress configuration to use the default php session data file handler. if you are running this on shared web hosting, you should create a folder within your hosting directory tree, outside of the document root folder to hold the session data, then set the session.save_path setting to match this folder. Quote Link to comment Share on other sites More sharing options...
dil_bert Posted December 1, 2017 Author Share Posted December 1, 2017 hello dear Mac_gyver many thanks for the quick reply. Great to hear from you. Well i run this on a root server which is adminstrated by a friend of mine. question: What would you do here - in this situation? What should i tell him now. BTW: does the thread here on stackoverflow fit the issues i have: https://stackoverflow.com/questions/3740791/php-configuration-to-enable-sessions there some guys explain mm as a configurations-option: mm For high-performance session storage, you can store session data in memory with the mm shared-memory module. You'll need to compile php with the mm module support. Here is a tutorial to configure session handling with mm ( http://www.zend.com/tips/tips.php?id=164&single=1 ). Note that since session date is stored in RAM, you should consider it volatile data, and it's lost with power outage or a reboot. Well - i would be more than happy to shed a light on this issue. I need to debug the system and need to have a closer look at the behaviour of some plugins... : see here this thread: https://wordpress.org/support/topic/e-mail-notification-mails-to-admin-and-subscriber-do-not-work/ for more details: love to hear from you again greetings Quote Link to comment Share on other sites More sharing options...
dil_bert Posted December 1, 2017 Author Share Posted December 1, 2017 hello again here my current settings see some data out of the php-configuration – not sure if they help here; Session Support enabledRegistered save handlers files userRegistered serializer handlers php_serialize php php_binaryDirective Local Value Master Valuesession.auto_start Off Offsession.cache_expire 180 180session.cache_limiter nocache nocachesession.cookie_domain no value no valuesession.cookie_httponly Off Offsession.cookie_lifetime 3600 3600session.cookie_path / /session.cookie_secure Off Offsession.entropy_file /dev/urandom /dev/urandomsession.entropy_length 32 32session.gc_divisor 1000 1000session.gc_maxlifetime 3600 3600session.gc_probability 1 1session.hash_bits_per_character 5 5session.hash_function 0 0session.name PHPSESSID PHPSESSIDsession.referer_check no value no valuesession.save_handler mm mmsession.save_path no value no valuesession.serialize_handler php phpsession.upload_progress.cleanup On Onsession.upload_progress.enabled On Onsession.upload_progress.freq 1% 1%session.upload_progress.min_freq 1 1session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESSsession.upload_progress.prefix upload_progress_ upload_progress_session.use_cookies On Onsession.use_only_cookies On Onsession.use_strict_mode Off Offsession.use_trans_sid 0 0 what can i do now? Quote Link to comment Share on other sites More sharing options...
dil_bert Posted December 1, 2017 Author Share Posted December 1, 2017 some more investigations This error means that our session can not be saved by our session save handler. As we see i am using mm session save handler which stands for Shared Memory.From php.net: To use shared memory allocation (mm) for session storage configure PHP --with-mm[=DIR] .we probably need to install php Shared Memory extension to use this kind of session handler: http://php.net/manual/en/book.shmop.phpDefault php session handler is file handler which store your session in files on file system. This handler do not need any additional extension.see sessions:https://silvermapleweb.com/using-the-php-session-in-wordpress/#comment-3355 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.