- Plesk Onyx for Linux
- API request to a Plesk server fails with the following error:
PLESK_ERROR: error 1006 Access to API is disabled for 203.0.113.2
where 203.0.113.2 is the IP address from which an API request is sent.
API is enabled in the /usr/local/psa
enabled = on
Connection to the destination Plesk server using
telnetutility is possible.
Denied from the networks that are not listed option is selected under Tools & Settings > Restrict Administrative Access > Settings (button).
IP address from the error is restricted from login with administrator's privileges to destination Plesk.
2. Add the IP address to the list of allowed networks on the destination server under Tools&Settings > Restrict Administrative Access > Add Network.
If it did not help, allow the TCP port 8443 on local firewall:
2. Insert the rule to Iptables rule set:
# iptables -I INPUT 1 -p tcp --dport 8443 -j ACCEPT
#214528085 Not possible to install a certificate: Access to API is disabled for 127.0.0.1
#213916665 Migration to Plesk 12.5 fails: Access to API is disabled
#214527805 Unable to start migration: Failed to connect to target Plesk server by Plesk API Plesk error 1006 Access to API is disabled