An error occurred while loading the memcached module in Apache. ap_cache_cacheable_hdrs_out

Source: Internet
Author: User
Tags apache error log

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-CacheInstead 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.