good evening dear experts, hello dear PHP-experts, ,

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

see some data out of the php-configuration – not sure if they help here;

Session Support enabled
Registered save handlers files user
Registered serializer handlers php_serialize php php_binary
Directive Local Value Master Value
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 3600 3600
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file /dev/urandom /dev/urandom
session.entropy_length 32 32
session.gc_divisor 1000 1000
session.gc_maxlifetime 3600 3600
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler mm mm
session.save_path no value no value
session.serialize_handler php php
session.upload_progress.cleanup On On
session.upload_progress.enabled On On
session.upload_progress.freq 1% 1%
session.upload_progress.min_freq 1 1
session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix upload_progress upload_progress
session.use_cookies On On
session.use_only_cookies On On
session.use_strict_mode Off Off
session.use_trans_sid 0 0

what can i do now?!

    hello dear all

    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.php
    Default php session handler is file handler which store your session in files on file system. This handler do not need any additional extension.

    see some more infos rearding the sessions:
    https://silvermapleweb.com/using-the-php-session-in-wordpress/#comment-3355

    well - now i think that i have to rework the configuration

      Yes, either install shmop support, or change the session handler before any session work happens:

      ini_set("session.save_handler", "files"); //use the filesystem to store session data
      
      session_start();
      
        Write a Reply...