
cPanel is a popular web hosting control panel that provides a graphical interface for managing websites, databases, email accounts, and server configurations. Paired with WHM (Web Host Manager) for server-level administration, cPanel enables hosting providers and website owners to manage multiple accounts efficiently. The Vultr Marketplace provides a pre-configured cPanel/WHM instance, enabling quick deployment and setup on a Vultr server.
This guide explains deploying and using Vultr's cPanel Marketplace Application. You will deploy an instance, configure DNS and SSL, complete the WHM initial setup, create hosting accounts, and implement best practices for production deployments.
Log in to your Vultr Console and click the Deploy Server button.
Select your preferred server type.
Choose a server location.
Select a server plan with at least 2GB RAM and 2 CPU cores for production workloads.
Click the Configure button to proceed.
Under Marketplace Apps, search for cPanel and select it as the Marketplace Application.
Select the Limited Login option from the Additional Features section to create a limited user with sudo access.
Review your configurations and click the Deploy Now button to start deployment.
It may take up to 15 minutes for your server to finish installing cPanel/WHM. The instance may reboot once during installation.
After the instance shows the status of Running, navigate to the Server Overview page and copy the SSH connection details.
After deployment, configure DNS, verify the installation, and complete the WHM initial setup before creating hosting accounts.
Create a DNS A record pointing to your server's IP address, such as cpanel.example.com.
Connect to your Vultr server instance over SSH using the connection details from the Server Overview page.
Check the cPanel service status.
This displays the installed cPanel version.
Verify the cPanel license status.
The license should show as valid. If you see license errors, run this command to refresh.
Access WHM by visiting https://YOUR_SERVER_IP:2087 in a web browser.
You'll see a browser warning because of the self-signed certificate. Bypass it to continue.
Secure your server by configuring the firewall to allow only necessary traffic.
Allow SSH connections.
Allow HTTP and HTTPS traffic.
Allow WHM and cPanel ports.
Enable the firewall.
Verify firewall status.
Open the WHM interface in your browser.
If DNS is not yet configured, use your server's IP address instead.
Log in with the root account credentials from the Server Overview page.
Accept the license agreement.
Enter your admin email address and default nameservers. If using Vultr DNS, enter:
ns1.vultr.comns2.vultr.comClick Finish to complete the initial setup.
Enable AutoSSL to automatically provision Let's Encrypt certificates for your domains.
In WHM, navigate to SSL/TLS > Manage AutoSSL.
Choose Let's Encrypt or cPanel (Sectigo) as the certificate provider.
Click Run AutoSSL to request and install certificates for your server hostname.
Once complete, reload WHM using your secure domain URL:
The certificate warning should no longer appear.
In WHM, navigate to Networking Setup > Change Hostname.
Enter your FQDN (e.g., cpanel.example.com).
Click Change to apply.
Alternatively, use the command line:
Do not use a hostname that begins with www, a number, or ends with a hyphen. Use a unique FQDN that identifies the server.
Set up cPanel accounts to host websites and applications.
In WHM, click Account Functions > Create a New Account.
Enter the domain name, username, password, and email for the account.
Select a hosting package or leave default settings.
Click Create to provision the account.
Visit the cPanel interface:
Log in with the account username and password created in WHM.
From cPanel, you can:
cPanel/WHM provides comprehensive hosting management capabilities.
In cPanel, navigate to Databases > MySQL Databases.
Create databases and database users.
Manage databases using phpMyAdmin.
Access MySQL from the command line:
In cPanel, navigate to Email > Email Accounts.
Create email accounts for your domains.
Configure email clients using the provided settings.
Set up forwarders, autoresponders, and filters.
SMTP port 25 is blocked by default on Vultr. To enable outgoing email, open a support request. Alternatively, use an external SMTP relay service.
Use File Manager in cPanel to upload, edit, and manage files.
Access files via SFTP using your cPanel credentials.
Public website files are stored in the public_html directory.
Implement these recommendations to ensure your cPanel server runs securely and efficiently.
Enable two-factor authentication in WHM.
Navigate to Security Center > Two-Factor Authentication.
Enable cPHulk brute force protection.
Navigate to Security Center > cPHulk Brute Force Protection.
Keep cPanel updated.
Navigate to cPanel > Upgrade to Latest Version or run:
Restrict SSH access to specific IP addresses if possible.
Regularly review and remove unused accounts.
Enable PHP-FPM for better PHP performance.
Navigate to MultiPHP Manager and configure PHP-FPM.
Configure caching solutions like Varnish or LiteSpeed Cache for high-traffic sites.
Monitor server resources in WHM under Server Status > Service Status.
In WHM, navigate to Backup > Backup Configuration.
Enable scheduled backups (Daily, Weekly, or Monthly).
Configure backup destinations:
Test backup restoration periodically.
This section covers common issues and diagnostic commands.
Verify cPanel services are running.
Check overall service status.
View cPanel error logs.
Refresh the cPanel license.
If issues persist, open a Vultr support ticket.
Verify DNS is properly configured.
Run AutoSSL manually in WHM under SSL/TLS > Manage AutoSSL.
Check AutoSSL logs for errors.
Verify the service is running.
Check firewall allows ports 2087 and 2083.
Verify MySQL is running.
Check MySQL error logs.
cPanel excels in various web hosting scenarios:
In this guide, you deployed Vultr's cPanel Marketplace Application and configured it for production use. You secured the server with firewall rules and SSL/TLS certificates, completed the WHM initial setup, created hosting accounts, and implemented best practices for security and backups. With cPanel's comprehensive hosting management features and Vultr's infrastructure, you can efficiently manage websites, databases, and email for multiple clients and applications.
0 Comments
Be the first to comment and share your perspective with the community.