Author Topic: Problem after switching to FCGI.  (Read 4184 times)

Offline horizn

  • Newbie
  • *
  • Posts: 9
Problem after switching to FCGI.
« on: October 25, 2017, 05:25:46 PM »
Hi,
I have configured Apache to use FCGI, and since that I can't login anymore. The log from Apache:

Code: [Select]
[Wed Oct 25 22:14:37.009295 2017] [proxy_fcgi:error] [pid 56869:tid 139755257710336] [client 90.255.176.34:50686] AH01071: Got error 'cube.php on line 631\nPHP message: PHP Notice:  Undefined index: uppercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 641\nPHP message: PHP Notice:  Undefined index: ucfirst in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 641\nPHP message: PHP Notice:  Undefined index: uppercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 644\nPHP message: PHP Notice:  Undefined index: lowercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 647\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined index: colspan in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 752\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: colspan in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 752\nPHP message: PHP Notice:  Undefined index: en_us in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 618\nPHP message: PHP Notice:  Undefined index: en_us in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 618\nPHP message: PHP Notice:  Undefined index: vars in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 631\nPHP message: PHP Notice:  Undefined index: uppercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 641\nPHP message: PHP Notice:  Undefined index: ucfirst in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 641\nPHP message: PHP Notice:  Undefined index: uppercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 644\nPHP message: PHP Notice:  Undefined index: lowercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 647\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined index: colspan in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 752\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: colspan in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 752\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined property: stdClass::$attrib in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 890\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined index: rowsonly in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 894\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined variable: hide_host in /var/www/htdocs/poczta/program/include/rcmail_output_html.php on line 1913\nPHP message: PHP Notice:  Undefined index: en_us in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 618\nPHP message: PHP Notice:  Undefined index: en_us in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 618\nPHP message: PHP Notice:  Undefined index: vars in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 631\nPHP message: PHP Notice:  Undefined index: uppercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 641\nPHP message: PHP Notice:  Undefined index: ucfirst in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 641\nPHP message: PHP Notice:  Undefined index: uppercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 644\nPHP message: PHP Notice:  Undefined index: lowercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 647\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined index: expression in /var/www/htdocs/poczta/program/include/rcmail_output_html.php on line 1059\nPHP message: PHP Notice:  Undefined index: en_us in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 618\nPHP message: PHP Notice:  Undefined index: en_us in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 618\nPHP message: PHP Notice:  Undefined index: uppercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 641\nPHP message: PHP Notice:  Undefined index: ucfirst in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 641\nPHP message: PHP Notice:  Undefined index: uppercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 644\nPHP message: PHP Notice: 
[Wed Oct 25 22:14:37.012757 2017] [proxy_fcgi:error] [pid 56869:tid 139755257710336] [client 90.255.176.34:50686] AH01071: Got error 'tput_html.php on line 1067\nPHP message: PHP Notice:  Undefined index: noshow in /var/www/htdocs/poczta/program/include/rcmail_output_html.php on line 1070\nPHP message: PHP Notice:  Undefined index: productname in /var/www/htdocs/poczta/program/include/rcmail_output_html.php on line 1140\nPHP message: PHP Notice:  Undefined index: expression in /var/www/htdocs/poczta/program/include/rcmail_output_html.php on line 1059\nPHP message: PHP Notice:  Undefined index: en_us in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 618\nPHP message: PHP Notice:  Undefined index: en_us in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 618\nPHP message: PHP Notice:  Undefined index: uppercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 641\nPHP message: PHP Notice:  Undefined index: ucfirst in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 641\nPHP message: PHP Notice:  Undefined index: uppercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 644\nPHP message: PHP Notice:  Undefined index: lowercase in /var/www/htdocs/poczta/program/lib/Roundcube/rcube.php on line 647\nPHP message: PHP Notice:  Undefined index: html in /var/www/htdocs/poczta/program/include/rcmail_output_html.php on line 1067\nPHP message: PHP Notice:  Undefined index: noshow in /var/www/htdocs/poczta/program/include/rcmail_output_html.php on line 1070\nPHP message: PHP Notice:  Undefined index: content in /var/www/htdocs/poczta/program/lib/Roundcube/rcube_plugin_api.php on line 657\nPHP message: PHP Notice:  Undefined index: loginfooter in /var/www/htdocs/poczta/program/lib/Roundcube/rcube_plugin_api.php on line 657\nPHP message: PHP Notice:  Undefined index: break in /var/www/htdocs/poczta/program/lib/Roundcube/rcube_plugin_api.php on line 445\nPHP message: PHP Notice:  Undefined index: skinpath in /var/www/htdocs/poczta/program/include/rcmail_output_html.php on line 1099\nPHP message: PHP Notice:  Undefined index: _unlock in /var/www/htdocs/poczta/program/include/rcmail_output_html.php on line 677\nPHP message: PHP Notice:  Undefined variable: parent_prefix in /var/www/htdocs/poczta/program/include/rcmail_output_html.php on line 708\nPHP message: PHP Notice:  Undefined index: framed in /var/www/htdocs/poczta/program/include/rcmail_output_html.php on line 531\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined index: foot in /var/www/htdocs/poczta/program/include/rcmail_output_html.php on line 1621\nPHP message: PHP Notice:  Undefined index: noclose in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 84\nPHP message: PHP Notice:  Undefined variable: is_empty in /var/www/htdocs/poczta/program/include/rcmail_output_html.php on line 1670\nPHP message: PHP Notice:  Undefined index: nl in /var/www/htdocs/poczta/program/lib/Roundcube/html.php on line 80\n', referer: https://domain/poczta/?_task=login
[Wed Oct 25 22:14:37.228142 2017] [proxy_fcgi:error] [pid 56869:tid 139755257710336] [client 90.255.176.34:50686] AH01071: Got error 'PHP message: PHP Notice:  Undefined variable: add in /var/www/htdocs/poczta/program/lib/Roundcube/rcube_db.php on line 935\n', referer: https://domain/poczta/?_task=login
[Wed Oct 25 22:14:37.228183 2017] [proxy:debug] [pid 56869:tid 139755257710336] proxy_util.c(2171): AH00943: FCGI: has released connection for (*)
[Wed Oct 25 22:14:42.173141 2017] [ssl:debug] [pid 56869:tid 139755131819776] ssl_engine_io.c(1103): [remote 90.255.176.34:50686] AH02001: Connection closed to child 135 with standard shutdown (server domain:443)

Apache vhost configuration is almost the same:

Code: [Select]

<VirtualHost *:80>
        ServerAdmin @
        DocumentRoot "/var/www/htdocs"
        ServerName domain
        ServerAlias www.domain
        ErrorLog "/var/log/httpd/domain-error.log"
        CustomLog "/var/log/httpd/domain-access.log" common

        Redirect permanent / https://domain/

        <IfModule mpm_event_module>
                ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/htdocs/$1
        </IfModule>

        <Directory /var/www/htdocs/>
                Options -Indexes -FollowSymLinks -Includes -ExecCGI
                AllowOverride None
                Require all granted
                allow from all
        </Directory>
</VirtualHost>

<VirtualHost *:443>
        DocumentRoot "/var/www/htdocs"
        ServerName domain
        ServerAlias www.domain
        ServerAdmin @
        ErrorLog "/var/log/httpd/ssl_error.log"
        TransferLog "/var/log/httpd/ssl_access.log"
        CustomLog "/var/log/httpd/ssl_custom.log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
        LogLevel debug

        <Directory /var/www/htdocs>
            Options -Indexes -FollowSymLinks -Includes -ExecCGI
            AllowOverride None
            Require all granted
        </Directory>

        <FilesMatch "\.(cgi|shtml|phtml|php|txt)$">
            SSLOptions +StdEnvVars
        </FilesMatch>

        SSLEngine on
        SSLCertificateFile "/etc/letsencrypt/live/domain/fullchain.pem"
        SSLCertificateKeyFile "/etc/letsencrypt/live/domain/privkey.pem"

        Header always add Strict-Transport-Security "max-age=15768000"
   
        BrowserMatch "MSIE [2-6]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
        BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>

What did I miss?