I have a peculiar situation that is only happening on the root domain and NOT subdomains.
For example, CraftCMS (2.6.3019) running on Apache with
php-fpm works fine on
test.some-domain.tld, but for
www.some-domain.tld it fails with:
No input file specified
In cPanel Apache log (
[Fri Aug 03 13:59:12.42352 2018] [proxy_fcgi:error] [pid 31552:tid 132443556343644] [client xxx.xxx.xxx.xxx:55292] AH01071: Got error 'Unable to open primary script: /home/USERNAME/public_html/production/current/html/index.php (No such file or directory)\n'
For identical installations for other subdomains, everything loads up and works great. There is no difference in
.htaccess or otherwise.
The only differential that we can figure must be something with how Apache's handling the root document location or permissions for the root domain... but we're not seeing anything.
For good measure, here's the
.htaccess contents (that are identical on the working subdomains and this failing root domain):
I thought that perhaps it was the
cgi.fix_pathinfo=1 setting for the
php.ini, but that also didn't resolve this.
cPanel support is saying it is absolutely a code issue, but we're pretty much convinced it's an Apache / cPanel issue. It would be nice to have some input on this since this particular incident of
No input file specified does not seem to match the others already found here and elsewhere on the web.