ISPConfig custom conf for .php-fcgi-starter

Discussion in 'General' started by Donno, Mar 27, 2021.

  1. Donno

    Donno Member

    I have server setup with multiple PHP versions.The default php is version is 7.4 after ISPConfig update my file /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter has changed
    Code:
    #!/bin/sh
    PHPRC=/etc/php/7.4/cgi/
    export PHPRC
    export PHP_FCGI_MAX_REQUESTS=5000
    export PHP_FCGI_CHILDREN=1
    exec /usr/bin/php-cgi \
        -d disable_classes= \
        -d disable_functions= \
        -d magic_quotes_gpc=off \
        -d open_basedir= \
        -d session.save_path=/usr/local/ispconfig/interface/temp
    Line 6 needs to change to
    Code:
    exec /usr/bin/php-cgi7.4
    else ISPConfig web interface will start with blank content
    My Question is, is there a custom-config file for .php-fcgi-starter ?
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  3. Donno

    Donno Member

    I am using Ubuntu 20.04 Default version is PHP 7.4 using repository ppa:eek:ndrej/php
    Code:
    # sudo update-alternatives --config php
    There are 7 choices for the alternative php (providing /usr/bin/php).
    
      Selection    Path             Priority   Status
    ------------------------------------------------------------
      0            /usr/bin/php8.0   80        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
    
    Seem to be the related to this https://git.ispconfig.org/ispconfig/ispconfig3/-/issues/5826
    Which guide was Till referring to ?
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You are looking at the alternative for php, not php-cgi.

    He was referring to https://www.howtoforge.com/tutorial...fig-3-from-debian-packages-on-debian-8-and-9/ (but the explanation on how to set the correct version is also in the read before posting)
     
  5. Donno

    Donno Member

    AH ! seems like I missed this
    Code:
    # update-alternatives --config php-cgi
    There are 7 choices for the alternative php-cgi (providing /usr/bin/php-cgi).
    
      Selection    Path                 Priority   Status
    ------------------------------------------------------------
    * 0            /usr/bin/php-cgi8.0   80        auto mode
      1            /usr/bin/php-cgi5.6   56        manual mode
      2            /usr/bin/php-cgi7.0   70        manual mode
      3            /usr/bin/php-cgi7.1   71        manual mode
      4            /usr/bin/php-cgi7.2   72        manual mode
      5            /usr/bin/php-cgi7.3   73        manual mode
      6            /usr/bin/php-cgi7.4   74        manual mode
      7            /usr/bin/php-cgi8.0   80        manual mode
    
    Press <enter> to keep the current choice[*], or type selection number:
    
    After changing PHP-CGI to PHP-CGI7.4 it seems to work now with the default /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter file

    Thank YOU !
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Indeed ;)
     

Share This Page