{"id":10800,"date":"2024-06-04T19:17:43","date_gmt":"2024-06-04T19:17:43","guid":{"rendered":"http:\/\/www.truehost.co.ke\/?p=3458"},"modified":"2024-06-07T11:50:20","modified_gmt":"2024-06-07T11:50:20","slug":"upload-website-files-cpanel-account-2-2","status":"publish","type":"post","link":"https:\/\/truehost.com\/support\/upload-website-files-cpanel-account-2-2\/","title":{"rendered":"How to upload website files to a Cpanel account"},"content":{"rendered":"<p>How to upload website files to a Cpanel account<\/p>\n<p>Having completed creating your website locally arises then need to host the website.<\/p>\n<p>After purchase of domain name and hosting account, this tutorial becomes crucial<\/p>\n<p>There are possibly two situations<\/p>\n<ol>\n<li>A website with no database<\/li>\n<li>A database driven Website<\/li>\n<\/ol>\n<p><span style=\"text-decoration: underline;\"><strong>Hosting a no database website<\/strong><\/span><\/p>\n<p>This could be a purely HTML site or even php.<\/p>\n<p>It is the simplest website to host.<\/p>\n<p>There are two ways of uploading the website files to a hosting account<\/p>\n<p>i.Mass Upload using File Manager<\/p>\n<p>ii.FTP upload using FTP Client<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\">i. Mass Upload Using File Manager.<\/span><\/p>\n<p>Zip your website files \u2013 make sure you use .zip extension i.e mywebsitefiles.zip<\/p>\n<p>From your browser access the hosting account that you already purchased.<\/p>\n<p><a href=\"http:\/\/www.yourdomain.com\/cpanel\">http:\/\/www.yourdomain.com\/cpanel<\/a><\/p>\n<p>i.e after your domain url put \/cpanel and load it.<\/p>\n<p>Login with username and password provide from TrueHost<\/p>\n<p>A successful login\u00a0 takes to the Cpanel (control panel) area.<\/p>\n<p>Click on the \u2018File Manager\u2019 icon<\/p>\n<p>Make sure it leads you to the public_html or www directory<\/p>\n<p>If it leads you to another directory like home, click on public_html or www links to go the public_html or www directory.<\/p>\n<p>Click on \u2018Upload\u2019 link<\/p>\n<p>Browse the location of mywebsitefiles.zip<\/p>\n<p>Select mywebsitefiles.zip to start upload.<\/p>\n<p>When upload is complete, click on go back to \/home\/username\/public_html (username is your Cpanel username) link to go back to public_html or www directory<\/p>\n<p>Among other folder or files in the directory there is mywebsitefiles.zip<\/p>\n<p>Right click on it and select\u2019 Extract\u2019 option<\/p>\n<p>Content of files are extracted to a mywebsitefiles folder<\/p>\n<p>Double click on the mywebsitefiles folder to open it<\/p>\n<p>Select all the files<\/p>\n<p>Click on the button \/ menu link \u2018Move\u2019<\/p>\n<p>Choose the correct directory to move your files to i.e \/home\/username\/public_html<\/p>\n<p>(by just removing the \/mywebsitefiles from the already provided path )<\/p>\n<p>Click \u2018ok\u2019\/ \u2018move\u2019 to move them<\/p>\n<p>Click \u2018up one level\u2019 to go to the public_html or www directory<\/p>\n<p>You may delete the empty folder mywebsitefiles and mywebsitefiles.zip<\/p>\n<p>You are now up and live. \u2013congratulation<\/p>\n<p>ii.\u00a0<span style=\"text-decoration: underline;\">FTP upload using FTP Client<\/span><\/p>\n<p>Open a FTP client software like FileZilla (if already installed, download for free and install if not) from your computing device<\/p>\n<p>Login with credentials provided<\/p>\n<p>Host: yourdomain.com<\/p>\n<p>Username: your Cpanel username<\/p>\n<p>Password: your Cpanel username<\/p>\n<p>Port: 21<\/p>\n<p>The click Quickconnect button<\/p>\n<p>It will open your hosting account on the \u2018Remote Site\u2019 panel \u2013 on the right side<\/p>\n<p>Click on public_html or www folder to go to the public_html directory<\/p>\n<p>On the left panel is the location of website on your computer yourwebsitefiles<\/p>\n<p>Make sure on the left panel you can see your website files and folders<\/p>\n<p>Use Ctrl+A or otherwise to select all your website files,<\/p>\n<p>Right click on them and choose the option \u2018upload\u2019<\/p>\n<p>Upload of files start, if it times out choose an option Resume to upload files in the queue incrementally<\/p>\n<p>When you see directory listing successful \u2013 disconnected from the server.<\/p>\n<p>Bingo! \u00a0You are up and live &#8211; congratulation<\/p>\n<p><span style=\"text-decoration: underline;\">Hosting a database Driven Website<\/span><\/p>\n<p>Hosting a data base driven website on a Cpanel hosting as offered by Truehost is simple.<\/p>\n<p>They only difference between hosting a non-database driven website and website driven website is that a database driven website require database set up and upload.<\/p>\n<p>Setting up database for a website, during web hosting<\/p>\n<p>Login to your Cpanel using credentials provided by Truehost Kenya.<\/p>\n<p>Basically mean clicking on the Cpanel url <a href=\"http:\/\/www.yourdomain.com\/cpanel\">http:\/\/www.yourdomain.com\/cpanel<\/a> or http:\/\/www.serveripaddress\/~yourusername\/cpanel<\/p>\n<p>Input your username<\/p>\n<p>Input your password<\/p>\n<p>Login.<\/p>\n<p>On successful login, proceed to click mysql databases icon in the Cpanel<\/p>\n<p><span style=\"text-decoration: underline;\">Creating a database<\/span><\/p>\n<p>Under create database<\/p>\n<p>Give your database a name<\/p>\n<p>Click create database<\/p>\n<p>Database name will therefore be your username_newnameyouhavegiven<\/p>\n<p><span style=\"text-decoration: underline;\">Adding User to a new database<\/span><\/p>\n<p>Online databases do not use the root user as default on localhost (local development phpmyadmin)<\/p>\n<p>Under add new user<\/p>\n<p>Indicate username<\/p>\n<p>Username should have fewer than 7 characters<\/p>\n<p>Input a desired database password<\/p>\n<p>I recommend to use password creator to have a strong password.<\/p>\n<p>At this point make sure you have saved your database name, your database username and your database password in a text file for use in your website.<\/p>\n<p><span style=\"text-decoration: underline;\">Adding user to your database<\/span><\/p>\n<p>Under Add a User to a Database<\/p>\n<p>Selected the user you have created<\/p>\n<p>Select your database<\/p>\n<p>Click Add to add<\/p>\n<p>It prompts you for roles to issue you database user<\/p>\n<p>You may select all<\/p>\n<p>Then presses add to finalize.<\/p>\n<p><span style=\"text-decoration: underline;\">Uploading Database<\/span><\/p>\n<p>Make sure you have exported your database from your localhost (local development environment) to a .sql file or .zip file if you are dealing with large database.<\/p>\n<p>From your Cpanel Home<\/p>\n<p>Click on phpmyAdmin icon<\/p>\n<p>It will open in a new tab<\/p>\n<p>Choose the database created earlier from the left side panel<\/p>\n<p>Click on the database<\/p>\n<p>Click on import option<\/p>\n<p>Browse the location of your exported database<\/p>\n<p>Select database file to import<\/p>\n<p>On Successful import \u2013 you will have uploaded your database<\/p>\n<p>Upload the files in the normal way as illustrated in the upload of non-database driven website tutorial<\/p>\n<p>Ensure database connection or config files of your website reflect the new database name, new database user, new database password<\/p>\n<p>Server should remain localhost unless advised otherwise by Truehost team.<\/p>\n<p>&nbsp;<\/p>\n<p>Bingo \u2013 u r live now.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to upload website files to a Cpanel account Having completed creating your website locally arises then need to host the website. After purchase of domain name and hosting account, this tutorial becomes crucial There are possibly two situations A website with no database A database driven Website Hosting a no database website This could [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10800","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to upload website files to a Cpanel account -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.truehost.com\/support\/upload-website-files-cpanel-account-2-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to upload website files to a Cpanel account -\" \/>\n<meta property=\"og:description\" content=\"How to upload website files to a Cpanel account Having completed creating your website locally arises then need to host the website. After purchase of domain name and hosting account, this tutorial becomes crucial There are possibly two situations A website with no database A database driven Website Hosting a no database website This could [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.truehost.com\/support\/upload-website-files-cpanel-account-2-2\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-04T19:17:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-07T11:50:20+00:00\" \/>\n<meta name=\"author\" content=\"kt\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kt\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/upload-website-files-cpanel-account-2-2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/upload-website-files-cpanel-account-2-2\\\/\"},\"author\":{\"name\":\"kt\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#\\\/schema\\\/person\\\/13b0dca8f0a4699018d92ad9869668c8\"},\"headline\":\"How to upload website files to a Cpanel account\",\"datePublished\":\"2024-06-04T19:17:43+00:00\",\"dateModified\":\"2024-06-07T11:50:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/upload-website-files-cpanel-account-2-2\\\/\"},\"wordCount\":906,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.truehost.com\\\/support\\\/upload-website-files-cpanel-account-2-2\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/upload-website-files-cpanel-account-2-2\\\/\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/upload-website-files-cpanel-account-2-2\\\/\",\"name\":\"How to upload website files to a Cpanel account -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#website\"},\"datePublished\":\"2024-06-04T19:17:43+00:00\",\"dateModified\":\"2024-06-07T11:50:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/upload-website-files-cpanel-account-2-2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.truehost.com\\\/support\\\/upload-website-files-cpanel-account-2-2\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/upload-website-files-cpanel-account-2-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to upload website files to a Cpanel account\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#\\\/schema\\\/person\\\/13b0dca8f0a4699018d92ad9869668c8\",\"name\":\"kt\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b15c3006fe3bf174dea56e93ccc38a5ca0aa2f465be4368c6e1dc5fe306f971a?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b15c3006fe3bf174dea56e93ccc38a5ca0aa2f465be4368c6e1dc5fe306f971a?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b15c3006fe3bf174dea56e93ccc38a5ca0aa2f465be4368c6e1dc5fe306f971a?s=96&r=g\",\"caption\":\"kt\"},\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/author\\\/truehost\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to upload website files to a Cpanel account -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.truehost.com\/support\/upload-website-files-cpanel-account-2-2\/","og_locale":"en_US","og_type":"article","og_title":"How to upload website files to a Cpanel account -","og_description":"How to upload website files to a Cpanel account Having completed creating your website locally arises then need to host the website. After purchase of domain name and hosting account, this tutorial becomes crucial There are possibly two situations A website with no database A database driven Website Hosting a no database website This could [&hellip;]","og_url":"https:\/\/www.truehost.com\/support\/upload-website-files-cpanel-account-2-2\/","article_published_time":"2024-06-04T19:17:43+00:00","article_modified_time":"2024-06-07T11:50:20+00:00","author":"kt","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kt","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.truehost.com\/support\/upload-website-files-cpanel-account-2-2\/#article","isPartOf":{"@id":"https:\/\/www.truehost.com\/support\/upload-website-files-cpanel-account-2-2\/"},"author":{"name":"kt","@id":"https:\/\/www.truehost.com\/support\/#\/schema\/person\/13b0dca8f0a4699018d92ad9869668c8"},"headline":"How to upload website files to a Cpanel account","datePublished":"2024-06-04T19:17:43+00:00","dateModified":"2024-06-07T11:50:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.truehost.com\/support\/upload-website-files-cpanel-account-2-2\/"},"wordCount":906,"commentCount":0,"publisher":{"@id":"https:\/\/www.truehost.com\/support\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.truehost.com\/support\/upload-website-files-cpanel-account-2-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.truehost.com\/support\/upload-website-files-cpanel-account-2-2\/","url":"https:\/\/www.truehost.com\/support\/upload-website-files-cpanel-account-2-2\/","name":"How to upload website files to a Cpanel account -","isPartOf":{"@id":"https:\/\/www.truehost.com\/support\/#website"},"datePublished":"2024-06-04T19:17:43+00:00","dateModified":"2024-06-07T11:50:20+00:00","breadcrumb":{"@id":"https:\/\/www.truehost.com\/support\/upload-website-files-cpanel-account-2-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.truehost.com\/support\/upload-website-files-cpanel-account-2-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.truehost.com\/support\/upload-website-files-cpanel-account-2-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to upload website files to a Cpanel account"}]},{"@type":"WebSite","@id":"https:\/\/www.truehost.com\/support\/#website","url":"https:\/\/www.truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/www.truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/www.truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/www.truehost.com\/support\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.truehost.com\/support\/#\/schema\/person\/13b0dca8f0a4699018d92ad9869668c8","name":"kt","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b15c3006fe3bf174dea56e93ccc38a5ca0aa2f465be4368c6e1dc5fe306f971a?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b15c3006fe3bf174dea56e93ccc38a5ca0aa2f465be4368c6e1dc5fe306f971a?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b15c3006fe3bf174dea56e93ccc38a5ca0aa2f465be4368c6e1dc5fe306f971a?s=96&r=g","caption":"kt"},"url":"https:\/\/truehost.com\/support\/author\/truehost\/"}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/posts\/10800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=10800"}],"version-history":[{"count":1,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/posts\/10800\/revisions"}],"predecessor-version":[{"id":12932,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/posts\/10800\/revisions\/12932"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=10800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/categories?post=10800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/tags?post=10800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}