php - Uploading Wordpress site


So, I have created a wordpress site with database and everything. I used the plugin "duplicator" to store a backup. I now have a folder with all the wordpress php-files and a sql-file as well. Im using localhost.

Now Im trying to upload it to a webhost but Im having some problems to make it work.

Right now Im using Cpanel but I don't understand how to import the wordpress files. What I have done so far is installing Wordpress with softaculous, checked, tried to upload sql-file in phpmyadmin, not checked, and tried to upload all the wordpress files to public_html, not checked as well.

Does it exist any easier way to upload all files to a webhost or could anyone guide me through the progess. I would be grateful!

If I have forgotten to mention anything please tell me. Thanks!




Please follow the steps:

  1. Upload all the wordpress files and folder on you hosting using cPanel

  2. Import the database using the PhpMyAdmin.

  3. Make the necessary changes in the wp-config i.e the DB_NAME(Database name), DB_USER(Name of the user whom the database privileges are assigned to), DB_PASSWORD, DB_HOST

  4. Then later execute the following query, note: wp_ is prefix of table. If you have changed the prefix of the table at the time of installation then use that prefix with wp_ in the below query

    UPDATE wp_options SET option_value = replace(option_value, 'old_domain_url_here', 'new_domain_url_here') WHERE option_name = 'home' OR option_name = 'siteurl';

    UPDATE wp_posts SET guid = replace(guid, 'old_domain_url_here', 'new_domain_url_here');

    UPDATE wp_posts SET post_content = replace(post_content, 'old_domain_url_here', 'new_domain_url_here');

For more details please visit the below link:




There are actually a few really good tutorials on the web. Have a look at this link:

Use FileZilla to upload the actual content: You will need your Host, ex, Username and password details provided by your web host to upload your site.

The above tutorial explains everything step by step, very useful.

People are also looking for solutions to the problem: Send mail() using php but Sender name always Apache


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.