Can’t upload theme forest zip file to WordPress on Ubuntu 16. [SOLVED]

I have a theme forest theme that is 60M that I’m installing to a fresh wordpress install, but it failed to install with an error of ‘missing link’

This tripped me up, but only a few settings needed to be updated to get it working.

Here is how I got it working.

So, what’s the steps exactly:

  1. Update nginx so that that it can handled up to 100M zip files
  2. Update php so that it can handle up to 100M zip files
  3. Enable php-zip module for php.

in /etc/nginx/nginx.conf, inside the http { } section

http {

    client_max_body_size 100M;

in /etc/php/7.0/fpm

post_max_size = 64M  
upload_max_filesize = 100M  

From command line:

sudo apt-get install php7.0-zip  

Stack: wordpress on ubuntu 16.04 LEMP (Linux Nginx, MySql (MariaDb), Php )