PHP 8.1 Pool Order web.conf is a zero file

Discussion in 'ISPConfig 3 Priority Support' started by planet_fox, Aug 3, 2022.

Tags:
  1. planet_fox

    planet_fox Member HowtoForge Supporter

    Hi

    Php 8.1 installs perfectly according to instructions, but when I switch ISPConfig to PHP 8.1, an error 500 appears on the web and there is an empty file in the /etc/php/8.1/fpm/pool.d/web18.conf folder. If I reset to 7.4, the same thing happens. The only thing that can help is a restore of the file that existed before. Then the web runs again.

    Settings in ISP Backend under additional PHP versions

    Fast CGI

    Path to the PHP FastCGI binary : php-cgi8.1

    Path to php.ini directory : /etc/php/8.1/cgi/

    --
    PHP-FPM

    php8.1-fpm
    /etc/php/8.1/fpm/
    /etc/php/8.1/fpm/pool.d

    PHP-FPM socket directory : empty
     
    Last edited by a moderator: Aug 3, 2022
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. planet_fox

    planet_fox Member HowtoForge Supporter

    Hi
    I have see after my Post, but that's is my config

    update-alternatives --config php
    update-alternatives --config php-cgi


    root@srv~# update-alternatives --config php
    There are 8 choices for the alternative php (providing /usr/bin/php).

    Selection Path Priority Status
    ------------------------------------------------------------
    0 /usr/bin/php8.1 81 auto mode
    1 /usr/bin/php5.6 56 manual mode
    2 /usr/bin/php7.0 70 manual mode
    3 /usr/bin/php7.1 71 manual mode
    4 /usr/bin/php7.2 72 manual mode
    5 /usr/bin/php7.3 73 manual mode
    * 6 /usr/bin/php7.4 74 manual mode
    7 /usr/bin/php8.0 80 manual mode
    8 /usr/bin/php8.1 81 manual mode
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

  5. planet_fox

    planet_fox Member HowtoForge Supporter

    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 11 (bullseye)

    [INFO] uptime: 09:05:38 up 17:12, 1 user, load average: 0.24, 0.49, 0.58

    [INFO] memory:
    total used free shared buff/cache available
    Mem: 15Gi 6.6Gi 1.3Gi 255Mi 7.4Gi 8.1Gi
    Swap: 0B 0B 0B

    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.2.8p1


    ##### VERSION CHECK #####

    [INFO] php (cli) version is 7.4.30
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.4.30

    ##### PORT CHECK #####


    ##### MAIL SERVER CHECK #####


    ##### RUNNING SERVER PROCESSES #####

    [INFO] I found the following web server(s):
    Unknown process (nginx:) (PID 229416)
    [INFO] I found the following mail server(s):
    Postfix (PID 1912)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 844)
    [INFO] I found the following imap server(s):
    Dovecot (PID 844)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 1722)

    ##### LISTENING PORTS #####
    (only ()
    Local (Address)
    [localhost]:11333 (1011/rspamd:)
    [localhost]:11334 (1011/rspamd:)
    [localhost]:10023 (1346/postgrey)
    [localhost]:10024 (949/amavisd-new)
    [localhost]:10025 (1912/master)
    [localhost]:10026 (949/amavisd-new)
    [anywhere]:3306 (1444/mariadbd)
    [localhost]:10027 (1912/master)
    [anywhere]:587 (1912/master)
    [localhost]:6379 (889/redis-server)
    [localhost]:11211 (859/memcached)
    [anywhere]:110 (844/dovecot)
    [anywhere]:143 (844/dovecot)
    [anywhere]:8080 (229416/nginx:)
    [anywhere]:80 (229416/nginx:)
    [anywhere]:8081 (229416/nginx:)
    [anywhere]:465 (1912/master)
    [anywhere]:21 (1722/pure-ftpd)
    ***.***.***.***:53 (866/named)
    ***.***.***.***:53 (866/named)
    ***.***.***.***:53 (866/named)
    ***.***.***.***:53 (866/named)
    [localhost]:53 (866/named)
    [localhost]:53 (866/named)
    [localhost]:53 (866/named)
    [localhost]:53 (866/named)
    [anywhere]:22 (941/sshd:)
    [anywhere]:25 (1912/master)
    [localhost]:953 (866/named)
    [anywhere]:443 (229416/nginx:)
    [anywhere]:4190 (844/dovecot)
    [anywhere]:993 (844/dovecot)
    [anywhere]:995 (844/dovecot)
    [localhost]:11332 (1011/rspamd:)
    *:*:*:*::*:10024 (949/amavisd-new)
    *:*:*:*::*:10026 (949/amavisd-new)
    *:*:*:*::*:3306 (1444/mariadbd)
    *:*:*:*::*:587 (1912/master)
    *:*:*:*::*:6379 (889/redis-server)
    [localhost]10 (844/dovecot)
    [localhost]43 (844/dovecot)
    *:*:*:*::*:80 (229416/nginx:)
    *:*:*:*::*:8080 (229416/nginx:)
    *:*:*:*::*:8081 (229416/nginx:)
    *:*:*:*::*:465 (1912/master)
    *:*:*:*::*:21 (1722/pure-ftpd)
    *:*:*:*::*:53 (866/named)
    *:*:*:*::*:53 (866/named)
    *:*:*:*::*:53 (866/named)
    *:*:*:*::*:53 (866/named)
    *:*:*:*::*1:53 (866/named)
    *:*:*:*::*1:53 (866/named)
    *:*:*:*::*1:53 (866/named)
    *:*:*:*::*1:53 (866/named)
    *:*:*:*::*9400:ff:fe5d:7:53 (866/named)
    *:*:*:*::*9400:ff:fe5d:7:53 (866/named)
    *:*:*:*::*9400:ff:fe5d:7:53 (866/named)
    *:*:*:*::*9400:ff:fe5d:7:53 (866/named)
    *:*:*:*::*:22 (941/sshd:)
    *:*:*:*::*:25 (1912/master)
    *:*:*:*::*:953 (866/named)
    *:*:*:*::*:443 (229416/nginx:)
    *:*:*:*::*:4190 (844/dovecot)
    *:*:*:*::*:993 (844/dovecot)
    [localhost]0050 (919/zabbix_agent2)
    *:*:*:*::*:995 (844/dovecot)




    ##### IPTABLES #####
    Chain INPUT (policy DROP)
    target prot opt source destination
    f2b-postfix tcp -- [anywhere]/0 [anywhere]/0 multiport dports 80,443,25,587,110,995,143,993,4190
    f2b-nginx-wp-login tcp -- [anywhere]/0 [anywhere]/0 multiport dports 80,443
    f2b-postfix tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25,465,587
    f2b-nginx-wp-xmlrpc tcp -- [anywhere]/0 [anywhere]/0 multiport dports 80,443
    f2b-dovecot-pop3imap tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993
    f2b-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25
    f2b-sshd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22
    ufw-before-logging-input all -- [anywhere]/0 [anywhere]/0
    ufw-before-input all -- [anywhere]/0 [anywhere]/0
    ufw-after-input all -- [anywhere]/0 [anywhere]/0
    ufw-after-logging-input all -- [anywhere]/0 [anywhere]/0
    ufw-reject-input all -- [anywhere]/0 [anywhere]/0
    ufw-track-input all -- [anywhere]/0 [anywhere]/0

    Chain FORWARD (policy DROP)
    target prot opt source destination
    ufw-before-logging-forward all -- [anywhere]/0 [anywhere]/0
    ufw-before-forward all -- [anywhere]/0 [anywhere]/0
    ufw-after-forward all -- [anywhere]/0 [anywhere]/0
    ufw-after-logging-forward all -- [anywhere]/0 [anywhere]/0
    ufw-reject-forward all -- [anywhere]/0 [anywhere]/0
    ufw-track-forward all -- [anywhere]/0 [anywhere]/0

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    ufw-before-logging-output all -- [anywhere]/0 [anywhere]/0
    ufw-before-output all -- [anywhere]/0 [anywhere]/0
    ufw-after-output all -- [anywhere]/0 [anywhere]/0
    ufw-after-logging-output all -- [anywhere]/0 [anywhere]/0
    ufw-reject-output all -- [anywhere]/0 [anywhere]/0
    ufw-track-output all -- [anywhere]/0 [anywhere]/0

    Chain f2b-dovecot-pop3imap (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-nginx-wp-login (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-nginx-wp-xmlrpc (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-postfix (2 references)
    target prot opt source destination
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    RETURN all -- [anywhere]/0 [anywhere]/0
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-postfix-sasl (1 references)
    target prot opt source destination
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-sshd (1 references)
    target prot opt source destination
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain ufw-after-forward (1 references)
    target prot opt source destination

    Chain ufw-after-input (1 references)
    target prot opt source destination
    ufw-skip-to-policy-input udp -- [anywhere]/0 [anywhere]/0 udp dpt:137
    ufw-skip-to-policy-input udp -- [anywhere]/0 [anywhere]/0 udp dpt:138
    ufw-skip-to-policy-input tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:139
    ufw-skip-to-policy-input tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:445
    ufw-skip-to-policy-input udp -- [anywhere]/0 [anywhere]/0 udp dpt:67
    ufw-skip-to-policy-input udp -- [anywhere]/0 [anywhere]/0 udp dpt:68
    ufw-skip-to-policy-input all -- [anywhere]/0 [anywhere]/0 ADDRTYPE match dst-type BROADCAST

    Chain ufw-after-logging-forward (1 references)
    target prot opt source destination
    LOG all -- [anywhere]/0 [anywhere]/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "

    Chain ufw-after-logging-input (1 references)
    target prot opt source destination
    LOG all -- [anywhere]/0 [anywhere]/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "

    Chain ufw-after-logging-output (1 references)
    target prot opt source destination

    Chain ufw-after-output (1 references)
    target prot opt source destination

    Chain ufw-before-forward (1 references)
    target prot opt source destination
    ACCEPT all -- [anywhere]/0 [anywhere]/0 ctstate RELATED,ESTABLISHED
    ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 3
    ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 11
    ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 12
    ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 8
    ufw-user-forward all -- [anywhere]/0 [anywhere]/0

    Chain ufw-before-input (1 references)
    target prot opt source destination
    ACCEPT all -- [anywhere]/0 [anywhere]/0
    ACCEPT all -- [anywhere]/0 [anywhere]/0 ctstate RELATED,ESTABLISHED
    ufw-logging-deny all -- [anywhere]/0 [anywhere]/0 ctstate INVALID
    DROP all -- [anywhere]/0 [anywhere]/0 ctstate INVALID
    ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 3
    ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 11
    ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 12
    ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 8
    ACCEPT udp -- [anywhere]/0 [anywhere]/0 udp spt:67 dpt:68
    ufw-not-local all -- [anywhere]/0 [anywhere]/0
    ACCEPT udp -- [anywhere]/0 ***.***.***.*** udp dpt:5353
    ACCEPT udp -- [anywhere]/0 ***.***.***.*** udp dpt:1900
    ufw-user-input all -- [anywhere]/0 [anywhere]/0

    Chain ufw-before-logging-forward (1 references)
    target prot opt source destination

    Chain ufw-before-logging-input (1 references)
    target prot opt source destination

    Chain ufw-before-logging-output (1 references)
    target prot opt source destination

    Chain ufw-before-output (1 references)
    target prot opt source destination
    ACCEPT all -- [anywhere]/0 [anywhere]/0
    ACCEPT all -- [anywhere]/0 [anywhere]/0 ctstate RELATED,ESTABLISHED
    ufw-user-output all -- [anywhere]/0 [anywhere]/0

    Chain ufw-logging-allow (0 references)
    target prot opt source destination
    LOG all -- [anywhere]/0 [anywhere]/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW ALLOW] "

    Chain ufw-logging-deny (2 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0 ctstate INVALID limit: avg 3/min burst 10
    LOG all -- [anywhere]/0 [anywhere]/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "

    Chain ufw-not-local (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0 ADDRTYPE match dst-type LOCAL
    RETURN all -- [anywhere]/0 [anywhere]/0 ADDRTYPE match dst-type MULTICAST
    RETURN all -- [anywhere]/0 [anywhere]/0 ADDRTYPE match dst-type BROADCAST
    ufw-logging-deny all -- [anywhere]/0 [anywhere]/0 limit: avg 3/min burst 10
    DROP all -- [anywhere]/0 [anywhere]/0

    Chain ufw-reject-forward (1 references)
    target prot opt source destination

    Chain ufw-reject-input (1 references)
    target prot opt source destination

    Chain ufw-reject-output (1 references)
    target prot opt source destination

    Chain ufw-skip-to-policy-forward (0 references)
    target prot opt source destination
    DROP all -- [anywhere]/0 [anywhere]/0

    Chain ufw-skip-to-policy-input (7 references)
    target prot opt source destination
    DROP all -- [anywhere]/0 [anywhere]/0

    Chain ufw-skip-to-policy-output (0 references)
    target prot opt source destination
    ACCEPT all -- [anywhere]/0 [anywhere]/0

    Chain ufw-track-forward (1 references)
    target prot opt source destination

    Chain ufw-track-input (1 references)
    target prot opt source destination

    Chain ufw-track-output (1 references)
    target prot opt source destination
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 ctstate NEW
    ACCEPT udp -- [anywhere]/0 [anywhere]/0 ctstate NEW

    Chain ufw-user-forward (1 references)
    target prot opt source destination

    Chain ufw-user-input (1 references)
    target prot opt source destination
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:20
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:21
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:22
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:25
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:53
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:80
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:110
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:143
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:443
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:3306
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:8080
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:10000
    ACCEPT udp -- [anywhere]/0 [anywhere]/0 udp dpt:53
    ACCEPT udp -- [anywhere]/0 [anywhere]/0 udp dpt:3306
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:21
    ACCEPT udp -- [anywhere]/0 [anywhere]/0 udp dpt:21
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:10050
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:587
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:465
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:995
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:993

    Chain ufw-user-limit (0 references)
    target prot opt source destination
    LOG all -- [anywhere]/0 [anywhere]/0 limit: avg 3/min burst 5 LOG flags 0 level 4 prefix "[UFW LIMIT BLOCK] "
    REJECT all -- [anywhere]/0 [anywhere]/0 reject-with icmp-port-unreachable

    Chain ufw-user-limit-accept (0 references)
    target prot opt source destination
    ACCEPT all -- [anywhere]/0 [anywhere]/0

    Chain ufw-user-logging-forward (0 references)
    target prot opt source destination

    Chain ufw-user-logging-input (0 references)
    target prot opt source destination

    Chain ufw-user-logging-output (0 references)
    target prot opt source destination

    Chain ufw-user-output (1 references)
    target prot opt source destination




    ##### LET'S ENCRYPT #####
    Certbot is installed in /usr/bin/letsencrypt
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please change the path to the fcgi php binary to: /usr/bin/php-cgi8.1 That's probably not related to the issue as it's php-fcgi and not fpm, but it's better to use the full path.

    Do you us any custom templates for the pool files? And have you switched PHP versions after you changed the default PHP version back to 7.4? If not, do that now.

    If this does not help, use debug mode to find out which errors occur when changing PHP version.
     
  7. planet_fox

    planet_fox Member HowtoForge Supporter

    1) I have do it
    2) no custum templates, I have change to 8.1 and it dont works have want to go back to 7.4 and there do the same create a zero fil in the Pool of 7.4 php .

    3)
    If this does not help, use debug mode to find out which errors occur when changing PHP version.
    You means ISPCONFIG debug mode ?
     
    Last edited: Aug 4, 2022
  8. till

    till Super Moderator Staff Member ISPConfig Developer

  9. planet_fox

    planet_fox Member HowtoForge Supporter

    Looks here

    Code:
    04.08.2022-11:04 - DEBUG [plugins.inc:155] - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    04.08.2022-11:04 - DEBUG [server:177] - Found 1 changes, starting update process.
    04.08.2022-11:04 - DEBUG [plugins.inc:118] - Calling function 'ssl' from plugin 'nginx_plugin' raised by event 'web_domain_update'.
    04.08.2022-11:04 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'nginx_plugin' raised by event 'web_domain_update'.
    04.08.2022-11:04 - DEBUG [system.inc:2399] - safe_exec cmd: chattr -i '/var/www/clients/client1/web77' - return code: 0
    04.08.2022-11:04 - DEBUG [system.inc:2399] - safe_exec cmd: chattr +i '/var/www/clients/client1/web77' - return code: 0
    04.08.2022-11:04 - DEBUG [system.inc:2399] - safe_exec cmd: df -T '/var/www/clients/client1/web77'|awk 'END{print $2,$NF}' - return code: 0
    04.08.2022-11:04 - DEBUG [system.inc:2399] - safe_exec cmd: which 'setquota' 2> /dev/null - return code: 0
    04.08.2022-11:04 - DEBUG [system.inc:2399] - safe_exec cmd: setquota -u 'web77' '0' '0' 0 0 -a &> /dev/null - return code: 0
    04.08.2022-11:04 - DEBUG [system.inc:2399] - safe_exec cmd: setquota -T -u 'web77' 604800 604800 -a &> /dev/null - return code: 0
    04.08.2022-11:04 - DEBUG [system.inc:2399] - safe_exec cmd: chattr +i '/var/www/clients/client1/web77' - return code: 0
    04.08.2022-11:04 - DEBUG [nginx plugin.inc:1397] - SSL Disabled. next.cloud.xx
    04.08.2022-11:04 - DEBUG [system.inc:2399] - safe_exec cmd: nginx -V 2>&1 | grep 'built with OpenSSL' | sed 's/.*built\([a-zA-Z ]*\)OpenSSL \([0-9.]*\).*/\2/' - return code: 0
    04.08.2022-11:04 - DEBUG [system.inc:2399] - safe_exec cmd: nginx -V 2>&1 | grep 'running with OpenSSL' | sed 's/.*running\([a-zA-Z ]*\)OpenSSL \([0-9.]*\).*/\2/' - return code: 0
    04.08.2022-11:04 - DEBUG [system.inc:2399] - safe_exec cmd: which 'nginx' 2> /dev/null - return code: 0
    04.08.2022-11:04 - DEBUG [nginx plugin.inc:1623] - Enable TLS 1.3 for: next.cloud.xx
    04.08.2022-11:04 - DEBUG [nginx plugin.inc:1916] - Writing the vhost file: /etc/nginx/sites-available/next.cloud.xx.vhost
    04.08.2022-11:04 - DEBUG [nginx plugin.inc:3042] - Writing the PHP-FPM config file: /etc/php/8.1/fpm/pool.d/web77.conf
    04.08.2022-11:04 - DEBUG [nginx plugin.inc:3051] - Removed PHP-FPM config file: /etc/php/7.4/fpm/pool.d/web77.conf
    04.08.2022-11:04 - DEBUG [services.inc:56] - Calling function 'restartPHP_FPM' from module 'web_module'.
    04.08.2022-11:04 - DEBUG [system.inc:2082] - Trying to use Systemd to restart service
    04.08.2022-11:04 - DEBUG [system.inc:2399] - safe_exec cmd: systemctl is-enabled 'php7.4-fpm' 2>&1 - return code: 0
    04.08.2022-11:04 - DEBUG [web module.inc:316] - Restarting php-fpm: systemctl reload php7.4-fpm.service
    04.08.2022-11:04 - DEBUG [services.inc:56] - Calling function 'restartPHP_FPM' from module 'web_module'.
    04.08.2022-11:04 - DEBUG [system.inc:2082] - Trying to use Systemd to restart service
    04.08.2022-11:04 - DEBUG [system.inc:2399] - safe_exec cmd: systemctl is-enabled 'php8.1-fpm' 2>&1 - return code: 0
    04.08.2022-11:04 - DEBUG [web module.inc:316] - Restarting php-fpm: systemctl reload php8.1-fpm.service
    04.08.2022-11:04 - DEBUG [nginx plugin.inc:2017] - nginx status is: running
    04.08.2022-11:04 - DEBUG [services.inc:56] - Calling function 'restartHttpd' from module 'web_module'.
    04.08.2022-11:04 - DEBUG [system.inc:2082] - Trying to use Systemd to restart service
    04.08.2022-11:04 - DEBUG [system.inc:2399] - safe_exec cmd: systemctl is-enabled 'nginx' 2>&1 - return code: 0
    04.08.2022-11:04 - DEBUG [web module.inc:236] - Checking nginx configuration...
    04.08.2022-11:04 - DEBUG [web module.inc:239] - nginx configuration ok!
    04.08.2022-11:04 - DEBUG [web module.inc:246] - Restarting httpd: systemctl restart nginx.service
    04.08.2022-11:04 - DEBUG [nginx plugin.inc:2020] - nginx restart return value is: 0
    04.08.2022-11:04 - DEBUG [nginx plugin.inc:2027] - nginx online status after restart is: running
    04.08.2022-11:04 - DEBUG [modules.inc:240] - Processed datalog_id 2005
    04.08.2022-11:04 - DEBUG [server:217] - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    finished server.php.
    
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Looks fine so far, no errors. Please run the command:

    cat /etc/php/7.4/fpm/pool.d/web77.conf

    and post the result.
     
  11. planet_fox

    planet_fox Member HowtoForge Supporter

    Code:
    root@nix:/var/www/next.cloud.de/web# cat /etc/php/7.4/fpm/pool.d/web77.conf
    root@nix:/var/www/next.cloud.de/web#
    
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Hmm, really strange. Please post the output of the commands:

    cat /usr/local/ispconfig/server/conf/php_fpm_pool.conf.master

    and

    ls /usr/local/ispconfig/server/conf-custom/
     
  13. planet_fox

    planet_fox Member HowtoForge Supporter

    Code:
    [<tmpl_var name='fpm_pool'>]
    
    <tmpl_if name='use_tcp'>
    listen = 127.0.0.1:<tmpl_var name='fpm_port'>
    listen.allowed_clients = 127.0.0.1
    </tmpl_if>
    <tmpl_if name='use_socket'>
    listen = <tmpl_var name='fpm_socket'>
    listen.owner = <tmpl_var name='fpm_listen_user'>
    listen.group = <tmpl_var name='fpm_listen_group'>
    listen.mode = <tmpl_var name='fpm_listen_mode'>
    </tmpl_if>
    
    user = <tmpl_var name='fpm_user'>
    group = <tmpl_var name='fpm_group'>
    
    pm = <tmpl_var name='pm'>
    pm.max_children = <tmpl_var name='pm_max_children'>
    <tmpl_if name='pm' op='==' value='dynamic'>
    pm.start_servers = <tmpl_var name='pm_start_servers'>
    pm.min_spare_servers = <tmpl_var name='pm_min_spare_servers'>
    pm.max_spare_servers = <tmpl_var name='pm_max_spare_servers'>
    </tmpl_if>
    <tmpl_if name='pm' op='==' value='ondemand'>
    pm.process_idle_timeout = <tmpl_var name='pm_process_idle_timeout'>s;
    </tmpl_if>
    pm.max_requests = <tmpl_var name='pm_max_requests'>
    
    chdir = /
    <tmpl_if name='php_fpm_chroot'>
    chroot = <tmpl_var name='php_fpm_chroot_dir'>
    php_admin_value[doc_root] = <tmpl_var name='php_fpm_chroot_web_folder'>
    </tmpl_if>
    
    env[HOSTNAME] = $HOSTNAME
    env[TMP] = <tmpl_var name='document_root'>/tmp
    env[TMPDIR] = <tmpl_var name='document_root'>/tmp
    env[TEMP] = <tmpl_var name='document_root'>/tmp
    env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    
    <tmpl_if name='security_level' op='==' value='20'>
    <tmpl_var name='enable_php_open_basedir'>php_admin_value[open_basedir] = <tmpl_var name='php_open_basedir'>
    <tmpl_if name='custom_session_save_path' op='!=' value='y'>
    php_admin_value[session.save_path] = <tmpl_var name='document_root'>/tmp
    </tmpl_if>
    php_admin_value[upload_tmp_dir] = <tmpl_var name='document_root'>/tmp
    <tmpl_if name='custom_sendmail_path' op='!=' value='y'>
    php_admin_value[sendmail_path] = "/usr/sbin/sendmail -t -i -f webmaster@<tmpl_var name='domain'>"
    </tmpl_if>
    </tmpl_if>
    
    <tmpl_loop name="custom_php_ini_settings">
    <tmpl_var name='ini_setting'>
    </tmpl_loop>
    
    and

    Code:
    root@nix:/var/www/next.cloud.de/web# ls /usr/local/ispconfig/server/conf-custom/
    empty.dir  error  index  install  mail  nginx_vhost.conf.master  php_fpm_pool.conf.master
    
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    In post #7 you said you are not using custom templates. But in fact, you override the default template with a custom template, see file
    php_fpm_pool.conf.master in the folder /usr/local/ispconfig/server/conf-custom/

    Most likely the custom template is either empty or the content is not right which causes php-fpm pool files to be empty. Remove that custom template or fix it.
     
  15. planet_fox

    planet_fox Member HowtoForge Supporter

    Thank you Very much, sorry I was not aware that there was a template in there.
    Porblem is solve
     

Share This Page