Hi All, After debugging for 6-hours - I am giving this up :| We have a nginx+php-fpm+mysql in LAN with almost 100 wordpress (created and used by different designers/developers all working on test wordpres setup) We are using nginx without any issues from long. Today, all of a sudden - nginx started returning "504 Gateway Time-out" out of the blue... I checked nginx error lby rahul286 - How to...
Hi All, We have moved all websites/portals we have to the nginx over the time except our SVN repo. I tried many times but failed to find a good solution to get SVN working on Nginx. Please be noted accessing SVN from browser is important for us using URLs like http://svn.example.com/myrepo/trunk/ Is there any way to achieve this without using Apache? If not, how to use apache in baby rahul286 - How to...
> > You think in a backward logic. Try a forward logic: what should be done for Agree with this! As a general rules, when writing nginx config, we better think from *scratch *. It happened to me that I came across some very complex apache rules and ended up sitting idle because I couldn't find their direct conversion in nginx. But then one day, I just analyzed input used and output producby rahul286 - Nginx Mailing List - English
@Mark > Use php-fpm and setup one pool per user. That's all the suexec you need :) You hit the bulls-eye! This is something I was looking for so long. And after my first use of php-fpm 2-3 days back, this "pool" setting caught my eyes. We have already written php-cli scripts to create virtual hosts (domain config) in nginx. Also we wrote some scripts for one-click wp installer asby rahul286 - Nginx Mailing List - English
Hi Eric, > Yes! wondering if they all work together. hoping that it will not > sublime it's ops. I decided NOT to use memcache. Memcache is good for distributed environment. I am using APC for php opcode cache and user-data as well. In case of w3 total cache plugin, APC can also be used as page-cache instead of hard-disk. Now only confusion, I am in is nginx fastcgi_cache. In theory, andby rahul286 - Nginx Mailing List - English
Thanks All. Moved to PHP-FPM and also removed (purged) unwanted php-extensions. I am using php 5.3.2 and I read somewhere that pm = dynamic feature should be used in PHP-FPM only if PHP > 5.3.3. Should I wait , or go ahead with Reinis Rozitis settings... > pm = dynamic > pm.max_children = 70 > pm.start_servers = 20 > pm.min_spare_servers = 5 > pm.max_spare_servers =by rahul286 - Nginx Mailing List - English
Noticed these lines in file - php5-fpm.conf ====START==== ; Sets the number of server processes created on startup. ; Used only with 'dynamic' pm.style ; default : min_spare + (max_spare - min_spare) / 2 ; ;pm.start_servers = 20 ====END==== Following line can be simplified... ; default : min_spare + (max_spare - min_spare) / 2 to ; default : (max_spare + min_spare) / 2 Nothing wrong aboutby rahul286 - Php-fpm Mailing List - English
I manage to write working nginx conf for w3 total cache last night. Posted it on my blog - http://wpveda.com/nginx-rewrite-rules-for-w3-total-cache-plugin/by rahul286 - How to...
@jerome >I don't know if it's possible yet, I have to check it out and think >about it. Since FPM has a different design than the php-f?cgi, it's >time to make a new request on bugs.php.net for FPM (not for php-cgi) I am using PHP version 5.2.10-2ubuntu6.4 Which is better in this case? php-FPM or php-fcgi? Thanks, Rahul _______________________________________________ nginx mailing lisby rahul286 - Nginx Mailing List - English
> the FCGI_OVERLOADED (according to fcgi spec) feature.. to let the webserver > know sooner that there aren't enough resources on the backend to process the > request rather than after timeouts My purpose of starting this thread is the same as FCGI_OVERLOADED. I want to tweak my server before it gets overloaded. Thanks to nginx, I haven't faced any downtime in months. :) (Apart from onby rahul286 - Nginx Mailing List - English
@ Reinis > And in case you use FPM even the variable PHP_FCGI_CHILDREN has become > deprecated as the new syntax for process management is something like.. > and @ jerome > make pm.start_servers greater than pm.min_spare_servers and lower than > pm.max_spare_servers > I am not using FPM as of now. But I will keep configuration given by you guys with me and will definitely useby rahul286 - Nginx Mailing List - English
Piotr Karbowski Wrote: ------------------------------------------------------- > Php use ~22M of ram > 16.5 MiB + 5.4 MiB = 21.9 MiB php-cgi (11) > And nginx ~5M > 2.9 MiB + 1.4 MiB = 4.4 MiB nginx (7) > (base on ps_mem.py script). I ran ps_mem.py And found... 5.5 MiB + 992.5 KiB = 6.4 MiB nginx (9) 49.1 MiB + 60.7 MiB = 109.7 MiB php-cgi (6) I guessby rahul286 - Nginx Mailing List - English
Piotr Karbowski Wrote: ------------------------------------------------------- > nginx workers is one thing and php another. You > host only php or also static files? I agree with you completely. I am running a wordpress(es) only as PHP application. All wordpress static content like images, js/css files are served via CDN. So as far as typical static content is concerned nginx havby rahul286 - Nginx Mailing List - English
@jerome > no i mean memory used by the kernel to cache local files in order not > to access file on hardrive. see output of free, the column "cached" I already have that Cache it seems. Following is my output of Free command. root@rtblogs:~# free total used free shared buffers cached Mem: 1451740 483524 968216 0 611by rahul286 - Nginx Mailing List - English
Hi jerome All your points duly noted. :) Revising all again... *worker_connections = 2048 *I have its value 1024 (nginx default I guess) I have one very important question here. When we say server load - we mean number of HTTP requests. right? Number of unique pageviews and other sweet number shown by Google Analytic wont be helpful, atleast directly. Is setting up this number very high - like 2by rahul286 - Nginx Mailing List - English
> > So each pool can share. I don't think APC is global cross all pools > however it might be, because when I do apc_info() or whatever the > function is, I see other people's files (in different pools) in my > file cache. > In my case my VPS is hosting few domains with single user www-data. PHP, webroot, files all are owned as well as forked by this single user. I guess u meanby rahul286 - Nginx Mailing List - English
Thanks Reinis for your time and valuable info. > The preferred way (especially for high concurrency) is to spawn the php as permanent process and > the webserver (nginx) talks to it through fastcgi ( http://wiki.nginx.org/NginxHttpFcgiModule ) I have setup my nginx as mentioned here - http://wiki.nginx.org/NginxHttpFcgiModule And I guess for this reason my APC cache is working fine! :)by rahul286 - Nginx Mailing List - English
@Michael Thanks again for heads up on PHP-FPM I am reading your post - http://michaelshadle.com/2010/05/21/php-fpm-and-nginx-upstart-scripts/ I hope to see our server using PHP-FPM next month (with ubuntu 10 +wordpress 3) -Rahul On Tue, Jun 15, 2010 at 11:48 PM, Michael Shadle <mike503@gmail.com> wrote: > php-fpm is an actual management daemon, as opposed to using spawn-fcgi > whicby rahul286 - Nginx Mailing List - English
>php-fpm is an actual management daemon... Thanks for details regarding PHP-FPM When I bumped into it first time, I thought its overhead - more like some people using lighthppd for running PHP on nginx. I will definitely try it but I still looking for equation to set numbers like worker_processes, worker_connections & PHP_FCGI_CHILDREN (or PHP_FPM counterpart) perfectly. On Tue, Jun 15by rahul286 - Nginx Mailing List - English
Thanks Reinis. Regarding... >> [*] Is it good to make PHP_FCGI_CHILDREN = 1 if I am using APC >> for PHP opcode caching? >No. I read somewhere that 2 PHP processes do not share APC cache. So if I have 10 PHP_FCGI_CHILDREN - that means 10 times cache size. On > I would suggest to give it a try to the new FPM sapi/manager which is now included also in 5.3.x core. I do not usby rahul286 - Nginx Mailing List - English
First - all my servers are running fine. Thanks a ton to nginx! Lately, I have been brainstorming a lot on 3 configuration variables to squeeze maximum performance that I can get from my hardware. 3 variables of my interest are: [*] worker_processes [*] worker_connections [*] PHP_FCGI_CHILDREN I searched extensively on Google, mailing lists, wiki, etc but till date couldn't find any rby rahul286 - Nginx Mailing List - English
Hi, I am administrating many wordpress MU site with very heavy traffic. I typically work on Ubuntu+Nginx+PHP FastCGI+Wordpress+Wp-Super Cache and I am really impressed with overall performance. Now some sites are growing more and more, and I guess replacing "Wp-Super-Cache" with "W3 Total Cache" will be a big added bonus. My biggest problem is that "W3 Total Cache&qby rahul286 - How to...
I am having tough time migrating following rewrite rule over nginx. RewriteRule ^trans/(.+?)/(.*?)$ wp-content/plugins/best-seo-itranslator-for-wordpress/translonator.php?act=doTranslatePage&lang=$1&dir=$2 Can anyone help me please? Thanks, -Rahul -- http://devilsworkshop.org/ _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/lby rahul286 - Nginx Mailing List - English
Hey guys. I just configured bbPress (once again) with nginx. I am running into an issue as described below. I have following lines in my nginx config with some other lines... location / { root /PATH/TO/rtforums.com; index index.php index.html index.htm; autoindex on; if (!-e $request_filename) { rewrite ^/topic/(.*)$ /topiby rahul286 - How to...
UPDATE: >Probably, you should say wordpress about SERVER_NAME: >fastcgi_param SERVER_NAME $host; It worked! I came to resolve issue again and saw it has solved. Last thing I changed on last weekend was "fastcgi_param SERVER_NAME $host;" line. I guess I should have cleared cache at that time! Thanks all! :-) -- Rahul Bansal | Founder & CEO | rtCamp Solutionsby rahul286 - Nginx Mailing List - English
Hi Igor, >Probably, you should say wordpress about SERVER_NAME: >fastcgi_param SERVER_NAME $host; Practically it didnt work. :-( Logically I expected it to work. I will dig into wordpress to see what is the problem. Thanks, -Rahul On Sun, Dec 13, 2009 at 1:21 PM, Igor Sysoev <igor@sysoev.ru> wrote: > On Sun, Dec 13, 2009 at 01:12:12PM +0530, Rahul Bansal wrote: >by rahul286 - Nginx Mailing List - English
Hi Igor, > > For some reason that I cannot explain (lack of my knowledge may be) I need > > server_name to reflect http_host value. > > Where do you use this server_name ? I am not using "server_name" explicitly anywhere. Earlier some logs and a cookies my PHP site showing host part as "_" when I set "server_name _". Now I removed server_name andby rahul286 - Nginx Mailing List - English
Hi Merlin, Thanks for ur reply. But can I do something like "set server_name $http_host"? For some reason that I cannot explain (lack of my knowledge may be) I need server_name to reflect http_host value. Is there any workaround which just works with nginx 0.7. Thanks, -Rahul On Sat, Dec 12, 2009 at 5:49 AM, merlin corey <merlincorey@dc949.org> wrote: > Hello, > >by rahul286 - Nginx Mailing List - English
@Jeff I moved ur patched codes (for blog.php) file towards the end - just before readfile() function and it worked much better. Earlier files were being served through nginx server every time since we were making exit before "Conditional GET" codes. Now with this change I am able to get "304 Not Modified" as per my expectation (example you can see below) HTTP/1.1 304by rahul286 - Nginx Mailing List - English
> you can configure the expires via > http://wiki.nginx.org/NginxHttpHeadersModule#expires I did it and it worked. But then I moved following 3 lines above "X-Accel-Redirect" code block in wordpress' blogs.php @header( "Last-Modified: $last_modified GMT" ); @header( 'ETag: ' . $etag ); @header( 'Expires: ' . gmdate('D, d M Y H:i:s', time() + 100000000) . ' GMTby rahul286 - Nginx Mailing List - English