The software package swhosting-rpc is the API that is responsible for communicating and synchronizing the actions performed in SW Panel with your Cloud server.
When you perform any action in SW Panel, it will make a remote procedure call (RPC) to your Cloud requesting the swhosting-rpc program to execute the action.
To proceed with the installation of swhosting-rpc, we will first add the repository by executing the following commands:
cat >> /etc/apt/sources.list <<EOF # SWHosting XML RPC deb http://packages.swhosting.com/serveisweb stable non-free EOF
Download the public key:
wget -O - http://packages.swhosting.com/serveisweb/swhosting.gpg.key|apt-key add -
Finally, we install:
apt-get install swhosting-rpc
It will show us the list of packages to install, press the letter "y" and "Enter".
All servers with SWPanel use license deployed by SWHosting already have this package installed by default.
If at any time we have to update this package, we execute the following commands:
apt-get update apt-get install swhosting-rpc
Or if you prefer, you can update all the packages:
apt-get update apt-get upgrade
Be careful, this operation will update all the packages of your system. Proceed only if you know what you are doing...
The package generates two directories:
We have the following configuration files:
RPC Service: /etc/swhosting-rpc/swhostingrpc.yml
Log configuration: /etc/swhosting-rpc/log4perl.conf
You can know that everything is fine executing the script
If there were an error, it would appear.
IMPORTANT: To edit the configuration files, use spaces and no tabs.
I have modified the configuration but it does not apply.
I run the test and errors appear.
- It is possible that you have modified at some point the password of the user "root" or "debian-sys-maint" and this change has not been reflected in the configuration file "swhostingrpc.yml". > Remember that you can request the intervention of the Systems Engineering Area by opening a ticket for technical action.