Hi James,
Minor point - AtoM 2.7 supports PHP 7.4, not 7.2 (which was our recommended version for 2.6). But in any case, you're still right - 7.4 is also deprecated at this point.
I understand your goal of using only supported versions - it's something that our new team of AtoM maintainers is very aware of, and is currently preparing a release roadmap to address. I hope we will be able to share more information about this soon.
In the meantime, and for version 2.7, unfortunately I don't think you'll be able to get it to work with PHP8. There are quite a few
breaking changes and
deprecated features between 7.x and 8 that will absolutely impact AtoM, and are likely responsible for the cURL error message you're seeing. While I suspect that the changes in Ubuntu 22.04 are likely minor compared to 20.04, huge sections of AtoM will need to be reviewed and updated to support PHP8 - and as you've noted, you'll need to use a third-party source to install v7.x on an Ubuntu 22.04 server since these versions are no longer formally supported.
Keeping up with maintenance work and dependency upgrades has so far always been the hardest part of maintaining our projects on the piecemeal "bounty model" of development we have previously followed, since institutions want to pay for new features, and no one ever steps up to pay for maintenance work, despite the fact that some of these upgrades require dozens or even hundreds of hours of effort to implement. This is why we have slowly been undergoing a transition at Artefactual - so we can develop a different approach to development and maintenance that gives us more agency over what we prioritize without passing on outrageous costs to our clients or changing our values and approach to open source development. We still have more work to do in this area, but are slowly coalescing around a good approach for the future.
So in the meantime: if you would like to use AtoM 2.7, you will either need to manually install php 7.4 on your Ubuntu 22.04 instance
(here are some instructions that, while I
haven't tested them so proceed at your own risk, seem basically correct to me - and use the ondrej PPA that we at Artefactual have used for several AtoM releases in the past when supported PHP versions did not match the currently supported Ubuntu version), or find a VPS provider that allows more flexibility and control over what you install.
Finally, one more alternative is to consider moving to a provider that offers actual AtoM hosting plans, so you don't need to worry about any of this. Obviously Artefactual offers such plans (
see our website) but there are also a number of other vendors out there as well. Generally these hosting plans come with some guarantees about security, backups, etc... so you don't have to worry about any risks associated with running an older version of PHP for example, since the hosting provider takes on those risks.
I wish I had a better answer for you! But for now, stay tuned. As I said, I hope that we can soon share the roadmap our new Maintainers are currently putting together.