• Resolved web559

    (@web559)


    I get this when I try to run install.php:

    Fatal error: Class ‘ZipArchive’ not found in /home/epi/dev.epi-data.org/install.php on line 477

    If it’s relevant, I’m on Dreamhost and am able to run zip and unzip commands just fine over SSH.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter web559

    (@web559)

    Apparently ZipArchive is not installed on PHP at Dreamhost. Is there any way to get this working without ZipArchive?

    On Fri, 10 Jun 2011, you wrote:
    I’m getting this error when running a site installer on : Fatal error: Class
    ‘ZipArchive’ not found

    I’ve never had trouble with zipping/unzipping over ssh. Is there something
    else that I need to do to get ZipArchive to work?
    =====
    Sorry, by default, we dont have that installed into our PHP.

    In fact, if you are ever curious what flags are set or not set, you can
    always visit http://php.dreamhosters.com/ and it`ll let you know what our
    default settings are.

    But you are NOT out of luck. If you are pretty savvy, you can compile
    your own PHP installation with that module included.

    The trouble with this is, once you do it, it is beyond the scope of our
    technical support, as quite a bit can go wrong.

    Here is a nice article on how to compile your own php installation:
    http://wiki.dreamhost.com/Installing_PHP5

    Thread Starter web559

    (@web559)

    This is the relevant code. How can I make it so the installer uses my already unzipped directory instead of invoking ZipArchive to extract it?

    [Code moderated as per the Forum Rules. Please use the pastebin]

    The duplicator is currently written with ZipArchive. So it requires the class in order for it to work.

    I’m surprised your host doesn’t have this enabled by default, its pretty common on most hosting providers.

    Sorry, maybe in future releases I’ll try to support some other mechanism such as shelling out a using the commandline.

    I know this post is resolved, but I work over at DreamHost and I think I have a workaround…

    We recently included ZipArchive support in PHP 5.3 – so upgrading your domain to that should help make Duplicator work as expected. Go ahead and give it a try and let me know if you need any further help!

    Jason Paul

    (@jasontrasaterracom)

    Hey boogah,
    I’ve tried to do what you said. Not sure if it just takes a lot longer than 5-10 mins for the upgrade to actually go through. But Duplicator still only sees the old PHP version and no ZipArchive.

    Had the same issue on same hosting, changed as you said to PHP 5.3, and whoopp -there is everything running like Omega!

    You are awesome!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Duplicator] Fatal error during site install’ is closed to new replies.