i-doit / knowledge-base

i-doit docs
http://kb.i-doit.com
Creative Commons Attribution Share Alike 4.0 International
9 stars 6 forks source link

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

Open MichaelOv opened 4 months ago

MichaelOv commented 4 months ago
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

matsica commented 3 weeks ago

System a dmininstration -> Troubleshooting -> New Menu Punkt