John Davidson

php - Changing from mod_mpm_prefork to mod_mpm_event

0 comments
Message:


I'm trying to change my apache to start using threads.
So I changed from mod_mpm_prefork to mod_mpm_event.


After that, I started receiving this message


PHP Fatal error:  Unknown: Cannot find save handler 'memcached' in Unknown on line 0

The only file I changed was 00-mpm.conf, this is how it looks now.


# Select the MPM module which should be used by uncommenting exactly
# one of the following LoadModule lines:

# prefork MPM: Implements a non-threaded, pre-forking web server
# See: http://httpd.apache.org/docs/2.4/mod/prefork.html
#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so

# worker MPM: Multi-Processing Module implementing a hybrid
# multi-threaded multi-process web server
# See: http://httpd.apache.org/docs/2.4/mod/worker.html
#
#LoadModule mpm_worker_module modules/mod_mpm_worker.so

# event MPM: A variant of the worker MPM with the goal of consuming
# threads only for connections with active processing
# See: http://httpd.apache.org/docs/2.4/mod/event.html
#
LoadModule mpm_event_module modules/mod_mpm_event.so

I already checked that I have memcached module.
Also, I didn't change anything but this, so I think configuration must be okay.



My Answer:


StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 150
MaxConnectionsPerChild 0



_It seems like the issue is related to the session save handler 'memcached'. You may need to enable the memcached extension in your PHP configuration or update your session save handler to use a different method._

Rate this post

3 of 5 based on 6766 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us