Can't upload any files with "php" in the name

Nextcloud version (eg, 12.0.2): 17.0.2
Operating system and version (eg, Ubuntu 17.04): CentOS 7
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.6
PHP version (eg, 7.1): 7.2.24

The issue you are facing:
All files that have “php” in the name (especially the extension), don’t get uploaded. The logs indicate that “remote.php” is trying to execute the

Is this the first time you’ve seen this error? (Y/N): N
I reported this issue a few months ago Exception: The requested uri cannot be processed by the script

Steps to replicate it:

  1. Have a file or folder with “php” in the name or extension

The output of your Nextcloud log in Admin > Logging:
Large log file here https://1drv.ms/u/s!Ai1uP0zD8LSwgcyERkK5h7RPxO7m0d4

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'oczig1kk2j1v',
  'passwordsalt' => ,
  'secret' => ,
  'trusted_domains' => 
  array (

  ),
  'datadirectory' => '/mnt/storage/nextcloud',
  'overwrite.cli.url' => '',
  'htaccess.RewriteBase' => '/nextcloud',
  'overwritewebroot' => '/nextcloud',
  'overwriteprotocol' => 'https',
  'dbtype' => 'mysql',
  'version' => '17.0.2.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'dbuser',
  'dbpassword' => '',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
  ),
  'mail_from_address' => '',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '',
  'mail_smtpport' => '',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
  'mysql.utf8mb4' => true,
);

The output of your Apache/nginx/system log in /var/log/____:
Large apache access log here: https://1drv.ms/u/s!Ai1uP0zD8LSwgcyERkK5h7RPxO7m0d4?e=pg4xlz
The error log doesn’t have much: https://1drv.ms/u/s!Ai1uP0zD8LSwgcyERkK5h7RPxO7m0d4?e=pg4xlz

Could not reproduce this on 17.0.2 and 18.0.0 beta 4, when uploading files in the web gui. If you are using the client, there is a setting to ignore certain files.

Had to reinstall nextcloud-server. Not sure why, but the client and web gui don’t have any complains now.