nginx_ispconfig.vhost.master missing ?

Discussion in 'Installation/Configuration' started by Vincent D, Dec 5, 2023.

  1. Vincent D

    Vincent D New Member

    Hi,

    I've updated to bookworm today (from debian 10, therefore, 2 upgrades) and I am changing the default php in ispconfig following the tutorial. update-the-ispconfig-perfect-server-from-debian-11-to-debian-12/

    But ispconfig is still running under 7.3.
    The ispconfig.vhost still mentions "fastcgi_pass unix:/var/lib/php7.3-fpm/ispconfig.sock" and I realised that I cannot find the nginx_ispconfig.vhost.master file (missing from /usr/local/ispconfig/server/conf )

    Is it normal it's missing ?

    Thanks,
    .vince

    NB : I've been using ispconfig for 8 years for personal and non-profit organisation, going through a lot of upgrades.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, because this file is in the folder install/tpl/ of the ISPConfig tar.gz file. It's a template of the installer and not of the server.
     
  3. Vincent D

    Vincent D New Member

    Ok, thank-you.
    What could be the reason why the ispconfig.vhost is not being updated then ?
    (i retried "ispconfig_update.sh --force")
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The socket path is fine, the number 7.3 in the path is not the PHP version. Its the name of the global system socket dir and this is not changed for an update and is not related to a PHP version used for a host. You can not see which PHP version is used by a vhost in the vhost file at all.
     
  5. Vincent D

    Vincent D New Member

    in the ispconfig.vhost, i have :
    Code:
            location ~ \.php$ {
                   try_files $uri =404;
                   include /etc/nginx/fastcgi_params;
                   fastcgi_pass unix:/var/lib/php7.3-fpm/ispconfig.sock;
    Code:
    php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
        Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; enabled; preset: enabled)
        Active: active (running) since Tue 2023-12-05 15:55:11 CET; 2min 4s ago
          Docs: man:php-fpm7.3(8)
       Process: 158827 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73 (code=exited, status=0/SUCCESS)
      Main PID: 158805 (php-fpm7.3)
        Status: "Processes active: 0, idle: 6, Requests: 33, slow: 0, Traffic: 0.2req/sec"
         Tasks: 7 (limit: 9294)
        Memory: 32.7M
           CPU: 496ms
        CGroup: /system.slice/php7.3-fpm.service
                ├─158805 "php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)"
                ├─158820 "php-fpm: pool apps-{fpm_domain}"
                ├─158821 "php-fpm: pool apps-{fpm_domain}"
                ├─158822 "php-fpm: pool ispconfig"
                ├─158824 "php-fpm: pool ispconfig"
                ├─158825 "php-fpm: pool www"
                └─158826 "php-fpm: pool www"
    
    and when I shutdown php7.3 ("systemctl stop php7.3-fpm") ispconfig returns a 502: Bad gateway.
    It seems to me, it's running on 7.3 :/
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    This might be, but it is not related to the config from ispconfig.vhost file that you posted as the number in that path is not the PHP version of that site. The PHP version of a site can only be seen in the pool conf directory of the php version and not the vhost file socket path. So if it runs as the wrong php version at the moment, then the pool conf file is in the wrong (old) pool directory.

    move the file:

    /etc/php/7.3/fpm/pool.d/ispconfig.conf

    to

    /etc/php/8.2/fpm/pool.d/ispconfig.conf

    and restart php7.3-fpm first and then php8.2-fpm
     
    Taleman and ahrasis like this.
  7. Vincent D

    Vincent D New Member

    The pool conf file was indeed in the old pool directory.
    Thank you for your help, till !
     
    till likes this.

Share This Page