After memcached is installed and the memcached module is enabled, an error occurs when Apache is started:
Root @ staticandresource-Fe:/etc/apache2/mod-enabled #/etc/init. d/apache2 restart
Apache2: syntax error on line 202 of/etc/apache2/apache2.conf: cannot load/usr/lib/apache2/modules/mod_mem_cache.so into server: /usr/lib/apache2/modules/mod_mem_cache.so: Undefined Symbol: ap_cache_cacheable_hdrs_out
Action 'configtest' failed.
The Apache error log may have more information.
... Fail!
I installed memcached in apt-Get mode and thought it would automatically solve these problems for me, okay. Manually.
I checked it and found that it was because I did not load the mod_cache module.
If you use the source code for installation, you can try it like this:
When using configure, use the following parameters:-- Enable-Mem-Cache
Instead of -- enable-Cache
If you are using apt, try this:
Add:
Loadmodule cache_module/usr/lib/apache2/modules/mod_cache.so
Then restart
PS wenshu does not like this editor