I have moved everything to ubuntu server last year except one app. To complete the move I have one import function on an old app that requires reading in 80,000 emails in a script that uses php56. I have php56 but I failed to add php56-imap when the server was created for the php IMAP functions. I know this should have been done a long time ago.
I am unable to find any php56-imap in the repo search since everything is now EOL. I am unable to easily re-write the PHP script but I probably could rewrite the email functions if php imap-open is not going to be available. This is the last step to moving the Centos 7 server apps.
Is there any way to add php56-imap to an existing Centos 7 EOL virtualmin server with PHP56 already running? If not, what facilities would I use to handle the imap functions outside of php56? Once I read the emails in and segregate attachments the php 5.6 scripts will work and then I can move everything over to my running Ubuntu virtualmin server.
I think upgrading that app is well overdue PHP has moved on considerably since v5.6 (rightly so!) it is worthwhile spending some effort/time $$$ to bring it into the 20th century.
I doubt if you are going to find php56-imap or any php56 package that can be trusted for any current distro. You are going to have to spend more time/effort/$$$ just testing it even if you do.
does this script work on another other version of PHP
do you have any other version of PHP installed on this centos server that might have the imap extention on?
the plugin might just work. 7.3 is probably the latest I would go becasue the change session handling in 7.4 and If i remember this will stop a lot of stuff working.
I know it is overdue but that is the situation today and I have to work with what I have. Thanks for the input and I am sure some solution will be available.
What about Ilya’s idea back in 2020? Would this work today running centos7 EOL server and add the php56-imap so I can do the steps I need? The post says it can be reversed if it doesn’t work. I can do a snapshot of the server on Linode and restore it if there is a problem. Thanks.