Problems installing packages and updates with Almalinux8

Started by phpprogrammer93, March 18, 2025, 08:59:17 PM

Previous topic - Next topic

phpprogrammer93

Hi, I just installed Almalinux8 on my new server and was configuring CWP.
I find myself with about 12 updates to do, but as soon as I try to do them I get this error:
Last metadata expiration check: 0:39:32 ago on Tue Mar 18 21:19:23 2025.
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Can anyone help me?

cyberspace

Did you add some extra repositories or install binary packages (.RPMs) manually ?

phpprogrammer93

Quote from: cyberspace on March 19, 2025, 04:40:14 PM
Did you add some extra repositories or install binary packages (.RPMs) manually ?
Hi! Absolutely not! Other than following the CWP installation I have not installed anything manually. Can you help me or do I have to open a ticket?

Starburst

You would only get that error manually installing a .rpm that shouldn't have been, and now has corrupted the system.

There would have been information above those lines to tell you what package(s) broke the system.

Best bet is to start over to avoid any gremlins later.

phpprogrammer93

Quote from: Starburst on March 19, 2025, 10:22:17 PM
You would only get that error manually installing a .rpm that shouldn't have been, and now has corrupted the system.

There would have been information above those lines to tell you what package(s) broke the system.

Best bet is to start over to avoid any gremlins later.
I didn't install any package manually via terminal. I just mounted a new hard disk and then from cwp selected apache and nginix as server and installed PHP fpm. Stop But from the terminal nothing of the sort. As you say, should I format and reinstall almalinux8 from scratch?

Starburst

If nothing is on the server, then yes, that would be your best solutions I think.

Would also suggest AL9, since unless you need to run PHP under 7.4.x
Most of the bugs are in the migration part, like CWP -> CWP Migration, which they are working on.

phpprogrammer93

Quote from: Starburst on March 20, 2025, 01:55:21 PM
If nothing is on the server, then yes, that would be your best solutions I think.

Would also suggest AL9, since unless you need to run PHP under 7.4.x
Most of the bugs are in the migration part, like CWP -> CWP Migration, which they are working on.
hello,
I come from alma9 and I had to "run away" because after installing CWP I immediately started having problems with updates, account migration and wp_remote_post for wordpress.

Starburst

Only thing I've run into is the CWP -> CWP Migration due to the differences in encryption in AL8 & AL9.

All of our servers, except 1 that the client wants to keep on AL8 are running AL9 now.

No problems with WordPress running, or updates.

But AL8 will have security updates until May 2029.
AL9 is right behind it with active support until May 2027, and security support until May 2032.

overseer

If WordPress is your lifeblood, you should stick with AL8 and PHP 7.4 for full WP compatibility. Hopefully 8.1 will be a truly viable option soon.

Starburst

No problems so far with WordPress 6.7.2 and PHP 8.3.17

But maybe some plugin need the older PHP.
But AL9 support PHP 7.4.x as the lowest, so it should still be OK.

overseer

Quote from: Starburst on March 20, 2025, 06:08:31 PM
But maybe some plugin need the older PHP.
Yes, that's the root of the problem! Some legacy customer sites are running older versions of plugins and WP themes, all interdependent, so I have seen this on a shared server. 8.1 wasn't possible for full compatibility, so I had to run with php 7.4.

php 7.4 on AlmaLinux 9:
https://orcacore.com/install-php-7-4-almalinux-9/

Starburst

When you do the CWP install on AL9, PHP 7.4.33 is the version installed.

After installation, you have to upgrade the PHP version.

Nothing additional needs to be done. :)

phpprogrammer93

hello guys,
yes but in fact I had tried almalinux 9 with both PHP 7.4 and PHP 8.2.3 but I had the same problem with woocommerce for wp_remote_post, which was essential for me since I needed Paypal as a payment system.
By installing Almalinux8 I solved this problem, but now I have problems with updates. By following chatGPT a bit I managed to install some updates, while Maria DB doesn't want to hear of it and the usual message that I mentioned at the beginning appears.
The commands used with Chat GPT are the following:

yum clean all
yum makecache
yum update --nobest


Starburst

#13
You never really want to use --nobest

All you should need to do is
dnf --refresh update

Usually the other could corrupt CWP, and cause you problems that might not be able to be fixed.

If you are not a Sys Admin and are using ChatGPT to try and run a server, that will probably fail.

Probably why you are having problems out of the gate.

It should be install AL8, run the update string above, install CWP, update MariaDB and that's it.

If the update is giving you errors, then you have a major problem already...
--nobest forces the installation of modules that could be incompatible and corrupt the server.

CWP doesn't use the RPM versions from AL, it builds allot of custom modules.

Good luck with your ChatGPT support...

phpprogrammer93

Hi,
I solved it by directly opening a support ticket and they installed CWP for me in a professional and complete way. Thanks anyway for the suggestions