Black Friday Hosting Deals: 69% Off + Free Migration: Grab the Deal Grab It Now!
Here’s a full step-by-step guide to fixing the “Invalid cPanel License” error:
Step 1: Verify License Status
1.Check License with cPanel:
- Visit the cPanel license verification page: cPanel License Verification
- Enter your server’s IP address to check if your license is valid.
2.Contact Your Hosting Provider:
If the license appears invalid, reach out to your hosting provider to confirm the status of your cPanel license.
Step 2: Reconfigure cPanel License
1. Access Your Server via SSH:
Use an SSH client (like PuTTY) to log in to your server as the root user.
2. Run the License Update Command:
- Execute the following command to update the license:
bash
Copy code
/usr/local/cpanel/cpkeyclt
- This command forces cPanel to contact the licensing server to verify your license.
Step 3: Verify cPanel Installation
1. Check for Installation Issues:
- Run the following command to ensure that your cPanel installation is functioning correctly:
bash
Copy code
/scripts/upcp
- This command will update cPanel and may fix any corruption in the installation.
Step 4: Check Server Time
1. Verify Date and Time:
Check the current date and time on your server by running:
bash
Copy code
date
2. Adjust Time if Incorrect:
- If the date or time is incorrect, you can set it manually using:
bash
Copy code
date MMDDhhmmYYYY
- Replace MMDDhhmmYYYY with the correct month, day, hour, minute, and year.
3. Synchronize with NTP (Optional):
- Install the ntp service if it’s not already installed:
bash
Copy code
yum install ntp # For CentOS/RHEL
apt-get install ntp # For Ubuntu/Debian
- Start the NTP service:
bash
Copy code
systemctl start ntpd # For CentOS/RHEL
systemctl start ntp # For Ubuntu/Debian
- Enable it to start on boot:
bash
Copy code
systemctl enable ntpd # For CentOS/RHEL
systemctl enable ntp # For Ubuntu/Debian
Step 5: Check Firewall and Network Issues
1. Test Network Connectivity:
Ensure your server can connect to cPanel’s licensing server:
bash
Copy code
ping verify.cpanel.net
If the ping is unsuccessful, check firewall settings.
2. Adjust Firewall Rules:
Open the necessary ports for outbound connections, typically port 2087 (for WHM) and other required ports.
Step 6: Contact cPanel Support
Reach Out to Support:
- If the error persists after following the above steps, contact cPanel support or your hosting - provider for assistance.
- Provide them with details about the error and what troubleshooting steps you’ve already taken.
Step 7: Reinstall cPanel (Last Resort)
1. Backup Important Data:
- Before proceeding with a reinstallation, ensure you back up any critical data, websites, and configurations.
2. Reinstall cPanel:
- If all else fails, you may consider reinstalling cPanel. Follow the official cPanel installation guide for your specific operating system.
- To reinstall, run the installation script:
bash
Copy code
cd /home
curl -o latest -L https://securedownloads.cpanel.net/latest
sh latest
Final Notes
- Always make sure to back up your data before making major changes.
- Make sure you have sufficient resources and access rights for all the commands you execute.
- If you are unsure about any steps, it's always best to consult with your cloud hosting provider or a professional.
Let’s talk about the future, and make it happen!
By continuing to use and navigate this website, you are agreeing to the use of cookies.
Find out more