Skip to content

Fix PHP installation in no-LTS version #461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Kasui92
Copy link
Contributor

@Kasui92 Kasui92 commented May 19, 2025

I did a little research around and indeed the ppa:ondrej/php repository does not support non-LTS versions of Ubuntu.

However it's possible to force this to use the repository associated with noble in order to make PHP available for other versions as well.

Schermata da 2025-05-19 23-17-38

Fixes #342
Fixes #413

@Kasui92 Kasui92 marked this pull request as draft May 19, 2025 22:39
@Kasui92
Copy link
Contributor Author

Kasui92 commented May 19, 2025

Unfortunately it seems that some libraries for php8.4-zip and php8.4-intl are not available for Ubuntu25.04. I'll investigate to find a solution.

@florentdestremau
Copy link
Contributor

Another solution might be to install php8.4 from the original sources rather than the custom ppa, but this forces you into a php version that may be outdated (like in 24.04 it's php8.3).

@Kasui92
Copy link
Contributor Author

Kasui92 commented May 20, 2025

I don't know what changed, but this morning I didn't encounter the extension installation error anymore. I also tested it on two fresh installs of Ubuntu 25.04 and everything worked fine. 🙄

Screenshot From 2025-05-20 10-25-30

@Kasui92
Copy link
Contributor Author

Kasui92 commented May 23, 2025

I should have discovered the reason for the errors I encountered.
Most of it is related to the removal phase of PHP and the PPA used to obtain the necessary libraries. This is not removed correctly using the usual command, but the WIKI itself recommends using ppa-purge which correctly cleans references and dependencies.

Recently, there was an issue about restoring the extra packages to the original state because the repository comes with extra libraries that stop getting the updates when the deb.sury.org repository is removed from /etc/apt/sources.list.d.

The installation therefore occurs correctly even without further checks, just replace the distro reference with that of Ubuntu 24.04, and in the removal it uses ppa-purge.

@Kasui92 Kasui92 marked this pull request as ready for review May 23, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to complete installation due to unavailable PHP PHP Installation fails on Ubuntu 24.10
2 participants