Domain redirecting to default web page on DigitalOcean

iamangry

Registered
Mar 22, 2019
1
0
1
Earth
cPanel Access Level
Root Administrator
Hello,

Just registered and came here to complain how absurd this issue is for God sake, it was easier for me to learn how to setup LAMP stack and install Cpanel from SSH, with ZERO issues, then try to fix this issue, while using OFFICIAL Cpanel Droplet on DigitalOcean.:

cPanel & WHM
by cPanel, LLC
VERSION 11.78.0.16
OS CentOS 7.6

Every single solution I tried on this post did not work, and this thread was started 10 years ago, cmon guys.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello @iamangry,

Thank you for taking the time to report an issue with the cPanel & WHM image on the DigitalOcean Marketplace.

We recently received a similar report and determined it was related to an issue where the cPanel & WHM image on the DigitalOcean Marketplace incorrectly configures the main shared IP address with the one that we (cPanel) use to build the DigitalOcean image (104.248.225.98). You can confirm if this is the case on your system by looking to see if this IP address appears in WHM >> Basic WebHost Manager Setup or by running the following command and looking for 104.248.225.98 in the output:

Code:
grep ADDR /etc/wwwacct.conf
If you see 104.248.225.98, then you can browse to WHM >> Basic WebHost Manager Setup and replace it with the IPv4 address assigned to your DigitialOcean droplet (you can find the correct IP address for the droplet in the DigitalOcean Cloud management interface).

Then, browse to WHM >> List Accounts to see if any of the existing accounts were assigned the wrong IP address at account creation time. If so, use WHM >> Change Site's IP Address and switch the accounts from the wrong IP address to the correct one.

Once you do this, run the following command and clear your browser cache one more time to see if the issue persists:

Code:
/scripts/rebuildhttpdconf
Let me know if the issue persists after performing the above steps and I'll take a closer look to see what's happening.

Additionally, I want to point out an updated cPanel & WHM image with a fix for this issue is scheduled for publication to the DigitalOcean Marketplace in the next few days in order to prevent this from happening on new droplets in the future. I'll update this thread as soon as the new image is published.

Thank you.
 
  • Like
Reactions: Infopro