How do I host a website using cPanel?: friends, if you want to make a website, then 99% of the people only know that to buy hosting, buy a domain, and go to Cpanel and install WordPress, then install a theme, and that’s it website will be ready to use.
How do I host a website using cPanel?
Table of Contents

But apart from this, there are a lot of things that need to make a website, and today the topic is one of them. Today I will talk about how to sift a website from one hosting to another hosting, using Cpanel. , Or also how a website is uploaded using Cpanel.
Friends, if you do not know much about Cpanel, if you are new to blogging, then I would suggest that you create a website in a simple way, do not tamper with Cpanel, otherwise, your hosting may face so many problems.
How do I upload my website in cPanel? Step 1 |
If you use a simple hosting company service, then you will definitely have a panel, but if you use company services like Hostinger and Siteground, then you will have H-pannel.
Both work in one way, whether it is Cpanel or H panel, both work the same.
But here the name of the function is different like Cpanel is softaculous and H-panel has auto-installer.
So we talk about Cpanel because it is the one that is used the most.
So to upload a website to any hosting first you have to go to your Cpanel, after that, you have to go to File manager after going to file manager, you have to go to the section of public_html, then click on the upload button.
After clicking the Upload button, a new window will open in your browser, and you will see a button to select file name.
If you want, you can also upload your file by drag and drop here, or you can also select the file directly.
But if you do not have any file, then you can download it from another hosting, otherwise, if you know coding like HTML, CSS, etc, then you can make it on your computer too.
But most people do this job only for backup, so if you just want to backup, or if you want to learn Cpanel, then this method is very right for you. And this also saves time.
After uploading, you have to go to the public_html file, and refresh, after the refresh, you will see a zip file, and you have to extract that zip file.
After extracting the file, you have to connect your file to the database and to connect the database you have to create a database and also a User.
I have made a video to create a database, you can watch it if you want.
How do I upload my website in cPanel? Watch Video. |
After creating the database, you have to go to the Public_html folder and then wp-config.php. In order to edit the PHP file, I have given below an example code, you can see if you want.
How do I Connect Database: How do I host a website using cPanel? |
<?php Viswanath dhinda How do I host a website using cPanel?, Cpanel, FTP.
define(‘WP_CACHE’, true); // Added by WP Rocket
* The base configuration for WordPress
* The wp-config.php creation script uses this file during the
* installation. You don’t have to use the web site, you can
* copy this file to “wp-config.php” and fill in the values.
* This file contains the following configurations:
* * MySQL settings
* * Secret keys
* * Database table prefix
* * How do I host a website using cPanel?, Cpanel, FTP.
* @link https://wordpress.org/support/article/editing-wp-config-php/
* @package How do I host a website using cPanel?, Cpanel, FTP.
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define( ‘DB_NAME’, ‘tipsingi_wp994’ );
/** MySQL database username */
define( ‘DB_USER’, ‘tipsingi_wpvdcx594’ );
/** MySQL database password */
define( ‘DB_PASSWORD’, ‘S57(y8regfep(Ml’ );
/** MySQL hostname */
define( ‘DB_HOST’, ‘localhost‘ ); How do I host a website using cPanel?, Cpanel, FTP.
/** Database Charset to use in creating database tables. */
define( ‘DB_CHARSET’, ‘uqqef2tf8mb4’ );
/** The Database Collate type. Don’t change this if in doubt. */
define( ‘DB_COLLATE’, ” );
/**#@+
* Authentication Unique Keys and Salts.
* How do I host a website using cPanel?, Cpanel, FTP.
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
* How do I host a website using cPanel?, Cpanel, FTP.
* @since 2.6.0
*/ How do I host a website using cPanel?, Cpanel, FTP.
define( ‘AUTH_KEY’, ‘bfzl7ft6dzassadafadrxbr0khchni6jcyheci0yevysb20cerqodxz3niiw9yqqifvxyx2bfc’ );
define( ‘SECURE_AUTH_KEY’, ‘nhfzfln0yskabmigmiohgfguerersldebksbiw1lymnbfgihfug4hwm9wwtyoanlwpv7wjyd’ );
define( ‘LOGGED_IN_KEY’, ‘2ydofuznhpogwgwz1t2hurhrrtytbtyrpmtnh8i0rzsadn4bceqhvsuolwx67glga5wup8sljvo’ );
define( ‘NONCE_KEY’, ‘iyq1tdqemrex2ohlwadhoigvpx6esbkzm8wgvuxx3ruqkqlov6sbokr8eq3aykyw’ );
define( ‘AUTH_SALT’, ‘7ieam77q9hbd84r6ekcusf2g2797sscyslxcwv7t2fopon6yty6cgrbcdmuzr2ah’ );
define( ‘SECURE_AUTH_SALT’, ’60lm0sapnezyfygb0rd2r3pberxz7lghndkweluflac0tqevfc0i9tus48n9kvb3′ );
define( ‘LOGGED_IN_SALT’, ‘zg21dndub3frawati6fnibtx5jbn1fow36tbkfx61ekexuq7rvvcvczqvcesbxbt’ );
define( ‘NONCE_SALT’, ‘zyhnjgrucyk499pv6ckhtkxploevogdooeapmj1lzoqnepxiguyvbvwhrtreeipx’ );
* WordPress Database Table prefix. How do I host a website using cPanel?, Cpanel, FTP.
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = ‘wpdo_’;
/**
* For developers: WordPress debugging mode.
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.

* For information on other constants that can be used for debugging,
* visit the documentation.
* @link https://wordpress.org/support/article/debugging-in-wordpress/
*/ How do I host a website using cPanel?, Cpanel, FTP.
define( ‘WP_DEBUG’, false );
/* That’s all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( ‘ABSPATH’ ) ) {
define( ‘ABSPATH’, __DIR__ . ‘/’ );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . ‘wp-settings.php’;
After connecting the database, your website will be uploaded successfully, and now you can use your website.
If you do not know about coding, then you should not try this step, it is better to migrate your website through a plugin.
Benefits of Cpanel upload. |
Uploading from the Cpanel it saves time, and is one of the best methods of website migration, although in WordPress you can backup using different plugins, but in other platforms like Joomla or other scripted platforms, you have to adopt the Cpanel uploading method for this.
More Like This:
- How do I SEO my website? Beginner’s Guide to SEO [Search Engine Optimization]
- Blogger vs WordPress || difference between blog and website
- Responsive Blogspot Blogger Theme free 2020
- Namecheap domain at just 380RS Best cheap Domain
So friends, I hope, you must have liked this post, if you like, share it with your friends.
i like this superb post
I’ve always had internet explorer and I never used anything else. What can google chrome and firefox do that internet explorer cant?.