Symptoms
- One of the following errors is showing when attempting to activate example.com domain name:
Error: The domain or website example.com cannot be activated because it was disabled by your hosting provider.
Error: The domain or website example.com cannot be activated because it was suspended by your hosting provider.
- It may not be possible to activate it via CLI as well:
# plesk bin domain --on example.com
An error occurred during turning domain on/off: The domain is suspended because the subscription is still suspended.
- No backup operations are running
Cause
Unclear
Investigate root cause to find out why sometimes it is not possible to activate the domain via CLI. More details are needed
Resolution
In order to resolve this, first try to activate the domain via CLI:
-
Activate domain via CLI, if you did not try it yet:
# plesk bin domain --on example.com
-
Back up Plesk database
-
Connect to Plesk database
-
Set domain status to active:
mysql> update domains set status = 0 where name='example.com';
-
Set webspace status to active:
mysql> update domains set webspace_status=0 where name='example.com';
-
To activate domain aliases, find suspended ones and activate them using the value of
dom_id
:mysql> select dom_id,displayName from domain_aliases where status!=0;
+--------+-------------+
| dom_id | displayName |
+--------+-------------+
| 40 | example.net |
+--------+-------------+
mysql> update domain_aliases set status=0 where status=2 and dom_id=40; - Execure the command below:
# plesk repair web example.net
- Log in to Plesk
- Go to Domains > example.com. Suspend and activate the domain to ensure the issue got fixed.
Comments
0 comments
Please sign in to leave a comment.