I have run into several errors with a site (but solely when accessed by Internet Explorer it seems. Here is the following Nginx error log:
2020/12/07 13:45:06 [error] 192900#192900: *9588 access forbidden by rule, client: 91.241.19.84, server: XXX, request: "POST /mifs/.;/services/LogService HTTP/1.1", host: "XXX", referrer: "https://XXX>
</Util/PHP/eval-stdin.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "XXX"
2020/12/07 13:45:12 [error] 192900#192900: *9596 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 91.241.19.84, server: XXX, request: "POST /vendor/phpunit/phpunit/src/Util/>
<Util/PHP/eval-stdin.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "XXX"
2020/12/07 13:45:14 [error] 192900#192900: *9599 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 91.241.19.84, server: XXX, request: "GET /vendor/phpunit/phpunit/src/Util/P<Util/PHP/eval-stdin.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "XXX"
2020/12/07 13:47:36 [error] 192900#192900: *9606 access forbidden by rule, client: 193.169.252.34, server: XXX, request: "GET /.env HTTP/1.1", host: "XXX", referrer: "https://www.google.com/"
I’m running Ubuntu 20.04. I’d appreciate any and all help, I’ve never had an issue like this before and I’m stuck as to where to begin.
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi,
If the errors are related just to IE, look for a directive blocking $http_user_agent in nginx configuration, especially in location ~ \.php$
Hi there @aaAnemone,
It looks like PHP FPM is not running. You can check that with the following command:
- sudo systemctl status php7.4-fpm.service
If this is the case you can start it with the following command:
- sudo systemctl start php7.4-fpm.service
Let me know how it goes! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.