Blog Building 101

How to make a blog network

Wednesday, January 16, 2013

How To Fix "Class 'ZipArchive' Not Found" on Dreamhost

A plugin I installed needed the ZipArchive functionality and I got this error:

Class 'ZipArchive' Not Found

I found out that on Dreamhost virtual hosting accounts, the older versions of PHP don't have ZipArchive enabled, but the PHP 5.3 version does. So all you need to do to be able to run scripts that need ZipArchive is:

  1. Login to your Dreamhost Panel.
  2. Click Manage Domains.
  3. Find your domain and under Web Hosting, click Edit.
  4. Under Web Options use the dropdown menu to select PHP 5.3. (It doesn't matter whether you choose CGI or FastCGI)
  5. Click Save Settings and wait approximately 10 minutes.