SUexec works fine for PHP-FPM but Fast-CGI suddenly runs under www-data only, suexec.log empty

Discussion in 'Installation/Configuration' started by Shirokuma, Feb 18, 2021.

  1. Shirokuma

    Shirokuma New Member

    In my case it looks almost the same:
    Code:
    lrwxrwxrwx 1 root root 16 Feb 17 19:17 /etc/alternatives/phar -> /usr/bin/phar7.4
    lrwxrwxrwx 1 root root 32 Feb 17 19:17 /etc/alternatives/phar.1.gz -> /usr/share/man/man1/phar7.4.1.gz
    lrwxrwxrwx 1 root root 21 Feb 17 19:22 /etc/alternatives/phar.phar -> /usr/bin/phar.phar7.4
    lrwxrwxrwx 1 root root 37 Feb 17 19:22 /etc/alternatives/phar.phar.1.gz -> /usr/share/man/man1/phar.phar7.4.1.gz
    lrwxrwxrwx 1 root root 15 Jan 15 21:21 /etc/alternatives/php -> /usr/bin/php7.4
    lrwxrwxrwx 1 root root 31 Jan 15 21:21 /etc/alternatives/php.1.gz -> /usr/share/man/man1/php7.4.1.gz
    lrwxrwxrwx 1 root root 19 Feb 18 16:24 /etc/alternatives/php-cgi -> /usr/bin/php-cgi7.4
    lrwxrwxrwx 1 root root 35 Feb 18 16:24 /etc/alternatives/php-cgi.1.gz -> /usr/share/man/man1/php-cgi7.4.1.gz
    lrwxrwxrwx 1 root root 23 Feb 18 16:24 /etc/alternatives/php-cgi-bin -> /usr/lib/cgi-bin/php7.4
    lrwxrwxrwx 1 root root 24 Feb 18 08:36 /etc/alternatives/php-fpm.sock -> /run/php/php7.4-fpm.sock
    
    And for me, even switching back to prefork does not help at all. Fast-CGI still runs under www-data.
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    What is the content of /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter ?
     
    ArnisR likes this.
  3. Shirokuma

    Shirokuma New Member

    Code:
    root@singuuriq:/var/www/php-fcgi-scripts/ispconfig# cat .php-fcgi-starter
    #!/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
    
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  5. Shirokuma

    Shirokuma New Member

    Th0m,
    you are a savior. The good folks at Shirokuma owe you a big one. Actually, feel free to choose anything from the stationery shop and we'll send it to you. Or, as I am in Tokyo, if you need anything from Japan, just name it.
    Thanks again, really.
     
    ArnisR, Th0m and till like this.
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Thank you so much! I will sent you a PM ;)
     
  7. ArnisR

    ArnisR New Member

    Thanks, Th0m!
    Just applied latest updates and enable http2.
    Everything seems to be working fine.
     

Share This Page