> Am 01.09.2022 um 11:05 schrieb Mischa <[email protected]>:
> 
> Those are indeed reasons for it to present the error.
> In my experience this also happens when a non-existent PHP script is 
> requested, as the match is on *.php.

I tried to create a testing setup to verify this, but I keep getting „Access 
denied“ or log entries such as "Access to the script '/test' has been denied 
(see security.limit_extensions)“ instead of „Primary script unknown“ if I 
request non-existant .php paths.

As I am still getting spurious „Primary script unknown“ entries I’ll try 
monitoring using:

tail -f /var/www/logs/error.log /var/www/logs/access.log

to see which requests led to these entries.

(Having timestamps in error.log would make this so much easier!)

Mike

> 
> Mischa
> 
> On 2022-09-01 10:41, Mike Fischer wrote:
>> This happens when PHP-FPM can’t find the script to execute.
>> One reason could be that you fiddled with the settings and let PHP-FPM run 
>> without chroot(2), while httpd(8) is running with chroot(2).
>> But it might also be a misconfiguration of in httpd.conf. Not sure about all 
>> of the potential reasons but I occasionally see this error as well on a 
>> setup which should be configured correctly. I have not checked wether some 
>> spurious external HTTP requests could be causing this.
>> My httpd.conf basically looks like this:
>> server "servername.example.com" {
>>    …
>>    location "*.php" {
>>        fastcgi socket "/run/php-fpm.sock"
>>    }
>> }
>> It’s a bit sad that these logs don’t contain timestamps. Makes matching 
>> against access logs harder.
>> HTH
>> Mike
>>> Am 01.09.2022 um 10:12 schrieb [email protected]:
>>> Hello
>>> OBSD 7.1 amd64, vultr vm:
>>> This is my httpd error.log, does somebody know what is happening please?
>>> Primary script unknown
>>> Primary script unknown
>>> Primary script unknown
>>> Primary script unknown
>>> Primary script unknown
>>> Primary script unknown
>>> Primary script unknown
>>> Primary script unknown
>>> Primary script unknown
>>> Primary script unknown
>>> Primary script unknown
>>> Primary script unknown
>>> Primary script unknown
>>> Primary script unknown
>>> Primary script unknown

Reply via email to