Now getting "No input file specified." in all cases - when i specify domain/index.php and when i dont specify php file.
(attached configs spit out that)
And log contains following: Unable to open primary script: /www/mixx_nabytok//www/mixx_nabytok/index.php
When i change httpd-ssl.conf to
Code:
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php-fpm.sock|fcgi://localhost/"
</FilesMatch>
Also changed permissions for /www/mixx_nabytok using chmod -R a+rwx /www
(i'll tune that later back to original minimal permission state)
Worker log spitted out following:
[04-Oct-2019 09:32:27] WARNING: [pool www] child 25325 said into stderr: "NOTICE: PHP message: PHP Warning: Unknown: failed to open stream: No error: 0 in Unknown on line 0"
[04-Oct-2019 09:32:27] WARNING: [pool www] child 25325 said into stderr: "ERROR: Unable to open primary script: //www/mixx_nabytok/index.php (No error: 0)"
[04-Oct-2019 09:32:28] WARNING: [pool www] child 25325 said into stderr: "NOTICE: PHP message: PHP Warning: Unknown: failed to open stream: No error: 0 in Unknown on line 0"
[04-Oct-2019 09:32:28] WARNING: [pool www] child 25325 said into stderr: "ERROR: Unable to open primary script: //www/mixx_nabytok/index.php (No error: 0)"
There is double slash in the beggining, so updated httpd-ssl.conf to:
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php-fpm.sock|fcgi://localhost"
</FilesMatch>
[Fri Oct 04 09:35:03.332957 2019] [proxy_fcgi:error] [pid 25400:tid 34386254080] [client 194.160.184.40:60454] AH01071: Got error 'PHP message: PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0Unable to open primary script: proxy:fcgi:/localhost//www/mixx_nabytok/index.php (No such file or directory)'
[Fri Oct 04 09:35:48.031532 2019] [proxy_fcgi:error] [pid 25425:tid 34385931776] [client 194.160.184.40:60460] AH01071: Got error 'PHP message: PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0Unable to open primary script: /www/mixx_nabytok/index.php (No such file or directory)'
[Fri Oct 04 09:37:01.031934 2019] [proxy_fcgi:error] [pid 25475:tid 34370614016] [client 194.160.184.40:60494] AH01071: Got error 'PHP message: PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0Unable to open primary script: /www/mixx_nabytok/index.php (No such file or directory)'
The path is ok now, even user chown -R www /www
But still getting same error message when accessing the page
Also cgi.fix_pathinfo=1 is in php.ini
..... why basic freebsd programs installations and configurations can't be same painless as in windows :-(