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

Wordpress Issue With Wordpress + Nginx + fastcgi_cache

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Pornucopia, Feb 26, 2016.

  1. Pornucopia

    Pornucopia New Member

    6
    1
    3
    Oct 4, 2014
    Ratings:
    +1
    Local Time:
    9:31 PM
    Hi All,

    Been working on this using the guide here:

    Nginx Wordpress Configuration - CentminMod.com LEMP Nginx web stack for CentOS

    Got down to the end of section 2 and when it is time to restart Nginx it fails:

    [root@vmd ~]# systemctl status nginx.service
    ‚óŹ nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
    Loaded: loaded (/etc/rc.d/init.d/nginx)
    Active: failed (Result: exit-code) since Thu 2016-02-25 16:38:23 UTC; 13s ago
    Docs: man:systemd-sysv-generator(8)
    Process: 18058 ExecStop=/etc/rc.d/init.d/nginx stop (code=exited, status=0/SUCCESS)
    Process: 18475 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
    Main PID: 17995 (code=exited, status=0/SUCCESS)

    Feb 25 16:38:23 # systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
    Feb 25 16:38:23 # nginx[18475]: Starting nginx: nginx: [emerg] unknown directive "pagespeed" in /usr/local/nginx/conf/pagespeed.conf:1
    Feb 25 16:38:23 # nginx[18475]: [FAILED]
    Feb 25 16:38:23 # systemd[1]: nginx.service: control process exited, code=exited status=1
    Feb 25 16:38:23 # systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Feb 25 16:38:23 # systemd[1]: Unit nginx.service entered failed state.
    Feb 25 16:38:23 # systemd[1]: nginx.service failed.



    Feb 25 16:38:23 # systemd[1]: nginx.service: control process exited, code=exited status=1
    Feb 25 16:38:23 # systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    -- Subject: Unit nginx.service has failed
    -- Defined-By: systemd
    -- Support: systemd-devel Info Page
    --
    -- Unit nginx.service has failed.
    --
    -- The result is failed.
    Feb 25 16:38:23 # systemd[1]: Unit nginx.service entered failed state.
    Feb 25 16:38:23 # systemd[1]: nginx.service failed.
    Feb 25 16:38:23 # polkitd[455]: Unregistered Authentication Agent for unix-process:18470:7814772 (system bus name :1.420, object path /org/freedesktop/Policy
    Feb 25 16:40:00 # NetworkManager[397]: <info> Auto-activating connection 'Wired connection 1'.
    Feb 25 16:40:00 # NetworkManager[397]: <info> (eth1): Activation: starting connection 'Wired connection 1' (a996cedb-ab0d-405d-8c59-f4f7f4ef318f)
    Feb 25 16:40:00 # NetworkManager[397]: <info> (eth1): device state change: disconnected -> prepare (reason 'none') [30 40 0]
    Feb 25 16:40:00 # NetworkManager[397]: <info> (eth1): device state change: prepare -> config (reason 'none') [40 50 0]
    Feb 25 16:40:00 # NetworkManager[397]: <info> (eth1): device state change: config -> ip-config (reason 'none') [50 70 0]
    Feb 25 16:40:00 # NetworkManager[397]: <info> Activation (eth1) Beginning DHCPv4 transaction (timeout in 45 seconds)
    Feb 25 16:40:00 # NetworkManager[397]: <info> dhclient started with pid 18497
    Feb 25 16:40:00 # dhclient[18497]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6 (xid=0x60a137ea)
    Feb 25 16:40:01 # systemd[1]: Started Session 175 of user root.
    -- Subject: Unit session-175.scope has finished start-up
    -- Defined-By: systemd
    -- Support: systemd-devel Info Page
    --
    -- Unit session-175.scope has finished starting up.
    --
    -- The start-up result is done.
    Feb 25 16:40:01 # systemd[1]: Starting Session 175 of user root.
    -- Subject: Unit session-175.scope has begun start-up
    -- Defined-By: systemd
    -- Support: systemd-devel Info Page
    --
    -- Unit session-175.scope has begun starting up.
    Feb 25 16:40:01 # CROND[18502]: (root) CMD (/usr/lib64/sa/sa1 1 1)
    Feb 25 16:40:02 # avahi-daemon[422]: Registering new address record for IpV6 on eth1.*.
    Feb 25 16:40:06 # dhclient[18497]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12 (xid=0x60a137ea)


    Right now I don't really know why it is failing. So continuing to dig through and try to fin out what is up. Any help much appreciated!
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    2:31 PM
    Nginx 1.13.x
    MariaDB 5.5
    problem is this

    Centmin Mod 123.08stable and 123.09beta01 has been updated so that ngx_pagespeed and lua nginx module disabled out of box due to Nginx 1.9.11+ incompatibility see Nginx 1.9.11 dynamic module compatibility

    Is this a fresh recent Centmin Mod install ? which branch 123.08stable or 123.09beta01 ? Before or after Feb 26th when i updated the code to disable ngx_pagespeed and lua nginx module ?

    If you want to use lua nginx or ngx_pagespeed you need to use Centmin Mod 123.09beta01 which has updated code to give you the ability to manually re-enable ngx_pagespeed 1.10.33.5 or lua nginx module support see Nginx - Nginx 1.9.11 next version with dynamic module support ! | Page 4 | Centmin Mod Community where on Centmin Mod 123.09beta01, you use

    persistent config setup at /etc/centminmod/custom_config.inc with
    Code:
    NGXDYNAMIC_NGXPAGESPEED=y
    NGINX_PAGESPEED=y
    NGXPGSPEED_VER='1.10.33.5-beta'
    NGINX_PAGESPEEDPSOL_VER='1.10.33.5'
    
    Then using centmin.sh menu option 4, recompile of nginx 1.9.12 to enable ngx_pagespeed

    You can use centmin.sh menu option 23 submenu option 1 + 3 or 3 (if you previously did 1) to switch centmin mod branches as outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS
     
    • Winner Winner x 1
  3. Pornucopia

    Pornucopia New Member

    6
    1
    3
    Oct 4, 2014
    Ratings:
    +1
    Local Time:
    9:31 PM
    Hi,

    It is a brand new install from today. Version says Centmin Mod 1.2.3-eva2000.08

    I did try earlier setting /usr/local/nginx/conf/pagespeed.conf:1 to off as it was set on but still received the same error. I would like to use PageSpeed as it is something I have not previously tried :)
     
  4. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    2:31 PM
    Nginx 1.13.x
    MariaDB 5.5
    yes then what i posted in my reply above applies to you and need to use 123.09beta01 instead of stable for ngx_pagespeed due to compatibility issues with Nginx 1.9.11+ which just rose up recently. The goal is to fast track 123.09beta01 to stable to replace 123.08stable current stable

    123.09beta01 has alot of improvements over 123.08stable including better ability to work around ngx_pagespeed compatibility issues
     
    • Like Like x 1
  5. Pornucopia

    Pornucopia New Member

    6
    1
    3
    Oct 4, 2014
    Ratings:
    +1
    Local Time:
    9:31 PM
    Perfect, thank you!
     
  6. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    2:31 PM
    Nginx 1.13.x
    MariaDB 5.5
  7. Pornucopia

    Pornucopia New Member

    6
    1
    3
    Oct 4, 2014
    Ratings:
    +1
    Local Time:
    9:31 PM
    Got it all working, thanks!
     
    • Like Like x 1