How to transfer or move a PrestaShop 1.7 site from localhost to server.
Change these settings "database_name", "database_user" and "database_password" in the /app/config/parameters.php file, Generally not need to change the "database_host", keep it as localhost or 127.0.0.1.
Zip all PrestaShop 1.7 files in localhost, clearing the smarty cache first can make the zip file be smaller.
Upload the .zip file to your sever via a FTP client, and then unzip via cPanel.
Export PrestaShop 1.7 database our to a .sql file, generally via phpmyadmin. If you are using the Easybuilder module, then clearing it revisions before exporting can make the sql file be smaller, another thing you can do is to clear the logs of your site under the "Advanced Parameters > Logs" page.
Open the .sql file with a text edit(Like Editplus, Sublime), replace all old urls with the new ones. For example, the old url is http://192.168.1.10:8080, then you just need to replace all 192.168.1.10:8080 with yourdomain.com
Create a database using phpmyadmin, and then import the edited .sql file.
Login to your site back office to clear the Smarty cache.
That's all, wish you good luck.
If you get a 500 error, then enable the debug mode by editing the /config/defines.inc.php to see what's wrong.