Background: When Enhance is installed on a server it will install ioncube loaders in /usr/local/ioncube. It appears the latest loaders available at the time are installed. However, as loaders are updated you may find an issue with never versions of php and the loaders being missing/not supported. ie Ioncube 13.x does not support php 8.4
This simple script will do the update for you, use at your own risk of course. You can easily run this across all your servers using Ansible as well.
Note: after updating the loaders, php for the website you use them on needs to be restarted.
(anyone know how to restart all php "containers" in Enhance?)
I do have an unanswered question perhaps someone can explain. I made sure to copy the file user:group from the previous loaders, but in my Enhance cluster these are all owned by 507:507 and the script gives a non-fatal error about the owner being unknown. I understand why linux shows a number as the owner (if you don't look it up), but I wonder why Enhance do it this way.. or if it's not even an issue. Let me know your thoughts.