Create new website in cpanel
Here's a step-by-step guide to creating a new website in cPanel:
Prerequisites:
- You have a cPanel account with a web hosting provider.
- You have a domain name registered and pointing to your cPanel account.
- You have a basic understanding of HTML, CSS, and PHP (if you plan to create a dynamic website).
Step 1: Log in to cPanel
- Go to your web hosting provider's website and log in to your cPanel account using your username and password.
- Click on the "Log in" button to access your cPanel dashboard.
Step 2: Create a new database
- In the cPanel dashboard, click on the "Databases" icon.
- Click on the "MySQL Databases" tab.
- Click on the "Create a New Database" button.
- Enter a name for your database and click on the "Create Database" button.
Step 3: Create a new user for the database
- In the cPanel dashboard, click on the "Databases" icon.
- Click on the "MySQL Users" tab.
- Click on the "Create a New User" button.
- Enter a username and password for the database user.
- Select the database you created in Step 2 as the database for this user.
- Click on the "Create User" button.
Step 4: Grant privileges to the database user
- In the cPanel dashboard, click on the "Databases" icon.
- Click on the "MySQL Users" tab.
- Click on the username you created in Step 3.
- Click on the "Edit Privileges" button.
- Select the privileges you want to grant to the user (e.g., SELECT, INSERT, UPDATE, DELETE).
- Click on the "Make Changes" button.
Step 5: Upload your website files
- In the cPanel dashboard, click on the "Files" icon.
- Click on the "File Manager" button.
- Upload your website files (e.g., HTML, CSS, PHP, images) to the public_html directory.
- Make sure to upload your files in the correct directory structure (e.g., public_html/index.html).
Step 6: Set up your website
- In the cPanel dashboard, click on the "Domains" icon.
- Click on the "Addon Domains" tab.
- Enter the domain name you want to use for your website.
- Select the document root directory (e.g., public_html) and click on the "Add Domain" button.
- Configure your website's settings (e.g., timezone, language) as needed.
Step 7: Test your website
- Open a web browser and navigate to your website's URL (e.g., www.yourwebsite.com).
- 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.