moving files and database
I assume these two steps are obvious:
copy all of your local files to production server
dump your magento local db and import it into your production server db
editing in production server
now on your production server you need to follow these two steps:
edit app/etc/local.xml file and change database info
in production db,in its core_config_data table, you should find every records containing the url of your local installation, then you need to update those values;which can be found with this query:
SELECT *
FROM `core_config_data`
WHERE `value` LIKE 'http://example.com';
edit (thanks to comments):
Do not forget to delete var folder contents
it'd better if you remove the content of app/etc/use_cache.ser too
you can clear cache by
go to cpanel
cpanel > filemanager > public_html > var > cache
select all cache
delete all
other way is
Through the Magento Admin Panel
Log in to your Admin Panel account
Go to the System -> Cache Management section
Click on the Flush Magento Cache button
Using SSH/FTP or the cPanel File Manager
Delete the contents of the var/cache/ folder using the following SSH command (MUST be executed from your Magento base directory):
rm -rf var/cache/*
OR
Delete the folder var/cache/ through your FTP client or using the cPanel File Manager.
I hope this will help you.