Speeding up your Nginx server with memcached | Linux Today

Speeding up your Nginx server with memcached

Written By
Web Webster
Web Webster
Apr 3, 2009

[ Thanks to An Anonymous Reader for
this link. ]

“Nginx is known to be slow while serving dynamic pages
like php. Normally, nginx is using fast-cgi method which is slow.
Therefore, it’s a good idea to run Apache as back-end server to
Nginx and serve dynamic php pages from Apache. If your website’s
php pages suitable to cache for a certain time, you can use Nginx
proxy module and proxy_store command to cache Apache served php
pages output in Nginx automatically as html.

“Here, I’ll give you instructions how to use Nginx’s memcache
module and Danga Software’s memcached deamon to store your content
in memory and serve it. Serving content from memory will be faster
than serving it from disk. memcached’s default listening port is
11211. You can find instructions on Danga Software’s website how to
compile and run memcached.”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.