Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

ZipArchive library is not enabled

Discussion in 'General Discussion' started by piyush_lahoti, Oct 10, 2014.

  1. piyush_lahoti

    piyush_lahoti Registered

    Joined:
    Oct 10, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    When I try to upload for read .xlsx file, It throws exception as ZipArchive library is not enabled
    When I use this code in my local server the code is work properly in WAMP server.
    Any one can suggest me how can i fix this exception?
     
  2. mageshm

    mageshm Well-Known Member

    Joined:
    Apr 17, 2014
    Messages:
    90
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Chennai, INDIA
    cPanel Access Level:
    DataCenter Provider
    @ piyush_lahoti,

    It seem's you are having root access, So recompile the easy apache with ZipArchive library to solve your issue.

    Make sure it will take shot while, so do it according that.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. piyush_lahoti

    piyush_lahoti Registered

    Joined:
    Oct 10, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks Mr. mageshm, For your suggestion
    I am new to CPanel with PHP So I have no idea about how to recompile the easy apache with ZipArchive library.
    Please Can you describe me in detail.

    Just FYR: On GoDaddy I have VPS (Virtual Private Server) and on that I have deployed all my services. (including Excel related service)
     
  4. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    143
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kochi, India, India
    cPanel Access Level:
    Root Administrator
    Hello,

    You can install the zip module for PHP by going to the WHM and search for "Apache Update."
    Proceed through to the steps, selecting the Apache and PHP version and then then click "Exhaustive Options list."
    Under PHP, check the box labeled "Zip." Then click the button to begin the compile process.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,955
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Yes, ensure "zip" is enabled under the "Exhaustive Options List" for PHP in EasyApache before starting the build:

    EasyApache Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice