1

I have this problem, and now I don't know how to safely replace Ondrej PHP with Ubuntu 22.04 original PHP repository?

I have PHP-FPM.

Pablo Bianchi
  • 14,308
  • 4
  • 74
  • 117
newcat1000
  • 1,274
  • 1
  • 13
  • 24
  • Do you need to keep downtime to a minimum? Or is it okay to bring the server offline for 15~20 minutes while libraries and repositories are switched around? – matigo Apr 23 '22 at 10:31
  • The server can be offline - no problem. Thanks. – newcat1000 Apr 23 '22 at 10:32

1 Answers1

3

If the server can be offline for a little bit, the most effective way to accomplish this goal will be to:

  1. Stop Apache

  2. Uninstall PHP

  3. Remove the Ondrej PPA

    Note: It may be prudent to visually confirm your .list files in /etc/apt and /etc/apt/sources.list.d to ensure that nothing is pointing to the Ondrej PPA location.

  4. Re-Install PHP and the various additional packages that you require

  5. Restart Apache

matigo
  • 20,403
  • 7
  • 43
  • 70