Posts Tagged ‘VPS hosting’

WordPress and VPS Hosting

Recently I switched some of my accounts over to virtual private server hosting in order to get around some of the resource limits I was facing on a standard shared hosting plan. There was some hassle in moving the accounts over (including having to register the IP addresses of my new nameservers with my domain registrar, something I didn’t expect to have to do and was more complicated than I expected) but on the whole it was a positive move because the hosting service stopped suspending accounts for resource overuse.

One of the unexpected side effects of this move, however, was that my WordPress blogs (existing and new) could no longer automatically update themselves. Whenever I tried to:

  • Upgrade to a new version of WordPress;
  • Install or upgrade a plugin; or
  • Install a new theme

I was presented with a form that asked for my FTP credentials for the site. Why? Because in the new VPS setup the web server no longer had permission to modify files belonging to individual user accounts. The only thing it could do was use FTP to access the site, a much slower and more error-prone process than the standard WordPress upgrade mechanism.

One solution was to change the file and directory permissions to give all users in the VPS read, write and execute permissions, but that’s definitely overkill and a big security hole waiting to be exploited.

The better and easier solution is to install suPHP on the virtual server. It may in fact be already there, but not enabled. But if it’s not there, your hosting service can quickly install it. (You can also do it yourself if you want, but it will usually be quicker to let the hosting service do it for you.)

Once suPHP is installed, modify your Apache configuration to use suPHP as the PHP5 and PHP4 handler, like so:

Restart the web server and you’re done… you should now be able to upgrade WordPress and install plugins and themes without having to supply FTP credentials. Managing your installation is suddenly a lot easier!

Welcome to Web Hosting Palooza!

Yes, it’s time to have a party! A web hosting party, if you can believe it!

Welcome to Web Hosting Palooza. This is my little site for discussing and exploring web hosting issues. My name is Eric Giguere and I’m the host (pun intended!) of this party! I’ve been using web hosting services for over 10 years now and have experienced the good, the bad and the ugly… My hope is to provide some useful explanations and commentary on the whole hosting scene so that you can make some informed decisions about what type of hosting to consider, what providers to go with, etc.

Note: This is not one of those fake “review” sites that litter the search results. In fact, you’ll hardly see any web hosting reviews here. What you’ll get is lots (in time) of good information about hosting and maybe a chuckle or two as well.

The first topic of discussion is virtual private server hosting. I recently switched a bunch of my sites to VPS hosting and it wasn’t as smooth a switchover as I had expected. But more on that in the next post…