I've tried multiple online guides to try and get my localhost wordpress site onto the domain but i can't get it right.

I have CPanel open and a domain set up and i can see Softaculous has a WordPress installer. Should i install that first?

I am so confused.

CPanel has a File Manager section so is that where i import my theme files etc?

Thank you

  • Your site is in your localhost ? – Pratik Patel Oct 3 at 11:02
  • You have to create a database in cpanel and upload database in cpanel database and change wp-config.php file database details for file manager section – Dharmishtha Patel Oct 3 at 11:02
  • maybe you should describe what is it that you "can not get right" – Mark Kaplun Oct 3 at 11:41

The Answer mentioned by Gautam Jha is perfect, But if you fear or don't like that method and rather would want to go by the copy paste method then

(A) Do not ( Don't) use Softaculous for below method

(1) the most important thing is to export your DB from your localhost's PhpMyAdmin and import in your Cpanel's PhpMyAdmin (1.1) Here you need to make sure the prefix i.e. wp_ need to carry forward with compliance with the prefix provided by your shared hosting. (1.2) For that before importing the sql file, you need to accordingly bulk replace the prefix in a .sql file using Sublime text editor(preferably) (1.3) Also bulk replace the locahost url with live domain URL

Once you have successfully got the DB copied at your CPanel then simply

(2) Copy the root folder from localhost to your CPanel (assuming that you know what to copy paste where and how, ComeOn this is common sense, play a bit if you get struck here) (2.2) Open the wp_config file and check the DB table name for mismatch if any.

(3) Now open you site in browser it must show the site properly if the bulk replace was done perfectly in the previous step.

I'm assuming that you know the hidden basic steps which a developer gathers with his experience.

  • i am Gautam Jha, can you correct it – Gautam Jha Oct 3 at 11:54
  • haha, Corrected! :) – Tanuj Mandale Oct 3 at 12:00

Follow simple steps.

  1. Install Wordpress on Cpanel Domain/Subfolder with Installer.
  2. Install All-in-One WP Migration (at local and Wordpress on server both)
  3. Create a backup at localhost.
  4. Find that file and uplaod it in restore option at server.

You can use any other backup restore plugin but this one is my tested.

Happy Day.

  • that is far from being complete, and I am not sure what is simple about this. – Mark Kaplun Oct 3 at 11:37
  • HI, Sorry i dont know what you mean. I have now installed the duplicator plugin and have downloaded the installer files. It says i have to upload these to my CPanel directory now – lomomeg Oct 3 at 11:40
  • @MarkKaplun simple about this answer is. we don't need to care about config filee and other unnecessary processes like old link fixing, and he have app installer in cpanel what he already mentioned so just installing a plugin can made things easy for him – Gautam Jha Oct 3 at 11:51
  • @lomomeg Please install all in one migrator plugin and create a backup at local. then again install same all in one migrator plugin at your server side wordpress. and find restore option in plugin then upload the file you created in local – Gautam Jha Oct 3 at 11:54
  • @lomomeg install wordpress using Softaculous installer. then go to wordpress admin panel. – Gautam Jha Oct 3 at 11:56

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.