By ndiego
I setup WordPress on Ubuntu 16.04 using the one-click install that is provided by DigitalOcean. Everything seemed fine, until I tried to update a theme and received the following error:
The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Invalid archive structure
I have run this update many times on other servers with no issue, so I think it must be some config issue that I did with the new server. It is running PHP 7. I found another question that referenced adding the php7.0-zip package. I did this and still no dice.
Here is some additional information from my server:
zip
Zip => enabled
Zip version => 1.13.3
Libzip version => 1.0.1
zlib
ZLib Support => enabled
Stream Wrapper => compress.zlib://
Stream Filter => zlib.inflate, zlib.deflate
Compiled Version => 1.2.8
Linked Version => 1.2.8
Directive => Local Value => Master Value
zlib.output_compression => On => On
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value
Any ideas would be greatly appreciated!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Got it working by installing php-curl: apt-get install php7.0-curl
See: https://forum.pagelines.com/topic/40837-problem-with-updatesaccount-on-digital-ocean/
Hi, In my case i had php-curl installed on my apache server, but it wasn’t enabled. So i followed This guide . If you receive WARNING: Module curl ini file doesn’t exist under /etc/php/7.2/mods-available. Make sure you have installed php(your-version)-curl. For the above warning sudo apt-get install php7.2-curl .
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.