Soluții

Cum se instalează PHP 5.6 și 7.0 – 8.4 cu PHP-FPM și modul FastCGI pentru ISPConfig 3.2 cu apt pe Debian 11 până la 12

1 Notă preliminară

În acest ghid, veți adăuga depozitul suplimentar SURY pentru a instala pachetele PHP cu apt. Deoarece și alte pachete, precum OpenSSL, sunt actualizate, pachetele instalate de pe sury.org nu pot fi pur și simplu eliminate după instalare. Așadar, nu eliminați SURY ca sursă de depozit ulterior.

Vă rugăm să rețineți că PHP-FPM poate fi utilizat pe serverele Apache și Nginx, în timp ce FastCGI este disponibil numai pentru serverele Apache.

2 Add SURY repository

Mai întâi instalați aceste pachete necesare:

apt-get install -y apt-transport-https lsb-release ca-certificates

Acum adăugați cheia depozitului rulând această comandă:

wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg >/dev/null 2>&1

și depozitul în sine:

echo "deb https://packages.sury.org/php/ $(lsb_release -c -s) main" > /etc/apt/sources.list.d/php.list

Acum actualizați lista de pachete:

apt-get update

Pentru a actualiza pachetele deja instalate din noul depozit, utilizați această comandă:

apt-get upgrade

3 Install additional PHP versions

Nu trebuie să instalați toate versiunile listate aici, instalați-le pe cele de care aveți nevoie..

3.1 Install PHP 5.6

Pentru a instala PHP, folosiți această comandă:

apt-get install php5.6 php5.6-cli php5.6-cgi php5.6-fpm php5.6-gd php5.6-mysql php5.6-imap php5.6-curl php5.6-intl php5.6-pspell php5.6-recode php5.6-sqlite3 php5.6-tidy php5.6-xmlrpc php5.6-xsl php5.6-zip php5.6-mbstring php5.6-soap php5.6-opcache libicu65 php5.6-common php5.6-json php5.6-readline php5.6-xml

3.2 Install PHP 7.0

Pentru a instala PHP, folosiți această comandă:

apt-get install php7.0 php7.0-cli php7.0-cgi php7.0-fpm php7.0-gd php7.0-mysql php7.0-imap php7.0-curl php7.0-intl php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl php7.0-zip php7.0-mbstring php7.0-soap php7.0-opcache php7.0-common php7.0-json php7.0-readline php7.0-xml

3.3 Install PHP 7.1

Pentru a instala PHP, folosiți această comandă:

apt-get install php7.1 php7.1-cli php7.1-cgi php7.1-fpm php7.1-gd php7.1-mysql php7.1-imap php7.1-curl php7.1-intl php7.1-pspell php7.1-recode php7.1-sqlite3 php7.1-tidy php7.1-xmlrpc php7.1-xsl php7.1-zip php7.1-mbstring php7.1-soap php7.1-opcache php7.1-common php7.1-json php7.1-readline php7.1-xml

3.4 Install PHP 7.2

Pentru a instala PHP, folosiți această comandă:

apt-get install php7.2 php7.2-cli php7.2-cgi php7.2-fpm php7.2-gd php7.2-mysql php7.2-imap php7.2-curl php7.2-intl php7.2-pspell php7.2-recode php7.2-sqlite3 php7.2-tidy php7.2-xmlrpc php7.2-xsl php7.2-zip php7.2-mbstring php7.2-soap php7.2-opcache php7.2-common php7.2-json php7.2-readline php7.2-xml

3.5 Install PHP 7.3

Pentru a instala PHP, folosiți această comandă:

apt-get install php7.3 php7.3-cli php7.3-cgi php7.3-fpm php7.3-gd php7.3-mysql php7.3-imap php7.3-curl php7.3-intl php7.3-pspell php7.3-recode php7.3-sqlite3 php7.3-tidy php7.3-xmlrpc php7.3-xsl php7.3-zip php7.3-mbstring php7.3-soap php7.3-opcache php7.3-common php7.3-json php7.3-readline php7.3-xml

3.6 Install PHP 7.4

Pentru a instala PHP, folosiți această comandă:

apt-get install php7.4 php7.4-cli php7.4-cgi php7.4-fpm php7.4-gd php7.4-mysql php7.4-imap php7.4-curl php7.4-intl php7.4-pspell php7.4-sqlite3 php7.4-tidy php7.4-xmlrpc php7.4-xsl php7.4-zip php7.4-mbstring php7.4-soap php7.4-opcache libonig5 php7.4-common php7.4-json php7.4-readline php7.4-xml

3.7 Install PHP 8.0

Pentru a instala PHP, folosiți această comandă:

apt-get install php8.0 php8.0-cli php8.0-cgi php8.0-fpm php8.0-gd php8.0-mysql php8.0-imap php8.0-curl php8.0-intl php8.0-pspell php8.0-sqlite3 php8.0-tidy php8.0-xsl php8.0-zip php8.0-mbstring php8.0-soap php8.0-opcache libonig5 php8.0-common php8.0-readline php8.0-xml

3.8 Install PHP 8.1

Pentru a instala PHP, folosiți această comandă:

apt-get install php8.1 php8.1-cli php8.1-cgi php8.1-fpm php8.1-gd php8.1-mysql php8.1-imap php8.1-curl php8.1-intl php8.1-pspell php8.1-sqlite3 php8.1-tidy php8.1-xsl php8.1-zip php8.1-mbstring php8.1-soap php8.1-opcache libonig5 php8.1-common php8.1-readline php8.1-xml

3.9 Install PHP 8.2

Pentru a instala PHP, folosiți această comandă:

apt-get install php8.2 php8.2-cli php8.2-cgi php8.2-fpm php8.2-gd php8.2-mysql php8.2-imap php8.2-curl php8.2-intl php8.2-pspell php8.2-sqlite3 php8.2-tidy php8.2-xsl php8.2-zip php8.2-mbstring php8.2-soap php8.2-opcache libonig5 php8.2-common php8.2-readline php8.2-xml

3.10 Install PHP 8.3

Pentru a instala PHP, folosiți această comandă:

apt-get install php8.3 php8.3-cli php8.3-cgi php8.3-fpm php8.3-gd php8.3-mysql php8.3-imap php8.3-curl php8.3-intl php8.3-pspell php8.3-sqlite3 php8.3-tidy php8.3-xsl php8.3-zip php8.3-mbstring php8.3-soap php8.3-opcache libonig5 php8.3-common php8.3-readline php8.3-xml

3.11 Install PHP 8.4

Pentru a instala PHP, folosiți această comandă:

apt-get install php8.4 php8.4-cli php8.4-cgi php8.4-fpm php8.4-gd php8.4-mysql php8.4-imap php8.4-curl php8.4-intl php8.4-pspell php8.4-sqlite3 php8.4-tidy php8.4-xsl php8.4-zip php8.4-mbstring php8.4-soap php8.4-opcache libonig5 php8.4-common php8.4-readline php8.4-xml

4 Resetați PHP-ul implicit al sistemului de operare la versiunea corectă

PHP-ul implicit al sistemului de operare trebuie să rămână la versiunea originală. Pentru a remedia acest lucru, executați aceste comenzi una câte una.:

update-alternatives --config php
update-alternatives --config php-cgi
update-alternatives --config php-fpm.sock

On Debian 12, choose 8.2; on Debian 11, choose 7.4; on Debian 10, choose 7.3.

5 Add PHP versions to ISPConfig

În ISPConfig 3, puteți configura noile versiuni PHP în Sistem > Versiuni PHP suplimentare > Adăugați o nouă versiune PHP.

Add the distribution’s default PHP version

Mai întâi, trebuie să adăugați o nouă versiune pentru versiunea PHP deja instalată. Versiunea implicită depinde de versiunea pe care o utilizați.:

Debian 10: PHP 7.3
Debian 11: PHP 7.4
Debian 12: PHP 8.2

Vedeți mai jos configurația pentru versiunea dvs..

Configurarea pentru versiunile suplimentare de PHP

PHP 5.6

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi5.6
Path to the php.ini directory: /etc/php/5.6/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php5.6-fpm
Path to the php.ini directory: /etc/php/5.6/fpm/
Path to the PHP-FPM pool directory: /etc/php/5.6/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php5.6

PHP 7.0

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi7.0
Path to the php.ini directory: /etc/php/7.0/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php7.0-fpm
Path to the php.ini directory: /etc/php/7.0/fpm/
Path to the PHP-FPM pool directory: /etc/php/7.0/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php7.0

PHP 7.1

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi7.1
Path to the php.ini directory: /etc/php/7.1/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php7.1-fpm
Path to the php.ini directory: /etc/php/7.1/fpm/
Path to the PHP-FPM pool directory: /etc/php/7.1/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php7.1

PHP 7.2

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi7.2
Path to the php.ini directory: /etc/php/7.2/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php7.2-fpm
Path to the php.ini directory: /etc/php/7.2/fpm/
Path to the PHP-FPM pool directory: /etc/php/7.2/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php7.2

PHP 7.3

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi7.3
Path to the php.ini directory: /etc/php/7.3/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php7.3-fpm
Path to the php.ini directory: /etc/php/7.3/fpm/
Path to the PHP-FPM pool directory: /etc/php/7.3/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php7.3

PHP 7.4

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi7.4
Path to the php.ini directory: /etc/php/7.4/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php7.4-fpm
Path to the php.ini directory: /etc/php/7.4/fpm/
Path to the PHP-FPM pool directory: /etc/php/7.4/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php7.4

PHP 8.0

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi8.0
Path to the php.ini directory: /etc/php/8.0/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php8.0-fpm
Path to the php.ini directory: /etc/php/8.0/fpm/
Path to the PHP-FPM pool directory: /etc/php/8.0/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php8.0

PHP 8.1

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi8.1
Path to the php.ini directory: /etc/php/8.1/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php8.1-fpm
Path to the php.ini directory: /etc/php/8.1/fpm/
Path to the PHP-FPM pool directory: /etc/php/8.1/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php8.1

PHP 8.2

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi8.2
Path to the php.ini directory: /etc/php/8.2/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php8.2-fpm
Path to the php.ini directory: /etc/php/8.2/fpm/
Path to the PHP-FPM pool directory: /etc/php/8.2/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php8.2

PHP 8.3

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi8.3
Path to the php.ini directory: /etc/php/8.3/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php8.3-fpm
Path to the php.ini directory: /etc/php/8.3/fpm/
Path to the PHP-FPM pool directory: /etc/php/8.3/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php8.3

PHP 8.4

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi8.4
Path to the php.ini directory: /etc/php/8.4/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php8.4-fpm
Path to the php.ini directory: /etc/php/8.4/fpm/
Path to the PHP-FPM pool directory: /etc/php/8.4/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php8.4.

[mai mult...]

Cum se instalează PHP 5.6 și 7.0 – 8.4 cu PHP-FPM și modul FastCGI pentru ISPConfig 3.2 cu apt pe Ubuntu 22.04 – 24.04

În acest ghid, veți adăuga repozitoriul SURY suplimentar pentru a instala pachetele PHP cu apt. Deoarece și alte pachete, precum OpenSSL, sunt actualizate, pachetele instalate de pe sury.org nu pot fi eliminate pur și simplu după instalare. Așadar, nu eliminați SURY ca sursă de repozitoriu ulterior. Rețineți că PHP-FPM poate fi utilizat pe serverele Apache și Nginx, în timp ce FastCGI este disponibil doar pentru serverele Apache.

Add the repository:

add-apt-repository -y ppa:ondrej/php

Now update the package list:

apt-get update

To upgrade already installed packages from the new repository use this command:

apt-get upgrade

3. Instalați versiuni suplimentare de PHP

Nu trebuie să instalați toate versiunile listate aici, instalați-le pe cele de care aveți nevoie.

3.1 Install PHP 5.6

Pentru a instala PHP 5.6, utilizați această comandă:

apt-get install php5.6 php5.6-cli php5.6-cgi php5.6-fpm php5.6-gd php5.6-mysql php5.6-imap php5.6-curl php5.6-intl php5.6-pspell php5.6-recode php5.6-sqlite3 php5.6-tidy php5.6-xmlrpc php5.6-xsl php5.6-zip php5.6-mbstring php5.6-soap php5.6-opcache libicu65 php5.6-common php5.6-json php5.6-readline php5.6-xml

3.2 Install PHP 7.0

Pentru a instala PHP 7.0, utilizați această comandă:

apt-get install php7.0 php7.0-cli php7.0-cgi php7.0-fpm php7.0-gd php7.0-mysql php7.0-imap php7.0-curl php7.0-intl php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl php7.0-zip php7.0-mbstring php7.0-soap php7.0-opcache php7.0-common php7.0-json php7.0-readline php7.0-xml

3.3 Install PHP 7.1

Pentru a instala PHP 7.1, utilizați această comandă:

apt-get install php7.1 php7.1-cli php7.1-cgi php7.1-fpm php7.1-gd php7.1-mysql php7.1-imap php7.1-curl php7.1-intl php7.1-pspell php7.1-recode php7.1-sqlite3 php7.1-tidy php7.1-xmlrpc php7.1-xsl php7.1-zip php7.1-mbstring php7.1-soap php7.1-opcache php7.1-common php7.1-json php7.1-readline php7.1-xml

3.4 Install PHP 7.2

Pentru a instala PHP 7.2, utilizați această comandă:

apt-get install php7.2 php7.2-cli php7.2-cgi php7.2-fpm php7.2-gd php7.2-mysql php7.2-imap php7.2-curl php7.2-intl php7.2-pspell php7.2-recode php7.2-sqlite3 php7.2-tidy php7.2-xmlrpc php7.2-xsl php7.2-zip php7.2-mbstring php7.2-soap php7.2-opcache php7.2-common php7.2-json php7.2-readline php7.2-xml

3.5 Install PHP 7.3

Pentru a instala PHP 7.3, utilizați această comandă:

apt-get install php7.3 php7.3-cli php7.3-cgi php7.3-fpm php7.3-gd php7.3-mysql php7.3-imap php7.3-curl php7.3-intl php7.3-pspell php7.3-recode php7.3-sqlite3 php7.3-tidy php7.3-xmlrpc php7.3-xsl php7.3-zip php7.3-mbstring php7.3-soap php7.3-opcache php7.3-common php7.3-json php7.3-readline php7.3-xml

3.6 Install PHP 7.4

Pentru a instala PHP 87.4, utilizați această comandă:

apt-get install php7.4 php7.4-cli php7.4-cgi php7.4-fpm php7.4-gd php7.4-mysql php7.4-imap php7.4-curl php7.4-intl php7.4-pspell php7.4-sqlite3 php7.4-tidy php7.4-xmlrpc php7.4-xsl php7.4-zip php7.4-mbstring php7.4-soap php7.4-opcache libonig5 php7.4-common php7.4-json php7.4-readline php7.4-xml

3.7 Install PHP 8.0

Pentru a instala PHP 8.0, utilizați această comandă:

apt-get install php8.0 php8.0-cli php8.0-cgi php8.0-fpm php8.0-gd php8.0-mysql php8.0-imap php8.0-curl php8.0-intl php8.0-pspell php8.0-sqlite3 php8.0-tidy php8.0-xsl php8.0-zip php8.0-mbstring php8.0-soap php8.0-opcache libonig5 php8.0-common php8.0-readline php8.0-xml

3.8 Install PHP 8.1

Pentru a instala PHP 8.1, utilizați această comandă:

apt-get install php8.1 php8.1-cli php8.1-cgi php8.1-fpm php8.1-gd php8.1-mysql php8.1-imap php8.1-curl php8.1-intl php8.1-pspell php8.1-sqlite3 php8.1-tidy php8.1-xsl php8.1-zip php8.1-mbstring php8.1-soap php8.1-opcache libonig5 php8.1-common php8.1-readline php8.1-xml

3.9 Install PHP 8.2

Pentru a instala PHP 8.2, utilizați această comandă:

apt-get install php8.2 php8.2-cli php8.2-cgi php8.2-fpm php8.2-gd php8.2-mysql php8.2-imap php8.2-curl php8.2-intl php8.2-pspell php8.2-sqlite3 php8.2-tidy php8.2-xsl php8.2-zip php8.2-mbstring php8.2-soap php8.2-opcache libonig5 php8.2-common php8.2-readline php8.2-xml

3.10 Install PHP 8.3

Pentru a instala PHP 8.3, utilizați această comandă:

apt-get install php8.3 php8.3-cli php8.3-cgi php8.3-fpm php8.3-gd php8.3-mysql php8.3-imap php8.3-curl php8.3-intl php8.3-pspell php8.3-sqlite3 php8.3-tidy php8.3-xsl php8.3-zip php8.3-mbstring php8.3-soap php8.3-opcache php8.3-common php8.3-readline php8.3-xml

3.11 Install PHP 8.4

Pentru a instala PHP 8.4, utilizați această comandă:

apt-get install php8.4 php8.4-cli php8.4-cgi php8.4-fpm php8.4-gd php8.4-mysql php8.4-imap php8.4-curl php8.4-intl php8.4-pspell php8.4-sqlite3 php8.4-tidy php8.4-xsl php8.4-zip php8.4-mbstring php8.4-soap php8.4-opcache php8.4-common php8.4-readline php8.4-xml

4.    Resetați PHP-ul implicit al sistemului de operare la versiunea corectă

PHP-ul implicit al sistemului de operare trebuie să rămână la versiunea originală. Pentru a remedia acest lucru, executați aceste comenzi una câte una:

update-alternatives --config php
update-alternatives --config php-cgi
update-alternatives --config php-fpm.sock

Pe Ubuntu 20.04, alegeți 7.4; pe Ubuntu 22.04, alegeți 8.1 și pe Ubuntu 24.04, alegeți 8.3.

 5. Adăugați versiuni PHP în ISPConfig

În ISPConfig 3, puteți configura noile versiuni PHP în Sistem > Versiuni PHP suplimentare > Adăugați o nouă versiune PHP.

Adăugați versiunea PHP implicită a distribuției

Mai întâi, trebuie să adăugați o nouă versiune pentru versiunea PHP deja instalată. Versiunea implicită depinde de versiunea pe care o utilizați:

Ubuntu 20.04: PHP 7.4
Ubuntu 22.04: PHP 8.1
Ubuntu 24.04: PHP 8.3

Consultați mai jos configurația pentru versiunea dvs.

Configurarea pentru versiunile suplimentare de PHP

PHP 5.6

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi5.6
Path to the php.ini directory: /etc/php/5.6/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php5.6-fpm
Path to the php.ini directory: /etc/php/5.6/fpm/
Path to the PHP-FPM pool directory: /etc/php/5.6/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php5.6

PHP 7.0

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi7.0
Path to the php.ini directory: /etc/php/7.0/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php7.0-fpm
Path to the php.ini directory: /etc/php/7.0/fpm/
Path to the PHP-FPM pool directory: /etc/php/7.0/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php7.0

PHP 7.1

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi7.1
Path to the php.ini directory: /etc/php/7.1/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php7.1-fpm
Path to the php.ini directory: /etc/php/7.1/fpm/
Path to the PHP-FPM pool directory: /etc/php/7.1/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php7.1

PHP 7.2

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi7.2
Path to the php.ini directory: /etc/php/7.2/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php7.2-fpm
Path to the php.ini directory: /etc/php/7.2/fpm/
Path to the PHP-FPM pool directory: /etc/php/7.2/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php7.2

PHP 7.3

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi7.3
Path to the php.ini directory: /etc/php/7.3/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php7.3-fpm
Path to the php.ini directory: /etc/php/7.3/fpm/
Path to the PHP-FPM pool directory: /etc/php/7.3/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php7.3

PHP 7.4

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi7.4
Path to the php.ini directory: /etc/php/7.4/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php7.4-fpm
Path to the php.ini directory: /etc/php/7.4/fpm/
Path to the PHP-FPM pool directory: /etc/php/7.4/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php7.4

PHP 8.0

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi8.0
Path to the php.ini directory: /etc/php/8.0/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php8.0-fpm
Path to the php.ini directory: /etc/php/8.0/fpm/
Path to the PHP-FPM pool directory: /etc/php/8.0/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php8.0

PHP 8.1

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi8.1
Path to the php.ini directory: /etc/php/8.1/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php8.1-fpm
Path to the php.ini directory: /etc/php/8.1/fpm/
Path to the PHP-FPM pool directory: /etc/php/8.1/fpm/pool.d/

Versiunea CLI, de exemplu, pentru cron jobs, are numele php8.1

PHP 8.2

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi8.2
Path to the php.ini directory: /etc/php/8.2/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php8.2-fpm
Path to the php.ini directory: /etc/php/8.2/fpm/
Path to the PHP-FPM pool directory: /etc/php/8.2/fpm/pool.d

Versiunea CLI, de exemplu, pentru cron jobs, are numele php8.2

PHP 8.3

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi8.3
Path to the php.ini directory: /etc/php/8.3/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php8.3-fpm
Path to the php.ini directory: /etc/php/8.3/fpm/
Path to the PHP-FPM pool directory: /etc/php/8.3/fpm/pool.d

Versiunea CLI, de exemplu, pentru cron jobs, are numele php8.3

PHP 8.4

Fast-CGI settings:

Path to the PHP FastCGI binary: /usr/bin/php-cgi8.4
Path to the php.ini directory: /etc/php/8.4/cgi/

PHP-FPM settings:

Path to the PHP-FPM init script: php8.4-fpm
Path to the php.ini directory: /etc/php/8.4/fpm/
Path to the PHP-FPM pool directory: /etc/php/8.4/fpm/pool.d

Versiunea CLI, de exemplu, pentru cron jobs, are numele php8.4.

[mai mult...]

How to make Windows 11 to not show any ads

In the Start menu, you’ll find a Recommended section featuring ads for different apps. The last time I checked, it was showing an ad for a password manager. Microsoft is probably aware that not every Windows user will appreciate this new addition to the Start menu, which is why there’s also an option to remove the Recommended section entirely.

To do this, press Win+i to open the Settings app. Choose “Personalization” from the left sidebar, then select “Start” on the right. Turn off the toggle next to “Show recommended files in Start, recent files in File Explorer, and items in Jump Lists.” After that, restart your system, and you’ll see that the Recommended section is gone from the Start menu.

Remove ads from File Explorer

There’s plenty of vacant space in Windows File Explorer, and perhaps that’s why Microsoft thought it would be the best place to display ads in Windows. The first time Microsoft tested this idea was in 2017, when a large OneDrive banner appeared at the top of File Explorer in Windows 10. However, for some reason, it was later removed from Windows.

Since 2022, when an X user named Florian Beaubois spotted ads in the Windows 11 File Explorer, Microsoft has been constantly pushing ads in its file manager.

If you want a completely ad-free File Explorer experience, you need to change one setting in the Folder Options. To do this, open File Explorer, click the ellipsis icon at the top, and choose “Options” from the menu that appears. Switch to the “View” tab, uncheck the “Show Sync Provider Notifications” box, and then click “Apply” and “OK” to save the changes.

Disable tips and suggestions from Windows

In addition to ads, Windows also shows a lot of suggestions and tips to improve your overall experience. While these tips can be helpful for someone who’s just getting started with Windows, if you’ve been using Windows for a while, you might find them as annoying as the ads. That’s why it’s best to turn them off completely for a clutter-free Windows experience.

To do this, open the Settings app, select “System” from the left sidebar, and click “Notifications” on the right. Under the Notifications From Apps and Other Senders section, click “Additional Settings.” Turn off the boxes next to “Get tips and suggestions when using Windows” and “Suggest ways to get the most out of Windows and finish setting up this device.”

After disabling these boxes, you will no longer see occasional pop-ups from Windows asking you to switch to Microsoft Edge, join Microsoft Rewards, or use any other Microsoft services.

Remove ads from the Lock Screen

I’ve long been an admirer of the Windows Spotlight feature. It dynamically changes lock screen images, ensuring that I’m not looking at the same picture every time. However, there’s one major drawback to using the Windows Spotlight feature.

You’ll see ads on your Windows lock screen if you have Windows Spotlight set as the display option. These ads often promote different games, and sometimes Microsoft also shows tips on various topics. The only way to remove ads from the lock screen is to configure Windows to show either a picture or a slideshow instead of Windows Spotlight.

To do this, open the Settings app, choose “Personalization” from the left sidebar, and click the “Lock Screen” option on the right. Click the drop-down icon next to “Personalize Your Lock Screen,” and then choose either “Picture” or “Slideshow.” If you select Picture, make sure to turn off the “Get fun facts, tips, tricks, and more on your lock screen” box.

Remove ads from the Settings app

The very place where you’ve been disabling ads till now ironically shows plenty of them itself. Yes, you guessed it right; I’m talking about the Settings app. You’ll often find ads for different Microsoft services appearing at the top of various pages in the Windows Settings app.

To remove ads from the Windows Settings app, open the Settings app, select “Privacy & Security” from the left sidebar, and click “Recommendations & Offers” on the right. Turn off the toggles next to these options: Personalized Offers, Improve Start and Search Results, Recommendations and Offers in Settings, and Advertising ID. Disabling the Advertising ID also ensures that third-party apps don’t show personalized ads based on your Windows activity.

Remove personalized ads from the Microsoft Store

When you search for an app on Microsoft Edge, you’ll often see recommendations and similar apps in the Microsoft Store. This happens because of the Microsoft Store’s personalized experiences setting, which allows the store to monitor your online activity to show relevant ads and app suggestions. Fortunately, you can disable this setting to stop the Microsoft Store from displaying personalized ads and recommendations.

To do this, open the Microsoft Store, tap the profile icon at the top, and choose “Store Settings” from the menu that appears. Turn off the toggle next to “Personalized Experiences.” Select “Confirm and Restart Store” from the pop-up window that appears.

I always prefer to hide the Windows search from the taskbar. But if you’re someone who uses it regularly, you must have noticed that it shows a lot of ads.

Open Windows Search, and on the right panel, you’ll see ads for different games, a trending searches section, and a dedicated block highlighting what’s special about the current date. If you find these elements taking up too much space in Windows Search, you can completely remove them.

To do this, open Windows Search, click the ellipsis icon at the top, and choose “Search Settings” from the menu that appears. Turn off the toggle next to “Show Search Highlights.” Restart your computer, and you will no longer see ads in Windows Search.

Clear the Widgets panel

Although the widget panel doesn’t show any ads, it contains a long list of news stories. There are also plenty of other blocks with data related to the stock market and other content that may not be relevant to you. If you find all this distracting, you can either clear the widget feed or disable the widget panel altogether. However, I suggest doing the former, as the widget panel can be quite helpful in various situations.

To get rid of an irrelevant widget feed, click the cog icon at the top-right corner of the widget window and select “Show or Hide Feeds.” Then, disable the “Feeds” toggle.

[mai mult...]

How to use the PivotTable Fields pane in Microsoft Excel

Big datasets can be difficult to read, interpret, and analyze. Indeed, it can be difficult to track specific information and understand relationships between data points if you have to scroll through thousands of rows and columns, even if you use the Freeze Panes or Focus Cell tools.

However, converting a dataset into a PivotTable allows for simplified data exploration and analysis, instant insights, and quick comparisons. What’s more, PivotTables let you perform calculations without the need for complex formulas, and you can use slicers and timelines to only show the data you need at any given point.

To follow along as you read this guide, download a free copy of the workbook used in the examples. After you click the link, you’ll find the download button in the top-right corner of your screen.

You can create a PivotTable in Excel from an external data source, a table in your worksheet, or a pre-built data model. To access these options, in the Insert tab on the ribbon, click the “PivotTable” down arrow.

In my case, I want to analyze an Excel table (named T_Sales) I created in an Excel worksheet, and I want to do so in a new worksheet to keep my workbook tidy and organized. So, after selecting a cell in the table, I’ll click “From Table Or Range” in the PivotTable drop-down menu. Then, after making sure the correct range is selected, I’ll check “New Worksheet,” and click “OK”.

I strongly recommend that you format your data as an Excel table before converting it into a PivotTable. Taking this step ensures that the source data is formatted in a way that the PivotTable tool can understand, and the PivotTable can pick up new rows and columns subsequently added to the table.

Opening the PivotTable Fields pane

The PivotTable Fields pane is where you decide what goes in the PivotTable. This pane usually opens by default on the right of your screen as soon as you initiate the PivotTable-building process.

The PivotTable Fields pane closes as soon as you click away from the PivotTable area.

If the PivotTable Fields pane doesn’t appear by default when you select a cell in the PivotTable area, or if it disappears at any point when you’re working on your PivotTable, click “Field List” in the PivotTable Analyze tab on the ribbon. You can also click the same button if you don’t want the PivotTable Fields pane to be displayed by default.

To move the PivotTable fields pane, hover your cursor over the top of the pane until it turns into a four-arrow move pointer, and click and drag the pane to a more convenient position on your screen as a floating window.

To turn it back into the default pane, click and drag it to the right of your screen until it clicks back into position.

Understanding the PivotTable Fields areas

When I first started using PivotTables in Microsoft Excel many years ago, I found the PivotTable Fields pane confusing, not only because the default layout is overly condensed, but also because what goes in the different fields isn’t immediately obvious.

By default, the fields (labeled A in the screenshot below) are stacked on top of the areas (labeled B in the screenshot below). If your source dataset is substantial, this layout makes everything appear overcrowded, especially if you’re working on a small screen.

  • To fix this, click the “Tools” cog, and select “Fields Section And Areas Section Side-By-Side”
  • This vertical layout makes the pane appear less cluttered and, thus, easier to use.

Before you go ahead and start building your PivotTable, take a few moments to understand what each area means:

  • Rows: Fields inserted into the Rows area appear as row labels down the left-hand side of the PivotTable. In the screenshot below, the Product field being in the Rows area means the products in the source data are listed in column A.
  • Columns: Fields added to the Columns area appear as column labels across the top of the PivotTable. In the example below, you can see countries in the column headers.
  • Values: Fields placed into the Values area are usually variables with numeric values that form the main part of the PivotTable, with each value acting as an intersection between a column and a row. In the PivotTable below, each cell where a product and country intersect contains a profit value.
  • Filters: Insert a field into the Filter area if you want to filter the entire PivotTable based on a given variable. In this case, I can filter the PivotTable by department.

Adding and removing fields to and from a PivotTable

There are two ways to add fields to an area in the PivotTable Field pane.

When you check a checkbox next to a field, Excel automatically moves it to one of the areas according to the type of data the field contains. Usually, non-numeric fields are added to the Rows area, date and time fields are added to the Columns area, and numeric fields are added to the Values area. Useful as this automation may be, fields sometimes go in the wrong areas. What’s more, when you use this method, there’s no way for Excel to know which field to add to the Filters area.

Alternatively, dragging and dropping a field into an area gives you more control over what goes where. If you want to change which area a field is added to, simply drag and drop it to the appropriate place. For example, to remove the Department filter, click and drag “Department” from the Filters area to the left of the PivotTable Fields pane.

As you add a field to an area in the PivotTable Fields pane, you’ll see the PivotTable being constructed in real time. If you find this confuses you more than it helps you, check “Defer Layout Update” at the bottom of the pane, and click “Update” once you’ve moved all the fields to the desired areas.

To remove a field from a PivotTable area, either uncheck the corresponding checkbox in the fields section or drag and drop a field from the areas section to anywhere outside the PivotTable Fields pane.

Now that you have used the PivotTable Fields pane to build your PivotTable, use the PivotTable Analyze tab on the ribbon to manipulate and customize the data. For example, you can rename the PivotTable, group different fields, or insert slicers and timelines for dynamic filtering. On the other hand, you can change the PivotTable’s visual properties via the Design tab, such as adding subtotals, formatting the data into banded rows, or changing the colors of the headers.

[mai mult...]

Clasificarea cookie-urilor de publicitate

Cookie-urile de publicitate sunt o categorie specială de cookie-uri utilizate pentru afișarea și personalizarea reclamelor în funcție de interesele utilizatorului, precum și pentru a măsura eficiența campaniilor publicitare.

Clasificarea cookie-urilor de publicitate

  • Cookie-uri folosite pentru a afișa anunțuri personalizate pe baza comportamentului și preferințelor utilizatorului, analizate prin activitatea sa pe diferite site-uri web.​

  • Aceste cookie-uri permit limitarea numărului de afișări ale unui anunț pentru un utilizator, evitând suprasaturarea cu reclame.​

  • Cookie-urile de publicitate pot fi first-party (plasate de site-ul vizitat) sau third-party (plasate de terți, cum ar fi rețele de publicitate sau platforme de analiză), terții putând colecta date despre utilizator și comportamentul său pe mai multe site-uri.​

  • Exemple include cookie-uri Google precum „NID” (pentru anunțuri Google pe serviciile sale), „IDE” și „id” pentru anunțuri pe site-uri non-Google; aceste cookie-uri au durate de viață de la luni la peste un an, utilizate pentru personalizarea și măsurarea anunțurilor.​

  • Dacă utilizatorul dezactivează anunțurile personalizate, anumite cookie-uri rețin această preferință pentru a nu mai afișa reclame targetate.​

Particularități și scop

  • Scopul principal este personalizarea anunțurilor publicitare și analiza performanței acestora, astfel încât să fie mai relevante pentru utilizatori și eficient distribuite de către advertiseri.​

  • Aceste cookie-uri ajută și la raportarea campaniilor de marketing privind efectele și impactul asupra publicului țintă.​

  • De obicei, cookie-urile de publicitate sunt considerate intruzive din punct de vedere al confidențialității și, conform legislației europene, necesită acordul utilizatorului pentru plasare.​

Astfel, cookie-urile de publicitate sunt distincte de cele funcționale sau de trafic, fiind axate pe profilarea utilizatorului pentru scopuri comerciale și marketing, inclusiv targetare și retargetare publicitară.​

[mai mult...]

Clasificarea cookie-urilor de trafic

Cookie-urile de trafic (sau de monitorizare a traficului) sunt o categorie de cookie-uri folosite pentru a colecta informații despre modul în care utilizatorii interacționează cu un site web, cu scopul de a îmbunătăți experiența utilizatorului și performanța site-ului.

Clasificarea cookie-urilor de trafic

  • Sunt cookie-uri originale de sesiune sau persistente care urmăresc și măsoară activitatea utilizatorului pe site, cum ar fi numărul de vizitatori, paginile accesate, durata vizitei, sau sursa traficului.​

  • Utilizate deseori pentru analiza performanței serverului și monitorizarea latenței, pentru măsurarea traficului și identificarea eventualelor probleme tehnice în furnizarea serviciului.​

  • Pot include cookie-uri tehnice care măsoară timpul petrecut pe site sau verifică dacă un anumit domeniu este accesat corect, dar nu identifică utilizatori în mod individual ci colectează date agregate.​

  • Exemple sunt cookie-urile de infrastructură IT care măsoară latența serverului, cookie-uri folosite pentru menținerea securității sesiunii și cele care ajută la analiza traficului web pentru optimizarea performanței.​

Diferențe față de alte tipuri

  • Cookie-urile de trafic nu sunt folosite pentru personalizare sau publicitate, ci strict pentru analiză tehnică și statistică a traficului web.

  • Spre deosebire de cookie-urile funcționale care ajută la utilizarea directă a site-ului de către utilizator, cele de trafic se concentrează pe măsurarea modului în care site-ul este folosit.​

Cookie-urile de trafic sunt esențiale pentru îmbunătățirea continuă a experienței pe site și pentru identificarea problemelor tehnice, fără a afecta confidențialitatea utilizatorului prin colectarea datelor personale.​

Astfel, cookie-urile de trafic sunt o subcategorie a cookie-urilor tehnice, axate pe monitorizarea și analiza fluxului de vizitatori și performanța site-ului.

[mai mult...]