Skip to content
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

PHP Requirment Change #4029

Closed
15 tasks done
ssddanbrown opened this issue Feb 8, 2023 · 0 comments
Closed
15 tasks done

PHP Requirment Change #4029

ssddanbrown opened this issue Feb 8, 2023 · 0 comments

Comments

@ssddanbrown
Copy link
Member

ssddanbrown commented Feb 8, 2023

Changes from PHP 7.4 to PHP 8.0.2 for next feature release.

Todo

  • Assess scripts that need to be updated.
  • Update scripts as required. - Scripts updated
    • 20.04 install script
    • 18.04 install script
    • 16.04 update script to indicate no longer supported.
  • Prepare guidance for supported systems that may need updating.
  • Check popular distribution options:
    • Linuxserver docker image - php81
    • Solidnerd docker image - php:8.2
    • Hassio setup - php81
    • Turnkey Linux - Raised here, in progress to be php8.1.

Docs Update

  • Blogpost release notice
  • Update version notice
  • Update install script details with new php versions used.
  • Update installation requirements.

Update Commands

For installs that have used our Ubuntu 18.04 and Ubuntu 20.04 install scripts, PHP can be upgraded to 8.2 using the below commands. Installations via our Ubuntu 22.04 install script are already using PHP 8.1 and therefore they don't need to be upgraded at this time.

Warning: if you run other applications on this machine, PHP applications in particular, then those may be affected by these changes also.

sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install -y php8.2 php8.2-curl php8.2-mbstring php8.2-ldap php8.2-xml php8.2-zip php8.2-gd php8.2-mysql libapache2-mod-php8.2
sudo a2dismod php7.2 php7.4 php7.3 php8.0 php8.1
sudo a2enmod php8.2
sudo systemctl restart apache2

You may also need to update composer to be compatible with php8.2.
Link to composer update docs, maybe extract to it's own section with update docs?

Tested the above on Ubuntu 20.04 and Ubuntu 18.04 and Previously-upgrade-to-php8-18.04 environments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant