Want more timely Centmin Mod News Updates?
Become a Member

Nginx PageSpeed Nginx Always Failed

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Moe, Mar 18, 2016.

Tags:
  1. Moe

    Moe New Member

    13
    4
    3
    Dec 4, 2015
    Jupiter
    Ratings:
    +7
    Local Time:
    5:21 PM
    1.9.7
    MariaDB 10.x
    Hello Guys again

    i have a problem is that my Nginx always gives error when enabling nginx_pagespeed

    i am using nginx 1.9.12 also i upgraded to centmin 09 beta and used option 4 in centmin.sh menu
    View image: Untitled
    please help and explain in simple english what to do :)
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    1:21 AM
    Nginx 1.13.x
    MariaDB 5.5
    When did you update to 123.09beta01 ? There was compatibility issues with 1.9.11+ and since many updates to 123.09beta01 have occurred Nginx 1.9.11 dynamic module compatibility | Centmin Mod Community. I'd update 123.09beta01 to latest code via centmin.sh menu option 23 submenu options 1+2 or 2 before trying another centmin.sh menu option 4 recompile of nginx 1.9.12

    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.7 or 7.2 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • How long ago did you install Centmin Mod ?
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.
    To troubleshoot nginx upgrade, you need to check the nginx upgradel log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx upgrade log. You can see full details at How to troubleshoot Centmin Mod initial install issues.

    Upgrading Centmin Mod Code to Latest Version



    Getting Started Guide step 19 outlines also how to keep Centmin Mod code updated or how to switch version branches.

    Centmin Mod LEMP stack's script code is constantly updated for improvements, bug fixes and security fixes so keeping the Centmin Mod code up to date is important. With Centmin Mod 1.2.3-eva2000.08) (123.08stable) and higher releases, a newly added centmin.sh menu option 23 allows much easier code updates and version branch swicthing via Git backed environment you can setup. For full details read the following links:
    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod. This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to. You can easily update within a Centmin Mod version branch or switch version branches via centmin.sh menu option 23 outlined here.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at How to upgrade Centmin Mod software installed on your server.
    So essentially, you can upgrade from .07 to .08 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.
     
  3. Moe

    Moe New Member

    13
    4
    3
    Dec 4, 2015
    Jupiter
    Ratings:
    +7
    Local Time:
    5:21 PM
    1.9.7
    MariaDB 10.x
    Thank you @eva2000 for ur reply

    Details of My vps hosted at OVH on Centos 7.2 would be :
    • OpenStack KVM
    • 1 vCore
    • 2.4 GHz
    • 2 GB RAM
    • 10 GB SSD
    • Local RAID 10
    i installed centmin and wordpress site using 123.08 stable then upgraded to 09beta about 4 days ago, and i also updated the 09 current branch successfully from option 23

    Troubleshooting

    Centmin troubleshooting · GitHub
    &
    nginx centmin · GitHub

    also when i execute pscontrol on it gives me bash error command not found
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    1:21 AM
    Nginx 1.13.x
    MariaDB 5.5
    need gist posted contents of the nginx upgrade log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_180316-150120_nginx_upgrade.log
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    1:21 AM
    Nginx 1.13.x
    MariaDB 5.5
    Ah i see what the problem is as 123.09beta01 has disabled ngx_pagespeed by default as per Nginx 1.9.11 dynamic module compatibility | Centmin Mod Community to enable it you need to do an nginx recompile after setting in persistent config file /etc/centminmod/custom_config.inc
    Code:
    NGXDYNAMIC_NGXPAGESPEED=y
    NGINX_PAGESPEED=y
    Then run centmin.sh menu option 4 to recompile Nginx 1.9.12
     
    • Like Like x 1
  6. Moe

    Moe New Member

    13
    4
    3
    Dec 4, 2015
    Jupiter
    Ratings:
    +7
    Local Time:
    5:21 PM
    1.9.7
    MariaDB 10.x
    ur the man
    thanks alot bro
    :)
     
    • Like Like x 1
  7. Pablin

    Pablin New Member

    12
    2
    3
    Apr 4, 2016
    Ratings:
    +2
    Local Time:
    11:21 PM
    1.9.13
    10
    Same problem with the last version of centminmod and nginx 1.9.13.

    I created the file /etc/centminmod/custom_config.inc with the content specified:
    NGXDYNAMIC_NGXPAGESPEED=y
    NGINX_PAGESPEED=y

    And upgraded nginx through the menu (option 4) to nginx 1.9.13 (same version I had).

    But when I try again the command pscontrol on it gives me a bash error of command not found.

    Actually, after doing so nginx gives me an error on restart.

    Restarting nginx (via systemctl): Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

    [FAILED]
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    1:21 AM
    Nginx 1.13.x
    MariaDB 5.5
    are you using Centmin Mod 123.09beta01 as outlined at Nginx 1.9.11 dynamic module compatibility | Centmin Mod Community it's the only version to support ngx_pagespeed 1.10+ branch and nginx 1.9.11+

    need same info outlined in this post too

    did you upgrade to latest code 123.09beta01 via centmin.sh menu option 23 submenu option 2 first ? I'd recommend you always do that before running any centmin.sh menu options due to continuous updates 123.09beta01 gets
     
  9. Pablin

    Pablin New Member

    12
    2
    3
    Apr 4, 2016
    Ratings:
    +2
    Local Time:
    11:21 PM
    1.9.13
    10
    Ok! Thanks.

    I am running Centmin Mod 1.2.3-eva2000.08.
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    1:21 AM
    Nginx 1.13.x
    MariaDB 5.5
    Ah that's your problem then. See news thread at Nginx 1.9.11 dynamic module compatibility

    123.08stable has disabled ngx_pagespeed and lua nginx modules due to incompatibility with nginx 1.9.11 dynamic modules. If you want ngx_pagespeed for now you need to update Centmin Mod to 123.09beta01 outlined here Beta Branch - Centmin Mod .09 beta branch Testing

    With 123.09beta01, set in /etc/centminmod/custom_config.inc persistent config file you create or already created and set:
    Code:
    NGINX_PAGESPEED=y
    and then recompile Nginx 1.9.13 or higher via centmin.sh menu option 4

    1st post at Beta Branch - Centmin Mod .09 beta branch Testing | Centmin Mod Community and Beta Branch - New .08 beta menu option - updating Centmin Mod via git | Centmin Mod Community has examples of how to switch centmin mod branch from 123.08stable to 123.09beta01 via centmin.sh menu option 23 submenu option 3 :)
     
    Last edited: Apr 4, 2016