SymptomsWhen I try to send an API-RPC request to Parallels Plesk Panel (PP), I receive a 404 error message. Reinstalling the psa-api-rpc-* package does not help.
CauseThe most likely cause is that the agent.php file is missing from PRODUCT_ROOT/
admin/htdocs/enterprise/control/agent.php, which is the part of theplesk-core-10.12.0*.rpm package:
# ls -la PRODUCT_ROOT/admin/htdocs/enterprise/control/agent.php
ls: /usr/local/psa/admin/htdocs/enterprise/control/agent.php: No such file or directory
The file may have been deleted in order to eliminate a vulnerability in PP; however, this is not a recommended solution. It is necessary to install Micro-Updates in order to properly protect the server from vulnerabilities.
ResolutionThe issue can be fixed by restoring the missing file manually from the plesk-core-10.12.0*.rpm package:
1) Create a temporary folder where it will be unpacked. For example:
# mkdir /tmp/plesk-support
and change the current directory to this folder:
# cd /tmp/plesk-support
2) Download the appropriate version of the plesk-core-10.12.0*.rpm package from http://autoinstall.plesk.com with the wget command.
Example for CentOS-5-i386:
# wget http://autoinstall.plesk.com/PSA_10.3.0/dist-rpm-CentOS-5-i386/base/plesk-core-10.12.0-cos5.build1012110629.18.i386.rpm
3) Unpack the downloaded RPM package:
# rpm2cpio plesk-core-10.12.0-cos5.build1012110629.18.i386.rpm | cpio -idmv
4) Copy the unpacked agent.php file to its location:
# cp usr/local/psa/admin/htdocs/enterprise/control/agent.php /usr/local/psa/admin/htdocs/enterprise/control/agent.php
5) Delete the temporary folder:
# rm -fr /tmp/plesk-support
NOTE: If you are using a Parallels Plesk Panel version older than 10.4, it is recommended that you install the latest Micro-Updates to eliminate vulnerabilities in Parallels Plesk Panel.