Update WordPress without FTP

I tried updating WordPress using FTP but that came with a lot of issues: creating users, giving permissions to the directory, installing proftp for the jail. But WordPress kept giving me an error message There was an error connecting to the server. 

To fix this, edit the wp-config.php file to have this define marker:


You can add this right before the part where you define the database credentials.