Home Hack of the Day: Speeding Up WordPress on a VPS

Hack of the Day: Speeding Up WordPress on a VPS

One of the most common suggestions to bloggers who use shared hosting is that they will be much better off with a VPS or a dedicated server. I agree in principle; however, this doesn’t mean the server will run smoothly without a bit of tweaking.

I’m currently in the process of moving several WordPress blogs from a dedicated server to a VPS. After moving five or six blogs, I noticed the server was slowing to a crawl, with high load after just a week of uptime. None of the blogs are particularly busy. What would solve this problem?

WP-SuperCache

A quick way (no pun intended) to speed up WordPress is to install WP-SuperCache. This is the first thing I tried, but I didn’t notice much of an improvement.

Server Security

Security configuration changes may help if the slowness is caused by people exploiting weaknesses on your server. But this didn’t help either.

php-apc

The trick that worked for me was to install php-apc. Assuming you’ve got access to the command line and it’s a Linux box, installation is simply a case of issuing the following command:

sudo apt-get install php-apc

This may vary depending on your Linux distro.

Result

Installing php-apc has reduced the server load from a peak of 30 or 40 right down to a peak of 0.5, and the server has been happily running for a few days without any major problems.

Photo by Mykl Roventine: Out & About

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the tech industry for major developments, new product launches, AI breakthroughs, video game releases and other newsworthy events. Editors assign relevant stories to staff writers or freelance contributors with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.

Get the biggest tech headlines of the day delivered to your inbox

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.

    Tech News

    Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.

    In-Depth Tech Stories

    Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.

    Expert Reviews

    Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.