Your PHP version does not support ZipArchive.

I cant upload content types, I get this message in WOrdpress

 

 

Your PHP version does not support ZipArchive.

falcon's picture

If you have full control over your web server you can either turn on the ZipArchive support in various ways. For instance like this for some environments. If you can't turn it on you need to get another php version or compile a PHP version with ZipArchive. Compiling is a solution for more advanced users. In my experience most PHP versions has ZipArchive support.

If you do not control your webserver and don't have access to a control panel where you can turn things on and off you must contact your hosting provider or find another hosting provider :/

I don't have full control over our PHP at our University and our supported PHP doesn't support ZipArchive.  Since I know the h5p library file is a zip file, could I unzip the library file and manually move it over to the h5p-php-library?  Or is there something else I would have to do?  I have to unzip and manually move WordPress plugins and themes since we can't FTP into our WordPress instance due to security concerns.

falcon's picture

It might be quite hard to get it set up manually. Perhaps you could set it up on a local copy of your site with ZipArchive and then copy the files and database to the site where ZipArchive isn't allowed?

I tried everything mentioned above but then I realized that php7 was installed when the vm was provisioned.  So installed the php7 version of zip.   

sudo apt-get install php7.0-zip