An error occurs when changing the PHP version through the cPanel or WHM Multi PHP Manager relating to an operation not being permitted.
When changing the PHP version for your domain through cPanel, or the WHM a similar error is presented:
"The system failed to apply the “PHP” version to domain.tld
The system failed to set the user ID to “1027”
and the group ID to “99” on “GLOB(0x487c600)”
because of an error: Operation not permitted at
/usr/local/cpanel/Cpanel/FileUtils/Access.pm line 78.
This often indicates the files are incorrectly owned by the user.
You can use 'ls -lah' or stat on the file or folder to verify the ownership of the files. These will be located in /home/username/public_html and should be owned by the user, as user.user.
chown user.user /home/username/public_html/file_name
Once modified, change the PHP version to the desired version.