Join the community today
Register Now

Beta Branch Centmin Mod 130.00beta01 release discussion

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

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    49,280
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,572
    Local Time:
    11:09 AM
    Nginx 1.21.x
    MariaDB 10.x
  2. rdan

    rdan Premium Member Premium Member

    5,328
    1,338
    113
    May 25, 2014
    Ratings:
    +2,066
    Local Time:
    9:09 AM
    Mainline
    10.2
    I guess to help you test on EL8, we need to add this variable? :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    49,280
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,572
    Local Time:
    11:09 AM
    Nginx 1.21.x
    MariaDB 10.x
    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 Premium Member Premium Member

    5,328
    1,338
    113
    May 25, 2014
    Ratings:
    +2,066
    Local Time:
    9:09 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 Premium Member Premium Member

    5,328
    1,338
    113
    May 25, 2014
    Ratings:
    +2,066
    Local Time:
    9:09 AM
    Mainline
    10.2
    New install I got this:
    I restart PHP and it's gone now.
     
  6. rdan

    rdan Premium Member Premium Member

    5,328
    1,338
    113
    May 25, 2014
    Ratings:
    +2,066
    Local Time:
    9:09 AM
    Mainline
    10.2
    Same for Redis
    After redis restart it's gone.
     
  7. eva2000

    eva2000 Administrator Staff Member

    49,280
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,572
    Local Time:
    11:09 AM
    Nginx 1.21.x
    MariaDB 10.x
    @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 Premium Member Premium Member

    5,328
    1,338
    113
    May 25, 2014
    Ratings:
    +2,066
    Local Time:
    9:09 AM
    Mainline
    10.2
    Sent via PM.

    No I did not.
     
  9. eva2000

    eva2000 Administrator Staff Member

    49,280
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,572
    Local Time:
    11:09 AM
    Nginx 1.21.x
    MariaDB 10.x
    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 Premium Member Premium Member

    5,328
    1,338
    113
    May 25, 2014
    Ratings:
    +2,066
    Local Time:
    9:09 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

    49,280
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,572
    Local Time:
    11:09 AM
    Nginx 1.21.x
    MariaDB 10.x
  12. rdan

    rdan Premium Member Premium Member

    5,328
    1,338
    113
    May 25, 2014
    Ratings:
    +2,066
    Local Time:
    9:09 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 Premium Member Premium Member

    5,328
    1,338
    113
    May 25, 2014
    Ratings:
    +2,066
    Local Time:
    9:09 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

    49,280
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,572
    Local Time:
    11:09 AM
    Nginx 1.21.x
    MariaDB 10.x
    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

    49,280
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,572
    Local Time:
    11:09 AM
    Nginx 1.21.x
    MariaDB 10.x
    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 Premium Member Premium Member

    5,328
    1,338
    113
    May 25, 2014
    Ratings:
    +2,066
    Local Time:
    9:09 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

    49,280
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,572
    Local Time:
    11:09 AM
    Nginx 1.21.x
    MariaDB 10.x
    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

    49,280
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,572
    Local Time:
    11:09 AM
    Nginx 1.21.x
    MariaDB 10.x
    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

    105
    32
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +77
    Local Time:
    3:09 AM
    1.21.x
    10.4
    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

    49,280
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,572
    Local Time:
    11:09 AM
    Nginx 1.21.x
    MariaDB 10.x
    No new update - focusing on getting Nginx 1.23.x compatibility working with some of the Nginx modules etc.