<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Homo-Adminus Blog - Latest Comments in Nginx With PHP As FastCGI Howto</title><link>http://homo-adminus.disqus.com/</link><description></description><atom:link href="https://homo-adminus.disqus.com/nginx_with_php_as_fastcgi_howto/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 10 Aug 2008 18:09:09 -0000</lastBuildDate><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460502</link><description>&lt;p&gt;У нас обычно nginx проксирует запросы к нескольким монгрелам, поэтому отдельный порт не укажешь.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">maxlapshin</dc:creator><pubDate>Sun, 10 Aug 2008 18:09:09 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460503</link><description>&lt;p&gt;этот вариант только если в проекте допускаются флэшки. ЩАс пока у нас сделали так что к апачу можно пробиться вне ngnix по нестандартному порту и через него работаем с нашим аплоадером.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">_kT</dc:creator><pubDate>Sun, 10 Aug 2008 18:02:59 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460500</link><description>&lt;p&gt;Искренне рекомендую пользоваться swfupload&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">maxlapshin</dc:creator><pubDate>Sun, 03 Aug 2008 03:51:40 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460501</link><description>&lt;p&gt;Здравстуйте. У ngnix я заметил такой недостаток как то, что он делает буферизацию пост запросов, а в моих сайтах часто используюся аплоады прогресс бары и из - за этой буферизации скрипты полчуют в tmp уже полность загруженный файл, то есть поргресс бар стоит на нуле а птом сразу 100%&lt;/p&gt;&lt;p&gt;Есть ли у ngnix какая - нид возможность отключить будеризацию пост запросос и сразу направлять их php&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">_kT</dc:creator><pubDate>Mon, 28 Jul 2008 08:08:48 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460499</link><description>&lt;p&gt;Помогите передать бэкенду PHP заголовок запроса "If-Modified-Since", спасибо за статью, но мало чем помогло в моем случае.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">йожег</dc:creator><pubDate>Tue, 08 Jul 2008 03:31:48 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460498</link><description>&lt;p&gt;спасибо за статью.&lt;br&gt;очень полезно&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zhito</dc:creator><pubDate>Thu, 05 Jun 2008 09:17:25 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460496</link><description>&lt;p&gt;If you want to use alias + fastcgi, you could add something like this into config:&lt;/p&gt;&lt;p&gt;    location /gallery2-base/ {&lt;br&gt;        alias /usr/share/gallery2/;&lt;br&gt;        index index.php index.html index.htm;&lt;br&gt;    }&lt;/p&gt;&lt;p&gt;    location ~ /gallery2-base/.*\.php$ {&lt;br&gt;        if ($fastcgi_script_name ~ /gallery2-base(/.*\.php)$) {&lt;br&gt;            set $valid_fastcgi_script_name $1;&lt;br&gt;        }&lt;br&gt;	fastcgi_pass   127.0.0.1:9000;&lt;br&gt;	fastcgi_index  index.php;&lt;br&gt;	fastcgi_param  SCRIPT_FILENAME  /usr/share/gallery2$valid_fastcgi_script_name;&lt;br&gt;	include /etc/nginx/fastcgi_params;&lt;br&gt;    }&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Denis</dc:creator><pubDate>Thu, 29 May 2008 02:23:14 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460497</link><description>&lt;p&gt;hello do you know how to add 1 alias that will affect to all vhost?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">donie</dc:creator><pubDate>Sun, 11 May 2008 01:17:30 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460494</link><description>&lt;p&gt;Здраствуйте, у меня к вам вопрос, я сделал всё как вы описали в этой статье, но почему то через некоторое время nginx выдает bad gateway, в качестве сревера стоит spawn-fcgi , такое ощущение что cgi сервер коннекты намеренно отбрасывает, перелопатил весь конфиг nginx но проблемы так и не решил&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anton</dc:creator><pubDate>Thu, 10 Apr 2008 08:23:04 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460493</link><description>&lt;p&gt;Здравствуйте Алексей.. &lt;br&gt;Если не затруднит, подскажите пожалуйста.. имеет-ли смысл играть с директивами буферизации (proxy_buffers, proxy_buffer_size) при проксировании на fastcgi.. ?&lt;br&gt;Заранее благодарю..&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">garrotte</dc:creator><pubDate>Wed, 12 Mar 2008 20:27:22 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460492</link><description>&lt;p&gt;Уважаемые подскажите!&lt;/p&gt;&lt;p&gt;Скрипт запуска Fast CGI (который представлен в этой статье) - не полный, у него отсутствует нижняя часть!&lt;/p&gt;&lt;p&gt;Подскажите пожалуйста , где взять этот скрипт полностью?&lt;/p&gt;&lt;p&gt;Большое спасибо&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">e_nagual</dc:creator><pubDate>Fri, 07 Mar 2008 02:39:44 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460491</link><description>&lt;p&gt;Please respond to this comment by also CCing me. Because you don't have other kind of subscription.&lt;/p&gt;&lt;p&gt;Thank you for posting this. But I think it is a bit complex.&lt;/p&gt;&lt;p&gt;1. What if I want to run PHP through nginx but without fastcgi (which is way too painful for anything beyond the basic PHP functionality).&lt;/p&gt;&lt;p&gt;2. Also, in my Apache the "DefaultType" is PHP. So I have many programs without a ".php" configuration. In your example config, you tell nginx to serve php files based on the file-extension (.php). Can I tell nginx to serve php files based on "Type" and not the "File Extension"?&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Erick</dc:creator><pubDate>Mon, 18 Feb 2008 03:49:02 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460490</link><description>&lt;p&gt;sewerson - thank you for solve!!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dimian</dc:creator><pubDate>Mon, 10 Dec 2007 02:27:30 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460488</link><description>&lt;p&gt;solved! make sure that &lt;br&gt;fastcgi_param  SCRIPT_FILENAME&lt;br&gt;points to the right directory where your script is located. this solved the issue for me!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sewerson</dc:creator><pubDate>Wed, 05 Dec 2007 08:40:33 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460489</link><description>&lt;p&gt;your article is nice but does not work. lots of people are experiencing the same error "No input file specified." - do you have a solution for that?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sewerson</dc:creator><pubDate>Mon, 03 Dec 2007 09:26:28 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460487</link><description>&lt;p&gt;Кстати да, я до сих пор понять не мог, почему у меня к htc файлам доступ запрещен. А без них верстка под IE6 становится не особо... Кто-нибудь знает, как победить эту проблему? похоже, не у меня одного она.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alinaki</dc:creator><pubDate>Sun, 18 Nov 2007 05:40:31 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460486</link><description>&lt;p&gt;please tell me how to solve the problem,I have waited for the answer for a month.Please.&lt;/p&gt;&lt;p&gt;thanks&lt;br&gt;There’s a question I have to ask.&lt;br&gt;My php scripts are in /var/www/my/,so I created a alias for them.&lt;br&gt;Content:&lt;br&gt;location /my/&lt;br&gt;{&lt;br&gt;alias /vaw/www/my/;&lt;br&gt;}&lt;br&gt;After running, I noted that the html files can be excuted properly,but the php files can not be found and excuted.Text from the server is “No input file specified”.Please tell how to set this kind of alias.&lt;br&gt;Forgive my pool English.&lt;br&gt;By the way,the php scritps in /var/ww/html(my root document) can be excuted properly.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rick</dc:creator><pubDate>Tue, 13 Nov 2007 02:31:41 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460485</link><description>&lt;p&gt;Поставил себе тоже этот nginx+fastcgi php5+mysql5+eaccelerator&lt;/p&gt;&lt;p&gt;все вроде бы работает, но есть вопрос такой:&lt;/p&gt;&lt;p&gt;у меня 5виртуальных хостов&lt;br&gt;но пхп работает только если прописать путь аналогичный&lt;br&gt; fastcgi_param  SCRIPT_FILENAME  /usr/local/nginx/html$fastcgi_script_name;&lt;/p&gt;&lt;p&gt;где этот путь является путем до одно из хостов. т.е. если написать путь /корень/хост1&lt;/p&gt;&lt;p&gt;все хосты расположены так&lt;/p&gt;&lt;p&gt;корень - хост1&lt;br&gt;корень - хост2&lt;br&gt;и т.п.&lt;/p&gt;&lt;p&gt;если задать в параметре путь к корню то пхп пытается обработать тот файл что лежит в нем...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lecactus</dc:creator><pubDate>Mon, 12 Nov 2007 06:41:04 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460484</link><description>&lt;p&gt;Hello again,&lt;/p&gt;&lt;p&gt;Solved the problem by enabling logging on php (see php.ini) and then sending error out to a file. (See last line of the php start-up script, above.) The error message from php was that FCGI_WEB_SERVER_ADDRS was not set correctly.&lt;/p&gt;&lt;p&gt;Adding FCGI_WEB_SERVER_ADDRS="127.0.0.1" to the start-up script solved the problem.&lt;/p&gt;&lt;p&gt;Also note that the php-cgi binary should be used, not the regular php binary.&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Larry&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Larry Kluger</dc:creator><pubDate>Tue, 16 Oct 2007 11:05:20 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460482</link><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Thanks! Great post. Unfortunately, I'm seeing a nginx error: 2007/10/15 17:32:17 [error] 5093#0: *3381 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 69.2.2.2, server: &lt;a href="http://www.forum.server.com" rel="nofollow noopener" target="_blank" title="www.forum.server.com"&gt;www.forum.server.com&lt;/a&gt;, URL: "/index.php", upstream: "fastcgi://127.0.0.1:8888", host: "&lt;a href="http://www.forum.server.com" rel="nofollow noopener" target="_blank" title="www.forum.server.com"&gt;www.forum.server.com&lt;/a&gt;"&lt;/p&gt;&lt;p&gt;I installed the latest php, v2.2.0&lt;/p&gt;&lt;p&gt;Ideas much appreciated,&lt;/p&gt;&lt;p&gt;Larry&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Larry Kluger</dc:creator><pubDate>Mon, 15 Oct 2007 22:49:06 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460483</link><description>&lt;p&gt;thanks&lt;br&gt;There's a question I have to ask.&lt;br&gt;My php scripts are in /var/www/my/,so I created a alias for them.&lt;br&gt;Content:&lt;br&gt;location /my/&lt;br&gt;{&lt;br&gt;     alias /vaw/www/my/;&lt;br&gt;}&lt;br&gt;After running, I noted that the html files can be excuted properly,but the php files can not be found and excuted.Text from the server is "No input file specified".Please tell how to set this kind of alias.&lt;br&gt;Forgive my pool English.&lt;br&gt;By the way,the php scritps in /var/ww/html(my root document) can be excuted properly.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rick</dc:creator><pubDate>Fri, 12 Oct 2007 05:13:50 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460481</link><description>&lt;p&gt;Excellent tutorial Scoundrel. keep them coming.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Learn PHP</dc:creator><pubDate>Sun, 07 Oct 2007 19:03:54 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460478</link><description>&lt;p&gt;2Dmitry:&lt;/p&gt;&lt;p&gt;&amp;gt; ## number of request before php-process &lt;br&gt;&amp;gt; will be restarted&lt;br&gt;&amp;gt; PHP_FCGI_MAX_REQUESTS=1000&lt;/p&gt;&lt;p&gt;Вот оно - решение :-) Падает он незаметно именно после 1000 запросов в данном случае. Потому надо перезапускать или найти как отключить (может быть при 0 оно не будет его гасить).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scoundrel</dc:creator><pubDate>Wed, 04 Jul 2007 18:21:02 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460479</link><description>&lt;p&gt;To: toivo&lt;br&gt;&amp;gt; 1. PHP запущенный с ключем “-b” время от времени незаметно падает. Как решить не знаю.&lt;/p&gt;&lt;p&gt;Сталкнулся с такой же проблемой. Удалось решить?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dmitry</dc:creator><pubDate>Wed, 04 Jul 2007 13:56:46 -0000</pubDate></item><item><title>Re: Nginx With PHP As FastCGI Howto</title><link>http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/#comment-2460480</link><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I want to deleguate the rewrite rules of my vhosts to an other person who hasn't root privileges.&lt;br&gt;With Apache, it's possible to declare a dynamic configuration file htaccess in each web repository. And it's not necessary to restart the server when file has changed.&lt;br&gt;Is it possible to do it with Nginx ?&lt;/p&gt;&lt;p&gt;Best regards.&lt;/p&gt;&lt;p&gt;Jérémy.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeremy</dc:creator><pubDate>Mon, 02 Jul 2007 12:03:24 -0000</pubDate></item></channel></rss>