Skip to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

"Falsche PHP Version" trotz PHP-Konfiguration mit richtiger PHP-FPM Version

Featured Replies

Moin,

aus bekanntem Anlass wollte ich testweise eine erste Seite auf PHP8.4 heben:

  • PHP-FPM wurde installiert und über das Installationsscript konfigurieren lassen.

  • PHP-FPM Version angelegt: Kommando und Pfad angepasst

  • PHP-Konfiguration erstellt und FPM Config hinterlegt

In /etc/php/8.4/fpm/pool.d finde ich auch die passende Konfiguration. Jedoch läuft die Seite laut phpinfo() weiterhin auf 8.0.30.

Zeitgleich erhalte ich sporadisch den Fehler "The configuration file lib/userdata.inc.php cannot be read from the webserver.". Habe die anderen Beiträge hier im Forum durchforstet und konnte sicherstellen, dass das Verzeichnis "froxlorlocal" gehört. Passend zum konfigurierten User in der froxlor vHost Einstellung. FPM ist dort auch aktiviert.

Was übersehe ich?

hast du vllt noch mod_php aktiv? versuch mal a2dismod php8.0 und mach einen apache2 restart

  • Author

Nach deaktivierung startet apache2 nicht mehr:

--- DEBUG: #0 /var/www/html/froxlor/lib/Froxlor/Database/Database.php(526): PDO->__construct() #1 /var/www/html/froxlor/lib/Froxlor/Database/Database.php(600): Froxlor\Database\Database::getDB() #2 /var/www/html/froxlor/lib/Froxlor/Settings.php(116): Froxl

Auch wieder aktivieren mit a2enmod hilft gerade nichts.

die meldung kommt aber doch sicht nicht von einem "apache restart", vorallem fehlt da die meldung des fehlers ansich, du hast nur eine zeile debug-tracelog geschickt

  • Author

Vom reinen Restart sicher nicht, aber durch das deaktivieren des Moduls?

Apache error log:

[Thu Oct 22 11:57:51.633607 2026] [suexec:notice] [pid 536075:tid 536075] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)

[Thu Oct 22 11:57:51.641552 2026] [so:warn] [pid 536075:tid 536075] AH01574: module php_module is already loaded, skipping

PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/lib/php/20200930/mysqli (/usr/lib/php/20200930/mysqli: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/mysqli.so (/usr/lib/php/20200930/mysqli.so: undefined symbol: mysqlnd_global_stats)) in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/lib/php/20200930/pdo_mysql (/usr/lib/php/20200930/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/pdo_mysql.so (/usr/lib/php/20200930/pdo_mysql.so: undefined symbol: mysqlnd_allocator)) in Unknown on line 0

PHP Warning: Module "curl" is already loaded in Unknown on line 0

PHP Warning: Module "fileinfo" is already loaded in Unknown on line 0

PHP Warning: Module "ftp" is already loaded in Unknown on line 0

[Thu Oct 22 11:57:52.465112 2026] [mpm_prefork:notice] [pid 536076:tid 536076] AH00163: Apache/2.4.68 (Debian) mod_fcgid/2.3.9 OpenSSL/3.0.22 configured -- resuming normal operations

[Thu Oct 22 11:57:52.465144 2026] [core:notice] [pid 536076:tid 536076] AH00094: Command line: '/usr/sbin/apache2'

[Fri Oct 23 11:30:39.630308 2026] [mpm_prefork:notice] [pid 536076:tid 536076] AH00169: caught SIGTERM, shutting down

Würde sagen da ist was mit deiner PHP installation nicht sauber, sicher das php-fpm korrekt installiert wurde mit entsprechenden notwendigen extensions?
Vllt am besten sury-repository einrichten (https://packages.sury.org/php/README.txt) und dann php pakete der gewünschten version installieren:

apt install php8.4 php8.4-apcu php8.4-bcmath php8.4-bz2 php8.4-cli php8.4-curl php8.4-fpm php8.4-gd php8.4-gmp php8.4-imagick php8.4-imap php8.4-intl php8.4-json php8.4-mbstring php8.4-mcrypt php8.4-mysql php8.4-opcache php8.4-redis php8.4-xml php8.4-xsl php8.4-yaml php8.4-zip

  • Author

Vielen Dank für die Rückmeldung! Hatte den Haken für die Debian Version übersehen. In der DB gesetzt und Cronjobs laufen lassen löste das Problem.

Die php-fpm-Sockets haben noch ein Rechte-Problem. Socket gehört dem User unter dem auch der FPM-Prozess läuft. Trotzdem erhalte ich:

[proxy:error] [pid 500464:tid 500464] (13)Permission denied: AH02454: FCGI: attempt to connect to Unix domain socket /var/lib/apache2/fastcgi/1-user1-panel.exmample3.de-php-fpm

root@h2954995:~# ps faux | grep fpm
root        687  0.0  0.1 261556 29948 ?        Ss   Okt27   0:07 php-fpm: master process (/etc/php/8.3/fpm/php-fpm.conf)
www-data    722  0.0  0.0 261556  8448 ?        S    Okt27   0:00  \_ php-fpm: pool www
www-data    724  0.0  0.0 261556  8448 ?        S    Okt27   0:00  \_ php-fpm: pool www
root    1117419  0.0  0.0   6344  2396 pts/0    S+   12:00   0:00      \_ grep fpm
root     471019  0.0  0.1 256224 27948 ?        Ss   Okt27   0:04 php-fpm: master process (/etc/php/8.0/fpm/php-fpm.conf)
user1+   471020  0.0  0.0 256192 11264 ?        S    Okt27   0:00  \_ php-fpm: pool example.com
user1+   471021  0.0  0.0 256192 11284 ?        S    Okt27   0:00  \_ php-fpm: pool example.com
user1+   471022  0.0  0.1 259304 20936 ?        S    Okt27   0:00  \_ php-fpm: pool subdomain.example2.de
user1+   471023  0.0  0.1 259368 20008 ?        S    Okt27   0:00  \_ php-fpm: pool subdomain.example2.de
user1+   471024  0.0  0.0 256192 11396 ?        S    Okt27   0:00  \_ php-fpm: pool service.example3.com
user1+   471025  0.0  0.0 256192 11396 ?        S    Okt27   0:00  \_ php-fpm: pool service.example3.com
user1+   471026  0.0  0.0 256192 11396 ?        S    Okt27   0:00  \_ php-fpm: pool cloud.example3.com
user1+   471027  0.0  0.0 256192 11400 ?        S    Okt27   0:00  \_ php-fpm: pool cloud.example3.com
froxlor+ 471028  0.0  0.2 331968 35528 ?        S    Okt27   0:01  \_ php-fpm: pool panel.example3.com
froxlor+ 471029  0.0  0.1 256996 31020 ?        S    Okt27   0:00  \_ php-fpm: pool panel.example3.com
user1+   471030  0.0  0.0 256192 11400 ?        S    Okt27   0:00  \_ php-fpm: pool sub.panel.example3.com
user1+   471031  0.0  0.0 256192 11400 ?        S    Okt27   0:00  \_ php-fpm: pool sub.panel.example3.com
user1+   471032  0.0  0.0 256192 11400 ?        S    Okt27   0:00  \_ php-fpm: pool vault.example3.com
user1+   471033  0.0  0.0 256192 11400 ?        S    Okt27   0:00  \_ php-fpm: pool vault.example3.com
user1+   471034  0.0  0.0 256192 11400 ?        S    Okt27   0:00  \_ php-fpm: pool example2.de
user1+   471035  0.0  0.0 256192 11400 ?        S    Okt27   0:00  \_ php-fpm: pool example2.de
froxlor+ 471302  0.0  0.1 331660 33540 ?        S    Okt27   0:00  \_ php-fpm: pool panel.example3.com
root     471059  0.0  0.1 329904 30040 ?        Ss   Okt27   0:04 php-fpm: master process (/etc/php/8.4/fpm/php-fpm.conf)
user1+   471068  0.0  0.1 329928 19020 ?        S    Okt27   0:00  \_ php-fpm: pool example3.com
user1+   471069  0.0  0.1 329928 20780 ?        S    Okt27   0:00  \_ php-fpm: pool example3.com

die user-gruppen sind eigentlich alle member von "www-data" (oder was immer auch du für den webserver nutzt ,ist eine setting), validieren kannst du das mit id www-data z.B..

Ggfls webserver mal neustarten und u.U. sicherstellen das du keinen caching-daemon für nss (z.:B nscd) laufen hast

  • Author

Webserver ist default www-data. Unverändert.  

root@h2954995:~# ls -l /var/customers/webs/USER/CUSTOMER/DOMAIN/index.php
-rw-r--r-- 1 USER USER 6859  1. Dez 2021  /var/customers/webs/USER/CUSTOMER/DOMAIN/index.php
root@h2954995:~# ls -l /var/lib/apache2/fastcgi/2-user-domain-php-fpm.socket
srw-rw---- 1 USER USER 0 28. Okt 16:24 /var/lib/apache2/fastcgi/2-user-domain-php-fpm.socket
root@h2954995:~# id www-data
uid=33(www-data) gid=33(www-data) Gruppen=33(www-data),2013(froxlorlocal),10000(USER),10001(web1)

hm und der kunde scheint auch nicht neu zu sein, dann ist es merkwürdig, der webserver- user ist ja offenbar in der gruppe des users, kann ich dir nicht erklären wieso er da permission issues schmeisst - sollte er nicht, hab ich hier auch auf keinem system so.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.