Skip to content
Advertisement

Tag: nginx

Laravel and Nginx static files

So I am having a problem with getting Nginx to serve static files for my Laravel app. I can see in chrome’s dev tools that the requests are being made to the path, where those files should be (http://…

How to debug “FastCGI sent in stderr: Primary script unknown while reading response header from upstream” and find the actual error message?

SO has many articles mentioning this error code: That probably means that this error message is more or less useless. The message is telling us that the FastCGI handler doesn’t like whatever it was sent for some reason. The problem is that sometimes we have no idea what the reason is. So I’m re-stating the question — How do we

heroku local does not find pdo_postgres driver

I am trying to use heroku local on mac to run a Symfony project. But unfortunately it does not find the postgresql driver… which is found when I run php app/console server:run Here is the resulting output. How can I solve this? Answer Did you see these ? http://www.somacon.com/p520.php http://www.unixmen.com/solved-php-warning-module-pdo-already-loaded-in-unknown-on-line-0/ Point is that if you have postgres compiled into php

How to properly configure alias directive in nginx?

I have been trying to configure multiple webapp on my nginx webserver but I can’t get working one Laravel app that requires $document_root set to laravel public folder. I am currently trying to configure it using alias directive but for an obscure reason this doesn’t work. Here is what I am trying to do. To test my “alias” config I

Magento separate PHP-FPM group for admin

I run a Magento webstore with middling traffic levels, running on NGINX with PHP-FPM. The server environment is very powerful with plenty of overhead, so hardware is not a factor. We are getting timeouts and errors when running memory intensive operations in the backend, such as exports and some custom indexes. Ignoring writing more efficient code and increasing pool sizes

How to remove both .php and .html extensions from url using NGINX?

I want my nginx make display all url’s clean. http://www.mydomain.com/indexhtml.html as http://www.mydomain.com/indexhtml http://www.mydomain.com/indexphp.php as http://www.mydomain.com/indexphp With some research I’ve made the first case to work. It`s done by following configuration: It works for indexhtml.html displaying as indexhtml, but nothing happens with .php. If I change $uri.html to $uri.php, it works neither for .html, neither .php. I`ve tried to put something

File Not Found when running PHP with Nginx

Recently I installed the latest version of Nginx and looks like I’m having hard time running PHP with it. Here is the configuration file I’m using for the domain: } Here is the error I’m getting on the error log file: Answer Try another *fastcgi_param* something like

php-fpm and nginx session problems

I’ve been having this problem for the past week or so. I’ve been working on a PHP project that relies HEAVILY on Sessions. For some reason we’ve been having troubles with the sessions saving the past few days. Any idea why? Here’s the error: nginx version: PHP-FPM config: nginx.conf: Answer I found that my php.ini was attempting to save sessions

Advertisement