Installing local to live WP into subdirectory

Since you want to test out your existing(local) site on the server; you have done the right thing as far as I can see on pastebin except for 1 thing

On step 10 – you replaced all occurances of “localhost” with your servername. Instead you should have replaced it with servername/directoryName.

If you still have issues, please let me know the exact issue you are facing and if possible the URL to your website on your host.

EDIT:
The issue that OP was facing was unable to connect to database. So the solution was to update DB details in the wp-config.php file.