I have shared hosting package with Cpanel.
I have a module that needs to use ZipArchive PHP extension. When I am trying to use this extension in code like below it gives me 500 internal server error
$z = new ZipArchive();
So please suggest me tutorial or steps to enable or install zip archive extension module in PHP shared hosting.
If the zip archive extension is not enabled or installed then it gives 500 Internal Server Error message on shared hosting.
To solve out this problem I have created a list of some steps.
- step 1: Open your website in Cpanel
- step 2: after login, search PHP pear packages
- step 3: on a search box, type zip, and search
- step 4: It will give you module name archive_zip
- step 5: Now you have to click on Install
Congrats you have installed Archive_zip package
Video tutorial to enable ZipArchive in shared hosting