cant able to call upgrade.php

While calling the upgrade.php it shows 404 error

While calling the upgrade.php it shows 404 error

You have to put that script on your server, and you have to run it from the command line not a web browser.

I already updated mautic successfully in my testing server via browser.
But in my live server I cant able to call php file, in .htaccess given permission to open upgrade.php, but still redirects to 404 error.

While running the script in command line, I got error “migration failed”

I copied my live mautic in my localhost, there I run the upgrade.php in browser, and the mautic upgraded, but I found some issues in contacts, companies.
While opening the contacts, companies in new tab , it displays 500 error.
Could you please suggest me how to resolve it.