While changing PHP versions using PHP Selector, you may receive errors like the following.
Error The received data is wrong. Contact support for resolution. Error : failed to create symlink /home/ACCOUNT/.cagefs/opt/alt/php81/link/conf to /opt/alt/php81/etc/php.d: [Err code 17] File exists: '/opt/alt/php81/etc/php.d' -> '/home/ACCOUNT/.cagefs/opt/alt/php81/link/conf' Error : failed to create symlink /home/ACCOUNT/.cagefs/opt/alt/php74/link/conf to /etc/cl.php.d/alt-php74: [Err code 17] File exists: '/etc/cl.php.d/alt-php74' -> '/home/ACCOUNT/.cagefs/opt/alt/php74/link/conf'
This can be caused by the wrong files being present in /home/ACCOUNT/.cagefs/opt/alt/ where ACCOUNT is the cPanel account username.
The following command can be used to move the files out of the way. They should be regenerated automatically. ACCOUNT will need to be replaced with the actual cPanel account username.
mv -v /home/ACCOUNT/.cagefs/opt/alt/php* /home/ACCOUNT/alt-php-temp/
Once the issue is resolved. The
/home/ACCOUNT/alt-php-temp directory can be removed.