WordPress, Nginx, virtual robots.txt and 404

While working on my new site screenart.media I encountered a strange problem. I was wondering about the Google Search Console complaining that the robots.txt is throwing a 404. But I could see the correct content in the browser! The following was kind of unexpected.
Continue reading

WordPress, HTTP Error, 413 Request Entity Too Large

After moving my WordPress site from a LAMP to a LEMP stack (replacing Apache with Nginx), I wanted to upload some new images – but I couldn’t. I either got a “HTTP Error” or “413 Request Entity Too Large“. So I started my research.

Continue reading

Access to the script ‘xxx’ has been denied (see security.limit_extensions)

I was using my project framework for months now. After becoming a freelancer again I began setting up my infrastructure via cloud services and VMs at Digital Ocean.

Yesterday I wanted to install my project framework on a VM at DO. Basically everything went fine – until I tried to actually run a PHP script. Nginx gave me this:

==> …/var/log/nginx/magento.error.log <==
2015/11/25 07:17:36 [error] 8006#0: *1 FastCGI sent in stderr: "Access to the script '…/magento' has been denied (see security.limit_extensions)" while reading response header from upstream, client: x.x.x.x, server: …, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://unix:…/var/run/php5-fpm.sock:", host: "…"

Continue reading