Bug 61211 - apache 2.4.26 broke fpm (because of ProxyFCGIBackendType?)
Summary: apache 2.4.26 broke fpm (because of ProxyFCGIBackendType?)
Status: RESOLVED DUPLICATE of bug 61202
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.26
Hardware: PC Mac OS X 10.1
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-23 07:10 UTC by Thomas Stein
Modified: 2017-06-26 16:21 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Stein 2017-06-23 07:10:06 UTC
Hello Devs.

After upgrading to apache-2.4.26 my nextcloud installation was broken partly. I could not click on the share button anymore. A quick search revealed there was a change in the ProxyFCGIBackendType variable. It is now set to FPM? Changing it back to GENERIC fixed my nextcloud installation. Here is the thread of the person who found this issue. 

https://stackoverflow.com/questions/44657362/wrong-script-filename-in-apache-2-4-26/44714794#44714794

thanks and cheers
Comment 1 Jacob Champion 2017-06-23 17:08:45 UTC
Thanks for the report; see bug 61202.

If you have the time, can you share a couple of things?

1) The part of your configuration that proxies PHP files to PHP-FPM (SetHandler, ProxyPassMatch, or otherwise)
2) Add 'proxy_fcgi:trace8' to your LogLevel, and show the SCRIPT_NAME, PATH_INFO, QUERY_STRING, SCRIPT_FILENAME, and PATH_TRANSLATED variables that the log shows when you have the BackendType set to FPM. The entries should look something like

mod_proxy_fcgi.c(417): [client 127.0.0.1:30000] AH01062: sending env var 'SCRIPT_NAME' value '/path'

3) Repeat step 2 with the BackendType set to GENERIC.

Thanks!

*** This bug has been marked as a duplicate of bug 61202 ***
Comment 2 Thomas Stein 2017-06-24 10:58:40 UTC
Currently i'm using.

     ProxyFCGIBackendType GENERIC


    <FilesMatch \.php$>
       SetHandler "proxy:unix:/run/fpm.nextcloud.sock|fcgi://localhost"
    </FilesMatch>
    <IfModule dir_module>
       DirectoryIndex index.php index.html
    </IfModule>

Usually without the ProxyFCGIBackendType GENERIC.

Without that i get:

[Sat Jun 24 12:47:19.554176 2017] [proxy_fcgi:trace4] [pid 25463:tid 140322389583616] mod_proxy_fcgi.c(396): [client 92.195.83.223:55762] fpm:virtual_script: Modified SCRIPT_NAME to: /v2.php
[Sat Jun 24 12:47:19.556158 2017] [proxy_fcgi:trace8] [pid 25463:tid 140322389583616] mod_proxy_fcgi.c(419): [client 92.195.83.223:55762] AH01062: sending env var 'SCRIPT_NAME' value '/v2.php'

[Sat Jun 24 12:51:40.707406 2017] [proxy_fcgi:trace8] [pid 25943:tid 140604341266176] mod_proxy_fcgi.c(419): [client 92.195.83.223:55800] AH01062: sending env var 'PATH_INFO' value '/apps/files_sharing/api/v1/shares'
[Sat Jun 24 12:51:56.222826 2017] [proxy_fcgi:trace8] [pid 25943:tid 140604341266176] mod_proxy_fcgi.c(419): [client 92.195.83.223:55800] AH01062: sending env var 'PATH_INFO' value '/apps/notifications/api/v2/notifications'

[Sat Jun 24 12:52:26.317539 2017] [proxy_fcgi:trace8] [pid 25943:tid 140604341266176] mod_proxy_fcgi.c(419): [client 92.195.83.223:55806] AH01062: sending env var 'QUERY_STRING' value ''
[Sat Jun 24 12:52:56.331814 2017] [proxy_fcgi:trace8] [pid 25943:tid 140604341266176] mod_proxy_fcgi.c(419): [client 92.195.83.223:55810] AH01062: sending env var 'QUERY_STRING' value ''

[Sat Jun 24 12:52:56.331612 2017] [proxy_fcgi:trace8] [pid 25943:tid 140604341266176] mod_proxy_fcgi.c(419): [client 92.195.83.223:55810] AH01062: sending env var 'SCRIPT_FILENAME' value 'proxy:fcgi://localhost/var/www/nextcloud.dev.lordcritical.de/htdocs/ocs/v2.php'
[Sat Jun 24 12:53:26.320188 2017] [proxy_fcgi:trace8] [pid 25942:tid 140604584654592] mod_proxy_fcgi.c(419): [client 92.195.83.223:55814] AH01062: sending env var 'SCRIPT_FILENAME' value 'proxy:fcgi://localhost/var/www/nextcloud.dev.lordcritical.de/htdocs/ocs/v2.php'

[Sat Jun 24 12:53:26.320553 2017] [proxy_fcgi:trace8] [pid 25942:tid 140604584654592] mod_proxy_fcgi.c(419): [client 92.195.83.223:55814] AH01062: sending env var 'PATH_TRANSLATED' value '/var/www/nextcloud.dev.lordcritical.de/htdocs/apps/notifications/api/v2/notifications'
[Sat Jun 24 12:53:56.321178 2017] [proxy_fcgi:trace8] [pid 25942:tid 140604584654592] mod_proxy_fcgi.c(419): [client 92.195.83.223:55818] AH01062: sending env var 'PATH_TRANSLATED' value '/var/www/nextcloud.dev.lordcritical.de/htdocs/apps/notifications/api/v2/notifications'


With:

[Sat Jun 24 12:49:05.275502 2017] [proxy_fcgi:trace8] [pid 25715:tid 139686829803264] mod_proxy_fcgi.c(419): [client 92.195.83.223:55780] AH01062: sending env var 'SCRIPT_NAME' value '/ocs/v2.php'
[Sat Jun 24 12:49:05.527225 2017] [proxy_fcgi:trace8] [pid 25715:tid 139686829803264] mod_proxy_fcgi.c(419): [client 92.195.83.223:55780] AH01062: sending env var 'SCRIPT_NAME' value '/index.php'

[Sat Jun 24 12:55:33.970034 2017] [proxy_fcgi:trace8] [pid 26162:tid 139848234387200] mod_proxy_fcgi.c(419): [client 92.195.83.223:55830] AH01062: sending env var 'PATH_INFO' value '/apps/files_sharing/api/v1/shares'
[Sat Jun 24 12:55:34.160694 2017] [proxy_fcgi:trace8] [pid 26162:tid 139848234387200] mod_proxy_fcgi.c(419): [client 92.195.83.223:55830] AH01062: sending env var 'PATH_INFO' value '/apps/files_sharing/api/v1/shares'

[Sat Jun 24 12:55:58.672944 2017] [proxy_fcgi:trace8] [pid 26162:tid 139848234387200] mod_proxy_fcgi.c(419): [client 92.195.83.223:55834] AH01062: sending env var 'QUERY_STRING' value ''
[Sat Jun 24 12:56:28.662622 2017] [proxy_fcgi:trace8] [pid 26162:tid 139848234387200] mod_proxy_fcgi.c(419): [client 92.195.83.223:55838] AH01062: sending env var 'QUERY_STRING' value ''

[Sat Jun 24 12:56:58.670460 2017] [proxy_fcgi:trace8] [pid 26161:tid 139848511346432] mod_proxy_fcgi.c(419): [client 92.195.83.223:55842] AH01062: sending env var 'SCRIPT_FILENAME' value '/var/www/nextcloud.dev.lordcritical.de/htdocs/ocs/v2.php'
[Sat Jun 24 12:57:28.670697 2017] [proxy_fcgi:trace8] [pid 26162:tid 139848234387200] mod_proxy_fcgi.c(419): [client 92.195.83.223:55850] AH01062: sending env var 'SCRIPT_FILENAME' value '/var/www/nextcloud.dev.lordcritical.de/htdocs/ocs/v2.php'

[Sat Jun 24 12:57:28.671061 2017] [proxy_fcgi:trace8] [pid 26162:tid 139848234387200] mod_proxy_fcgi.c(419): [client 92.195.83.223:55850] AH01062: sending env var 'PATH_TRANSLATED' value '/var/www/nextcloud.dev.lordcritical.de/htdocs/apps/notifications/api/v2/notifications'
[Sat Jun 24 12:57:58.667021 2017] [proxy_fcgi:trace8] [pid 26161:tid 139848511346432] mod_proxy_fcgi.c(419): [client 92.195.83.223:55854] AH01062: sending env var 'PATH_TRANSLATED' value '/var/www/nextcloud.dev.lordcritical.de/htdocs/apps/notifications/api/v2/notifications'


Hope that helps.
Comment 3 Jacob Champion 2017-06-26 16:21:26 UTC
(In reply to Thomas Stein from comment #2)
> Hope that helps.

It does, thank you!