Create new website in cpanel

Here's a step-by-step guide to creating a new website in cPanel:

Prerequisites:

  1. You have a cPanel account with a web hosting provider.
  2. You have a domain name registered and pointing to your cPanel account.
  3. You have a basic understanding of HTML, CSS, and PHP (if you plan to create a dynamic website).

Step 1: Log in to cPanel

  1. Go to your web hosting provider's website and log in to your cPanel account using your username and password.
  2. Click on the "Log in" button to access your cPanel dashboard.

Step 2: Create a new database

  1. In the cPanel dashboard, click on the "Databases" icon.
  2. Click on the "MySQL Databases" tab.
  3. Click on the "Create a New Database" button.
  4. Enter a name for your database and click on the "Create Database" button.

Step 3: Create a new user for the database

  1. In the cPanel dashboard, click on the "Databases" icon.
  2. Click on the "MySQL Users" tab.
  3. Click on the "Create a New User" button.
  4. Enter a username and password for the database user.
  5. Select the database you created in Step 2 as the database for this user.
  6. Click on the "Create User" button.

Step 4: Grant privileges to the database user

  1. In the cPanel dashboard, click on the "Databases" icon.
  2. Click on the "MySQL Users" tab.
  3. Click on the username you created in Step 3.
  4. Click on the "Edit Privileges" button.
  5. Select the privileges you want to grant to the user (e.g., SELECT, INSERT, UPDATE, DELETE).
  6. Click on the "Make Changes" button.

Step 5: Upload your website files

  1. In the cPanel dashboard, click on the "Files" icon.
  2. Click on the "File Manager" button.
  3. Upload your website files (e.g., HTML, CSS, PHP, images) to the public_html directory.
  4. Make sure to upload your files in the correct directory structure (e.g., public_html/index.html).

Step 6: Set up your website

  1. In the cPanel dashboard, click on the "Domains" icon.
  2. Click on the "Addon Domains" tab.
  3. Enter the domain name you want to use for your website.
  4. Select the document root directory (e.g., public_html) and click on the "Add Domain" button.
  5. Configure your website's settings (e.g., timezone, language) as needed.

Step 7: Test your website

  1. Open a web browser and navigate to your website's URL (e.g., www.yourwebsite.com).
  2. Verify that your website is displaying correctly and that all links and images are loading properly.

That's it! You have now created a new website in cPanel.