Welcome to Centmin Mod Community
Register Now

Install Centmin Mod 130.00beta01 release discussion

Discussion in 'Beta release code' started by eva2000, May 8, 2022.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    8:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  2. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    6:52 AM
    Mainline
    10.2
    I guess to help you test on EL8, we need to add this variable? :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    8:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Nope that's an assigned variable when Centmin Mod detects a supported EL8 operating system and that variable is used throughout to differentiate being a supported EL7 vs EL8 system. As is CENTOS_NINE='9', for EL9 systems ;) :D
     
  4. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    6:52 AM
    Mainline
    10.2
    Waiting for the EL8/Alma8/Rocky8 enable Flag :)
    My new Reliablesite dedicated server purchased for the sole purpose of testing only.

    Data Center: LA
    CPU: Intel Xeon E3 1230 V3
    RAM: 8 GB DDR3
    Disk: 128 GB SSD
    Port Speed: 1 Gbps Unmetered
    $39 per month ($19 only for 1st month)
     
  5. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    6:52 AM
    Mainline
    10.2
    New install I got this:
    I restart PHP and it's gone now.
     
  6. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    6:52 AM
    Mainline
    10.2
    Same for Redis
    After redis restart it's gone.
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    8:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @rdan are you setting any persistent config file /etc/centminmod/custom_config.inc variables? if so what are they?

    Looks like maybe you enabled nginx systemd service file on CentOS 7 as it's disabled by default on CentOS 7 and only enabled by default on EL8 due to different systemd versions in EL7 vs EL8 https://unix.stackexchange.com/a/464098/26581

     
  8. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    6:52 AM
    Mainline
    10.2
    Sent via PM.

    No I did not.
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    8:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Ah in latest 130.00beta01 I switch to SWITCH_NGINX_SYSTEMD='y' by default so CentOS 7 also got Nginx systemd service file but SWITCH_NGINX_SYSTEMD='y' has a bug which I need to fix for above mentioned systemd version differences in EL7 vs EL8+ :)
     
  10. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    6:52 AM
    Mainline
    10.2
    And also from a fresh reboot I got this:
    Nginx needs to be started manually.
     
  11. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    8:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  12. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    6:52 AM
    Mainline
    10.2
    I updated CMM via cmupdate, re-run centmin 3 times, rebooted the server.
    Still nginx doesn't auto start.

     
  13. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    6:52 AM
    Mainline
    10.2
    I run this command:
    Rebooted the server again, now it starts fine.

    Thanks a lot Eva

    upload_2022-6-4_7-24-36.png
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    8:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    How you testing? In 130.00beta01 there is now 2 auto restart routines

    1. regular auto restart of nginx and php-fpm on server reboot which is enabled via either command
    Code (Text):
    chkconfig nginx on

    or
    Code (Text):
    systemctl enable nginx

    That is the one you seem to be experiencing as status shows disable
    I updated 130.00beta01 initial install routine to make sure nginx service is enabled for such

    2. the other is new in 130.00beta01 for /etc/systemd/system/nginx.service.d/failure-restart.conf which will only auto restart nginx if service crashes but will not restart nginx if you manually did a service stop as it's a action you intended to do
     
  15. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    8:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Good to know. FYI, MariaDB 10.4+ are still one way upgrades with differences outlined at https://community.centminmod.com/threads/mariadb-10-1-upgrades-to-mariadb-10-2-10-3-and-10-4.17793/ and https://community.centminmod.com/threads/interesting-look-at-whats-new-in-mariadb-10-4.17676/ so be aware of that.

    Also I haven't tested MariaDB 10.5 & 10.6 yet - so auto optimizations specific for them are not in place etc nor has any compatibility with web app's using MySQL etc.
     
  16. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    6:52 AM
    Mainline
    10.2
    After server reboot, I just run:
    systemctl status nginx.service -l

    No problem, its all test site for now :).
    Thanks
     
  17. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    8:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Ok should be fixed now anyway :)

    Just another idea I have been thinking about are additional ways to be able to create a Centmin Mod Nginx vhost site besides centmin.sh menu option 2, 22 (for Wordpress) and nv command line. I was thinking of supporting a Centmin Mod Nginx Site JSON config file for creating new Nginx sites. So the idea is allow folks to create a custom JSON config file and allow Centmin Mod to auto create the Nginx vhost site based on the JSON config parameters - including setting up Cloudflare settings and MySQL database/dbuser/dbpass and robots and cronjob files relevant to the Nginx vhost site.

    A rough example below is below of the JSON config file. What additional parameters would you like to see be supported via JSON config file based Nginx vhost creation?

    Code (Text):
    {
        "data": [
            {
                "domain": "domain.com",
                "domain-preferred": "www.domain.com",
                "domain-parked1": "sub1.domain.com",
                "domain-parked2": "sub2.domain.com",
                "domain-parked3": "sub3.domain.com",
                "email": "email@domain",
                "https": "yes",
                "origin-sslcert": "letsencrypt",
                "cloudflare": "yes",
                "cloudflare-accountid": "aabbcc",
                "cloudflare-zoneid": "zoneid",
                "cloudflare-api-token": "xxxyyyzzz",
                "cloudflare-min-tls": "1.2",
                "cloudflare-tiered-cache": "yes",
                "cloudflare-cache-reserve": "yes",
                "cloudflare-crawler-hints": "yes",
                "cloudflare-respect-origin-headers": "yes",
                "type": "site",
                "mysqldb1": "db1",
                "mysqluser1": "dbuser1",
                "mysqlpass1": "dbpass1",
                "mysqldb2": "db2",
                "mysqluser2": "dbuser2",
                "mysqlpass2": "dbpass2",
                "mysqldb3": "db3",
                "mysqluser3": "dbuser3",
                "mysqlpass3": "dbpass3",
                "mysqldb4": "db4",
                "mysqluser4": "dbuser4",
                "mysqlpass4": "dbpass4",
                "mysqldb5": "db5",
                "mysqluser5": "dbuser5",
                "mysqlpass5": "dbpass5",
                "webroot": "/home/nginx/domains/domain.com/public",
                "index": "/home/nginx/domains/domain.com/public/index.html",
                "robotsfile": "/path/to/robots.txt",
                "cronjobfile": "/path/to/cronjobfile.txt"
            }
        ]
    }
    
     
  18. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    8:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Added a new feature that can come in handy for folks trying to custom their Centmin Mod installations. Add a new function that can optionally be triggered after initial Centmin Mod install's Nginx/PHP install or after Nginx/PHP upgrade/recompiles via centmin.sh menu option 5. The purpose is so end users can script or add addition configuration/installation parameters to their Nginx/PHP installations i.e. install additional PHP extensions which Centmin Mod doesn't install or provide routines for out of the box or modify Nginx configuration parameters

    Details and discussion came be made at https://community.centminmod.com/th...custom-runtime-scripts-in-130-00beta01.22912/
     
  19. duderuud

    duderuud Premium Member Premium Member

    239
    78
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +170
    Local Time:
    11:52 PM
    1.25 x
    10.6
    Any update/eta on the EL8 version of CMM? Want to do a test install on a new dedicated server...
     
  20. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    8:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    No new update - focusing on getting Nginx 1.23.x compatibility working with some of the Nginx modules etc.