Drupal 8 PHP FPM Script Name update.php bug

Submitted by kevin on Tue, 08/09/2016 - 10:45

After the Owncloud PHP-FPM script name bug, i've found Drupal 8's update.php script uses a similar routing convention to OwnCloud's index.php/app/files.

With the generic ProxyPassMatch directive the response is a 404 Not Found for the second page of the update process update.php/selection:

ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9001/app/$1

This can be fixed by adding an explicit match statement for the update script:

ProxyPassMatch ^/update.php(/.*)?$ fcgi://127.0.0.1:9001/app/update.php$1
ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9001/app/$1

Tested with CentOS 6, Apache 2.4.6, PHP 7.0.8 through FPM using the above proxypassmatch statements.

Tags