To upgrade cms, I have a php file which is a phar file
(https://www.cmsmadesimple.org/downloads/cmsms/)
I leave it at the root of my site
When access to the file, an index.php is added at the end of the url Like that :
https://xx.domain.be/cmsms-2.2.12-install.php
become
https://xx.domain.be/cmsms-2.2.12-install.php/index.php
But nginx sends me an error : No input file specified.
I have to add a configuration for this url but I do not know what
Config nginx :
server {
listen 443 ssl;
server_name xxx.domain.be;
root /var/www/sites/xxx;
index index.html index.php;
location / {
# This is cool because no php is touched for static content.
# include the "?$args" part so non-default permalinks doesn't break when using query string
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
include fastcgi.conf;
fastcgi_intercept_errors on;
fastcgi_pass php;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
}
}
Thank you
I see nobody has answered - I was investigating the same problem when I came across your post. While I don't know what the solution is, I note your configuration only hands off .php files to the php interpreter. perhaps you need to add...
?