Fix wordpress admin can’t update and database error

Env: Hosted on VPS Debian9 PHP7.3 + Nginx 1.6

Fix admin cant update wordpress

// wp-config.php

define('DISALLOW_FILE_MODS',false); // Set to false

Jetpack blocked your IP

// wp-config.php
define('JETPACK_IP_ADDRESS_OK', '');

Force disable wordpress cache

// wp-config.php
define( 'WP_CACHE', false );

WordPress fix database error

// wp-config.php
define('WP_ALLOW_REPAIR', true);

// Go to ur site with following URL

Force URL

// wp-config.php

Photo by Eugen Str on Unsplash