Search the Community
Showing results for tags 'php-fpm'.
Found 2 results
-
OPcache best practise
Hello, I was searching for a best practice to setup OPcache in combination with PHP-FPM, Apache and Froxlor, but found none. I tried to read many posts from different forums, but unfortunately I'm not getting anywhere. Also asking AI did not really help. This is my PHP-FPM pool config: php_admin_flag[opcache.enable]=1 php_admin_flag[opcache.enable_cli]=1 php_admin_value[opcache.restrict_api]="{DOCUMENT_ROOT}" php_admin_value[opcache.memory_consumption]=4096 php_admin_value[opcache.interned_strings_buffer]=128 php_admin_value[opcache.max_accelerated_files]=131071 php_admin_flag[opcache.validate_timestamps]=1 php_admin_value[opcache.revalidate_freq]=60 php_admin_flag[opcache.save_comments]=1 php_admin_flag[opcache.fast_shutdown]=1 php_admin_value[opcache.max_wasted_percentage]=5 Somehow the memory usage is immediately full. It does not matter, if I set the memory size to 1024 MB, 4096 MB, 8192 MB, 32768 MB or even 102400 MB. Also the memory usage of the OPcache is not matching with the RAM usage of the server. The server has 12 vCPU and 64 GB of RAM running Debian 12.4. I'm running about 25 small Wordpress sites, each has about 2-3 visitors per hour, so nearly no traffic and load. If I get the cached scripts with opcache_get_status(true) and sum the memory consumption of each script, I'm reaching about 110 MB. In the overview the hits count and cached script count should be much higher, since only two out of 25 Wordpress sites are partially cached. In attachment the OPcache overview page of Froxlor and phpinfo OPcache settings. I'm using PHP-FPM 8.4.12. Is this an OPcache issue, misconfiguration or know behavior? Does anyone have an idea on how to solve that or maybe I should use another caching mechanism? Thanks!
-
Installationsschwierigkeiten von PHP-FPM mit Apache
Hallo, ich bin gerade dabei einen neuen Froxlor (0.10.30-1) Webserver aufzusetzen und komme leider nicht weiter, da die Anleitung leider etwas in die Jahre gekommen ist. Als Betriebssystem verwende ich Debian Bullseye 11.1.0 amd64. Ich habe Froxlor wie folgt konfiguriert: Install froxlor on debian: Punkte 1 - 4 Symbolischen Link erstellt um Froxlor über HTTP/HTTPS erreichen zu können: ln -s /var/www/froxlor/ /var/www/html/froxlor Froxlor über die Web UI installiert und die Services über Shell automatisch konfiguriert: php /var/www/froxlor//install/scripts/config-services.php --froxlor-dir=/var/www/froxlor/ --create choose distribution [bullseye]: Enter choose service [apache24]: Enter choose service [bind]: x choose service [postfix_dovecot]: x choose service [dovecot_postfix2]: x choose service [proftpd]: Enter Select every service you need. Enter empty value when done choose service: cron choose service: awstats choose service: libnssextrausers choose service: logrotate choose service: php-fpm choose service: Enter choose output-filename [/tmp/froxlor-config-20211125.json]: Enter Do you want to apply the config now? [y/N]: Y --- Configuring: FTP --- Do you want to continue? [Y/n] Enter Soweit so gut. Während der Konfiguration habe ich keine Fehler erhalten. Nun wollte ich anhang der Anleitung apache2 with php fpm PHP-FPM konfigurieren. Schritt 2 wurde vermutlich mit der Autokonfiguration über die Shell ausgeführt, jedoch fehlt z.B. das Modul fastcgi in Apache. Bei Schritt 3 weiß ich leider nicht woher ich die Inhalte von /etc/libnss-mysql-root.cfg und /etc/libnss-mysql.cfg herbekommen soll. Die Datei /etc/nsswitch.conf ist bereits vorhanden. Wenn ich im Froxlor Panel unter "System -> Configuration -> Debian Bullseye (11.x) - Others (System) - libnss-extrausers (required for FCGID/php-fpm/mpm-itk)" auswähle erscheint mir nur die Konfiguration von /etc/nsswitch.conf. Bei Schritt 4 gibt es die Datei /etc/apache2/mods-available/fastcgi.conf nicht, da in Schritt 2 das Modul nicht installiert/aktiviert wurde. Wie kann ich nun PHP-FPM auf einem aktuellen System installieren? Gibt es eine aktuelle Anleitung die ich vielleicht nicht gefunden habe? Vielen Dank im Voraus