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

Instructions what to do after a dist-upgrade or php upgrade #406

Open
2 tasks
MichaelOv opened this issue Feb 26, 2024 · 0 comments
Open
2 tasks

Instructions what to do after a dist-upgrade or php upgrade #406

MichaelOv opened this issue Feb 26, 2024 · 0 comments

Comments

@MichaelOv
Copy link
Member

  • dist-upgrade from ubuntu 20.04 to 22.04
  • General update from php 7.4 to php 8.x
dist-upgrade from ubuntu 20.04 to 22.04

Missing APT packages to install ``` sudo apt install libapache2-mod-fcgid php8.1-bcmath php8.1-cli php8.1-common php8.1-curl php8.1-fpm php8.1-gd php8.1-ldap php8.1-mbstring php8.1-mysql php8.1-opcache php8.1-pgsql php8.1-soap php8.1-xml php8.1-zip ```

PHP 8.1 FPM enabled in Apache2

a2enmod proxy_fcgi setenvif
a2enconf php8.1-fpm
sudo service apache2 restart

Modify Apache i-doit.conf

sudo nano /etc/apache2/sites-available/i-doit.conf

Change the PHP version from 7.4 to 8.1 in the following line

SetHandler "proxy:unix:/var/run/php/php8.1-fpm.sock|fcgi://localhost/"

Restart apache2

sudo service apache2 restart

Copy PHP i-doit.ini to the new PHP folder

sudo cp -i /etc/php/7.4/mods-available/i-doit.ini /etc/php/8.1/mods-available/i-doit.ini

Check the new i-doit.ini to see if the max_input_vars and post_max_size values are correct, otherwise change them

sudo cat /etc/php/8.1/mods-available/i-doit.ini | grep max_input_vars
sudo cat /etc/php/8.1/mods-available/i-doit.ini | grep post_max_size

Modify the variables in all three php.ini files

sudo find / -name -f php.ini
  • max_input_vars = 10000
  • post_max_size = 256MB

Activate the new PHP version 8.1

sudo update-alternatives --set php /usr/bin/php8.1

Restart PHP 8.1

sudo service php8.1-fpm restart

Restart Apache

sudo service apache2 restart

General update from php 7.4 to php 8.x

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

No branches or pull requests

1 participant