Get the most out of your Centmin Mod LEMP stack
Become a Member

Wordpress WP Multisite FastCGI issue on CentOS 7

Discussion in 'Blogs & CMS usage' started by AKIN SENOL, Feb 20, 2015.

  1. AKIN SENOL

    AKIN SENOL Member

    36
    3
    8
    Oct 17, 2014
    London
    Ratings:
    +8
    Local Time:
    4:53 AM
    1.9.12
    10.1.12
    I have one of problem until yesterday, firstly up to date from 1.7.9 to 1.7.10 via 123.08centos7beta01 (i get new version zip yesterday)
    After that downgrade from PHP 7.0 to 5.6.5 and randomly & frequently displaying;

    Running only Wordpress MultiSite /subdirectory
    "2015/02/19 15:17:20 [error] 2933#0: *1888 upstream sent unexpected FastCGI record: 3 while reading response header from upstream, client: xxx.xx.xxx.xxx, server:example.com, request: "GET /?action=login&dm=8c1d6207dc277c3c16374b1af26c966b&k=031b85c179efda0b06b6143365abb635&t=1142885400 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "example.com", referrer: "https:/example.com/" "

    error.

    Have you ever heard about it?

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,508
    12,132
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,675
    Local Time:
    1:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    moved your thread from intro forums to blog/cms forums ;)

    haven't seen that error as I have never used wordpress multi site unfortunately

    do you get any errors when you restart php-fpm service ?

    Code:
    servic e php-fpm restart
    or
    Code:
    fpmrestart
     
  3. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    11:53 AM
    Mainline
    10.2
    Use PHP 5.6.6 instead :)
     
  4. AKIN SENOL

    AKIN SENOL Member

    36
    3
    8
    Oct 17, 2014
    London
    Ratings:
    +8
    Local Time:
    4:53 AM
    1.9.12
    10.1.12
    I'm crossed that.

    That was from PageSpeed conf. I try Shard with HTTPS via CloudFlare.. I have signed RSA cert but you know CloudFlare with curl make huge problem. Anyway

    And the real problem is Shard, some (especially .js and webp or jpg) files on the shard link give to me 404.

    Code:
    pagespeed on;
    pagespeed ShardDomain https://realdomain.com https://cdn.shard.ed,https://cdnj.shard.ed,https://cdnja.shard.ed,https://cdnjb.shard.ed;
    pagespeed MapRewriteDomain https://realdomain.com https://www.realdomain.com;
    pagespeed MapOriginDomain "http://localhost" "https://realdomain.com";
    pagespeed Domain https://*.shard.ed;
    pagespeed Domain https://*.realdomain.com;
    pagespeed LoadFromFile "https://another.com/" "/home/nginx/domains/realdomain.com/public";
    
    pagespeed Disallow https://fonts.googleapis.com/*;
    pagespeed Disallow https://stats.wp.com/*;
    pagespeed Disallow https://secure.gravatar.com/*;
    pagespeed Disallow https://s0.wp.com/wp-content/*;
    pagespeed Disallow https://maps.google.com/maps/api/*;
    
    pagespeed LoadFromFileMatch "^https?://*.shard.ed/~([^/]*)/" "/home/nginx/domains/realdomain.com/public\\1";
    
    pagespeed BlockingRewriteKey "fullyoptimized";
    
    pagespeed Disallow "*/wp-admin/*";
    pagespeed Disallow "*/wp-login.php*";
    
    #######################################################
    # File cache settings
    ######################################
    # needs to exist and be writable by nginx
    
    # pagespeed FileCacheSizeKb          102400;
    # pagespeed FileCacheCleanIntervalMs 3600000;
    # pagespeed FileCacheInodeLimit      500000;
    
    #######################################################
    # Set it to 0 if you want to disable this feature.
    pagespeed MessageBufferSize 100000;
    
    #######################################################
    # By default, ngx_pagespeed adds an X-PageSpeed header with a value of the version of
    # ngx_pagespeed being used. This directive lets you specify the value to use instead:
    # pagespeed XHeaderValue "ngx_pagespeed";
    #######################################################
    # let's speed up PageSpeed by storing it in the super duper fast memcached
    # Ensure Memcached server installed http://centminmod.com/memcached.html
    # default install for centmin mod is on port 11211, so localhost:11211 is correct
    # uncomment - remove hash # in front of below 2 lines to enable
    # timeout set at 100 milliseconds
    #  pagespeed MemcachedThreads 1;
    #  pagespeed MemcachedServers "localhost:11211";
    #  pagespeed MemcachedTimeoutUs 100000;
    
    #######################################################
    ## https://developers.google.com/speed/pagespeed/module/admin#virtual-hosts-and-stats
    ######################################
    # pagespeed UsePerVhostStatistics on;
    
    #######################################################
    ## 1.7.30.1 beta defaults
    ######################################
    pagespeed PreserveUrlRelativity on;
    pagespeed MaxCombinedCssBytes -1;
    pagespeed ImageResolutionLimitBytes 16777216;
    pagespeed EnableFilters inline_google_font_css;
    
    #######################################################
    ## 1.6.29.3 beta defaults
    ######################################
    pagespeed AvoidRenamingIntrospectiveJavascript on;
    pagespeed ImageInlineMaxBytes 3072;
    pagespeed CssImageInlineMaxBytes 0;
    #pagespeed MaxInlinedPreviewImagesIndex -1;
    #pagespeed MinImageSizeLowResolutionBytes 3072;
    
    #######################################################
    ## ngx_pagespeed filters settings below ##
    ######################################
    
      # show half the users an optimized site, half the regular site
      # change UA-XXXXXXXXXX-1 to your GA unique id
      # uncomment - remove hash # in front of below 5 lines to enable
    #  pagespeed RunExperiment on;
    #  pagespeed AnalyticsID UA-XXXXXXXXXX-1;
    #  pagespeed ExperimentVariable 1;
    #  pagespeed ExperimentSpec "id=1;percent=50;level=CoreFilters;enabled=collapse_whitespace,remove_comments;";
    #  pagespeed ExperimentSpec "id=2;percent=50";
    
    #Include JavaScript Source Maps
    #https://developers.google.com/speed/pagespeed/module/filter-source-maps-include
    pagespeed EnableFilters include_js_source_maps;
    
      # Filter settings
      # https://developers.google.com/speed/pagespeed/module/filter-attribute-elide
       pagespeed EnableFilters elide_attributes;
    
      # https://developers.google.com/speed/pagespeed/module/filter-dedup-inlined-images
       pagespeed EnableFilters dedup_inlined_images;
    
      # filters outlined at http://ngxpagespeed.com/ngx_pagespeed_example/
      pagespeed RewriteLevel CoreFilters;
      pagespeed EnableFilters collapse_whitespace,remove_comments;
    
      # make_google_analytics_async
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-make-google-analytics-async
    #  pagespeed EnableFilters make_google_analytics_async;
    
      # prioritize_critical_css
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-prioritize-critical-css
       pagespeed EnableFilters prioritize_critical_css;
    
      # move_css_to_head
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-to-head
      pagespeed EnableFilters move_css_to_head;
    
      # move_css_above_scripts
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-above-scripts
      pagespeed EnableFilters move_css_above_scripts;
    
      # combine_css
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-combine
      pagespeed EnableFilters combine_css;
    
       # Uncomment this if you want to prevent mod_pagespeed from combining files
       # (e.g. CSS files) across paths
       #
      pagespeed CombineAcrossPaths off;
    
      # combine_javascript
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-js-combine
      pagespeed EnableFilters combine_javascript;
      pagespeed MaxCombinedJsBytes 140000;
      pagespeed EnableFilters defer_javascript;
    
      # extend_cache
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-cache-extend
      pagespeed EnableFilters extend_cache;
    
      # rewrite_css
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-rewrite
      pagespeed EnableFilters rewrite_css;
    
      # rewrite_javascript
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-js-minify
      pagespeed EnableFilters rewrite_javascript;
    
      # inline_javascript
      # https://developers.google.com/speed/pagespeed/module/filter-js-inline
      pagespeed EnableFilters inline_javascript;
    
      # inline_preview_images
      # https://developers.google.com/speed/pagespeed/module/filter-inline-preview-images
      pagespeed EnableFilters inline_preview_images;
    
      # resize_mobile_images
      # https://developers.google.com/speed/pagespeed/module/filter-inline-preview-images#resize_mobile_images
      pagespeed EnableFilters resize_mobile_images;
      pagespeed MaxInlinedPreviewImagesIndex 6;
      pagespeed MinImageSizeLowResolutionBytes 3072;
    
      # lazyload_images
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-lazyload-images
      pagespeed EnableFilters lazyload_images;
      pagespeed LazyloadImagesAfterOnload off;
    
      # rewrite_images
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-image-optimize
       pagespeed EnableFilters rewrite_images;
      #pagespeed DisableFilters rewrite_images;
      #pagespeed DisableFilters recompress_images;
      #pagespeed DisableFilters convert_png_to_jpeg;
      #pagespeed DisableFilters extend_cache_images;
      pagespeed EnableFilters convert_png_to_jpeg;
      pagespeed EnableFilters convert_jpeg_to_webp;
      pagespeed EnableFilters convert_to_webp_lossless;
    
      # sprite_images
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-image-sprite
    pagespeed EnableFilters rewrite_css,sprite_images;
    
      # Bound the number of images that can be rewritten at any one time; this
      # avoids overloading the CPU.  Set this to 0 to remove the bound.
      #
    #  pagespeed ImageMaxRewritesAtOnce 2;
    
      # insert_dns_prefetch
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-insert-dns-prefetch
    #  pagespeed EnableFilters insert_dns_prefetch;
    
      # InPlaceResourceOptimization
      # https://developers.google.com/speed/pagespeed/module/system#ipro
      # Enabled by default as of 1.9.32.1
      pagespeed InPlaceResourceOptimization off;
    I'm happy on PHPNG @RoldanLT , because which results is correct :) https://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CCgQFjAB&url=https://community.centminmod.com/threads/php-5-7-almost-2x-times-faster-than-php-5-6.888/&ei=G6rmVPHDI5btauWpgPgB&usg=AFQjCNH2bBvk2-KeINHysh66W8JdxA4c1g&sig2=rhkncI3IlUU5NOIR_VJ4KQ&bvm=bv.86475890,d.d2s