Want more timely Centmin Mod News Updates?
Become a Member

Featured Install Centmin Mod 1.2.3-eva2000.07 stable install

Discussion in 'Install & Upgrades or Pre-Install Questions' started by eva2000, Jun 30, 2014.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5

    1.2.3-eva2000.08 stable latest version



    Note Centmin Mod 123.08stable Github Branch = 1.2.3-eva2000.08 is latest stable version. Full details at What's New in Centmin Mod 1.2.3-eva2000.08 ? | Centmin Mod Community



    Centmin Mod 1.2.3-eva2000.07 stable
    build is officially released on the official web site at Download - Centmin Mod - Menu based Nginx installer for CentOS servers. This release took 6 months of work with alot of beta testing from Centmin Mod users on both the old Google+ Community forums as well as on the new Community forums here.

    Change Log


    Download


    • You can download .07 stable version here.

    Installation



    There's basically now 3 methods to install Centmin Mod starting with 1.2.3-eva2000.07+ and higher versions. Full outlined Centmin Mod install steps will always be available at Download - Centmin Mod - Menu based Nginx installer for CentOS servers.

    I posted some How to install Centmin Mod Youtube videos also at Install - How to install Centmin Mod Videos | Centmin Mod Community. And don't forget to read the Official FAQ at Centmin Mod FAQ - Menu based Nginx installer ;)

    3 methods to install Centmin Mod
    1. First method, traditional shell based menu via SSH command from within download zip files extracted directory and selecting menu option 1:
      Code:
      ./centmin.sh
    2. Second method, from unattended CLI command line via SSH commandfrom within download zip files extracted directory:
      Code:
      ./centmin.sh install
    3. Third method, from one liner CLI install via SSH command below which basically invokes the ./centmin.sh install method via curl:
      Code:
      curl -sL http://centminmod.com/installer.sh | bash
    The last two CLI command line methods are great for 100% unattended Centmin Mod installs :)

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.07 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Exit
    --------------------------------------------------------
    Enter option [ 1 - 22 ]
    --------------------------------------------------------

    Updating to latest .07 stable



    Centmin Mod .07 stable over time may get bug fixes or minor updates i.e. download url changes. So to grab the latest code at least, it's basically the same as Method 1 instructions above minus the need to run initial install if you are on an existing Centmin Mod .07 stable based server environment and needing to remove the old zip and extracted folder first.

    Code:
    cd /usr/local/src
    rm -rf /usr/local/src/centmin*
    wget http://centminmod.com/download/centmin-v1.2.3-eva2000.07.zip
    unzip centmin-v1.2.3-eva2000.07.zip
    cd centmin-v1.2.3mod
    chmod +x centmin.sh
    

    Github Branch Commit Comparisons



    If you're like me and want a birds eye view of the commit changes between Centmin Mod .06 stable vs .07 stable vs .08 beta 01 vs .08 centos 7 beta 01, you can use Github feature for this.
     
    Last edited: Jul 30, 2015
    • Like Like x 4
  2. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5

    Centmin Mod 1.2.3-eva2000.07 Highlights



    Improvements
    • Centmin Mod installation speed. The .07 release will be up to 40-60% faster in terms of installation speed. My local test server went from ~1800-1950 seconds install time to ~720-950 seconds install time. DigitalOcean VPS install time went from around ~1650-1850 seconds install time to ~1100-1350 seconds install time. The new .07 release on Linode VPS average between 950-1000 seconds install time for 4GB and higher VPS (benchmarks). Install time besides the actual Centmin Mod code used, is dependent on several factors including the particular VPS or dedicated server’s network speed geographically related to download sources and the specifications of the server – specifically cpu, memory and disk I/O performance. Faster network speed, cpu, memory and/or disk I/O means generally faster install time.
    • Return of CLI install mode (previously previewed). Full unattended CLI install mode which bypasses the default Centmin Mod shell based menu install. To bypass the shell based menu, run ./centmin.sh install. As such to facilitate this, the MySQL root user password and Memcached admin php file have an auto generated passwords which will be printed out at end of Centmin Mod install.
    • Nginx 1.7 defaults. The default installed Nginx version is now Nginx 1.7.2.
    • PHP 5.4.30 defaults. Starting from .07 release, the default PHP version installed will be bumped from PHP 5.3.28 to PHP 5.4.30. APC Cache will still be the default PHP opcode cacher installed. Unless you enabled the new variable in centmin.sh, ZOPCACHEDFT=’y’ which can override the defaults and install Zend OpCache by default instead of APC Cache. If you have incompatible PHP web apps, you can still downgrade PHP to 5.3.28 via menu option #5 or set PHP_VERSION=’5.3.28′ in centmin.sh BEFORE you actually run install menu option #1. Similarly, if you want PHP 5.5.14, just upgrade PHP via menu option #5 or set PHP_VERSION=’5.5.14′ and ZOPCACHEDFT=’y’ in centmin.sh BEFORE you actually run install menu option #1.
    • Revised menu options – changing menu options #11 and #12. Number #11 is now a MariaDB 5.2, 5.5 and 10 upgrade sub menu option. Number #12 is now a dedicated menu option to install and reinstall Zend OpCache PHP opcode caching for PHP versions. With menu option #11, the sub menu option to upgrade to MariaDB 10.x is just a place holder for now and doesn’t actually work.
    • Moved all downloads links themselves out of the download functions atinc/downloads.inc to their own file at inc/downloadlinks.inc for easier management
    • Changed PHP’s default config scan directory variable path (CONFIGSCANDIR) from /root/centminmod/php.d to /etc/centmimod/php.d. The centmin.sh will auto detect this and create the necessary directory and copy over any existing PHP extension .ini files from the old path. This is preparation for when chrooted user SSH/SFTP/SCP user account support comes WordPress Auto Installer & SSH, SFTP, SCP chrooted user accounts for Nginx vhost | Centmin Mod Blog to allow chrooted users PHP binary access to PHP extensions.
    • Updated PHP menu option #5 upgrade routine to auto reinstall previously installed PHP extensions such as APC Cache, Xcache, Zend OpCache, Memcache/Memcached, igbinary and ImagemagicK. No longer will users need to manually reinstall these PHP extensions after each PHP upgrade. The script will detect what .ini files are in /root/centminmod/php.d (.07 release will be /etc/centminmod/php.d) when PHP upgrade is ran. Then at end of PHP upgrade will auto reinstall each PHP extension that was detected before PHP upgrade completed.
    • Updated centmin.sh with 4 options PHP_DISABLED=n, MYSQLSERVICE_DISABLED=n, NSD_DISABLED=n and MEMCACHED_DISABLED=n. By default they are set to NO, so that PHP-FPM, MariaDB MySQL, NSD and Memcached server are installed and enabled (running). Some users have no use for NSD for DNS hosted locally on server and/or have no use for Memcached server or want to have an Nginx only server without running PHP-FPM and MySQL services, so you can set PHP_DISABLED=y, MYSQLSERVICE_DISABLED=y, NSD_DISABLED=y and/or MEMCACHED_DISABLED=y in centmin.sh prior to initial Centmin Mod install, so that PHP-FPM, MariaDB MySQL, NSD and Memcached are disabled but installed. This allows for you to re-enable them if needed in future. To re-enable NSD via commands service nsd start and chkconfig nsd on and for Memcached via service memcached start and chkconfig memcached on.
    New Features


    Full 1.2.3-eva2000.07 Change Log


    • Improvements to speed up install process – up to 40-60% faster install time than previous versions.
    • Added back the return of an optional cli install method which bypasses the menu option #1 install method. If you run ./centmin.sh install, you can bypass the shell based menu for fully unattended installation.
    • Added SELINUX check
    • Added new menu option #21 update - it upgrades Nginx, PHP-FPM and Siege benchmark versions based on versions defined in centmin.sh. Useful for Centmin Mod version updates as defined in FAQ #4 at Centmin Mod FAQ - Menu based Nginx installer.
    • Added routine to inc/openssl_install.inc to allow for OpenSSL source code patching for Nginx OpenSSL recompiles. Includes OpenSSL 1.0.1g CVE-2010-5298 Release Buffer patch.
    • Added Axivo YUM repository https://www.axivo.com/resources/repository-setup.1/ for access to packages such as mydumper, elasticsearch etc
    • Removed the memcache admin stats page user/password prompt and initial MariaDB MySQL root user setting/security prompts in favour of auto generating the user/passwords which will be shown at end of initial install i.e. screenshot.
    • Added ZOPCACHEDFT=’n’ variable to centmin.sh. This variable if enabled ZOPCACHEDFT=’y’ can override the defaults and install Zend OpCache by default instead of APC Cache defaults.
    • Revised menu options – changing menu options #11 and #12. Number #11 is now a MariaDB 5.2, 5.5 and 10 upgrade sub menu option. #12 is now a dedicated menu option to install and reinstall Zend OpCache PHP opcode caching for PHP versions
    • Updated PHP default version out of the box from 5.3.28 to 5.4.30 and included additional PHP extensions (–with-snmp –with-gmp –with-pspell –with-tidy –with-enchant)
    • Moved all downloads links themselves out of the download functions at inc/downloads.inc to their own file at inc/downloadlinks.inc for easier management
    • Changed PHP’s default config scan directory variable path (CONFIGSCANDIR) from /root/centminmod/php.d to /etc/centmimod/php.d. centmin.sh will auto detect this and create the necessary directory and copy over any existing PHP extension .ini files from the old path. This is preparation for when chrooted user SSH/SFTP/SCP user account support comes WordPress Auto Installer & SSH, SFTP, SCP chrooted user accounts for Nginx vhost | Centmin Mod Blog to allow chrooted users PHP binary access to PHP extensions.
    • Updated PHP upgrade routine to auto reinstall previously installed PHP extensions such as APC Cache, Xcache, Memcache/Memcached, igbinary and ImagemagicK. No longer will users need to manually reinstall these PHP extensions after each PHP upgrade. The script will detect what .ini files are in /root/centminmod/php.d (.07 release will be /etc/centminmod/php.d) when PHP upgrade is ran. Then at end of PHP upgrade will auto reinstall each PHP extension that was detected before PHP upgrade completed.
    • Updated PHP configuration to autodetect if openldap-clients package is installed and if installed auto add –with-ldap –with-ldap-sasl configuration options to PHP configuration for PHP LDAP extension support PHP: Installation - Manual. If you don’t currently have PHP LDAP extension support, just run yum -y install openldap-clients and then run centmin.sh menu option #5 to recompile PHP.
    • Updated PCRE version compiled for Nginx 8.33 to 8.35 http://www.pcre.org/changelog.txt
    • Updated PHP memcached extension from 2.1.0 to 2.2.0 PECL :: memcached Changelog
    • Updated Xcache from 2.0.1 to 3.1.0ChangeLog in tags/3.1.0 – XCache
    • Updated NSD v3.2.15 to v3.2.17 nlnetlabs.nl :: Name Server Daemon (NSD) ::
    • Updated Nginx from v1.5.8 to v1.7.2 release http://nginx.org/en/CHANGES
    • Updated Nginx WebDav module from 0.0.2 to 0.0.3 arut/nginx-dav-ext-module · GitHub
    • Updated multi-threaded compression menu with updated versions for pbzip2, lbzip2, plzip, lzip
    • Updated libmemcached from 1.0.16 to 1.0.18https://launchpad.net/libmemcached/ download
    • Updated Memcached server from 1.4.17 to 1.4.20 https://code.google.com/p/memcached/wiki/ReleaseNotes1420 and added –enable-sasl –enable-sasl-pwdb supportSASLAuthProtocol - memcached - SASL Authentication for Memcached - Memcached - Google Project Hosting andSASL memcached now available! | Couchbase Blog.
    • Updated Memcache PHP extension to 3.0.8 PECL :: memcache Changelog
    • Updated Siege v3.0.5 to v3.0.6 http://www.joedog.org/pub/siege/ChangeLog
    • Updated memcache admin php file and randomised the file name unique to each install – same as APC Cache admin page. So changed location from /usr/local/nginx/html/memcache.php to /usr/local/nginx/html/memcache_${N}.php where ${N} is randomised.
    • Updated centmin.sh with 4 options PHP_DISABLED=n,MYSQLSERVICE_DISABLED=n, NSD_DISABLED=n andMEMCACHED_DISABLED=n. By default they are set to NO, so that PHP-FPM, MariaDB MySQL, NSD and Memcached server are installed and enabled (running). Some users have no use for NSD for DNS hosted locally on server and/or have no use for Memcached server or want to have an Nginx only server without running PHP-FPM and MySQL services, so you can set PHP_DISABLED=y, MYSQLSERVICE_DISABLED=y,NSD_DISABLED=y and/or MEMCACHED_DISABLED=y in centmin.sh prior to initial Centmin Mod install, so that PHP-FPM, MariaDB MySQL, NSD and Memcached are disabled but installed. This allows for you to re-enable them if needed in future. To re-enable NSD via commands service nsd start and chkconfig nsd on and for Memcached via service memcached start and chkconfig memcached on.
    • Updated ngx_pagespeed module version number in centmin.sh from 1.7.30.1 beta to 1.8.31.4 beta. Only version number changed as Centmin Mod is still currently using the work around using Github master branch to work around a bug with ngx_pagespeed_message log https://groups.google.com/d/topic/ngx-pagespeed-discuss/Yb0mt3ApciU/ discussion. Change logPageSpeed Release Notes - PageSpeed Module — Google Developers
    • Added inc/entropy.inc functions to increase default Entropy pool availability on non-OpenVZ systems i.e. KVM, Xen, dedicated using haveged entropy daemonhaveged - a simple entropy daemon. More info atHow to Setup Additional Entropy for Cloud Servers Using Haveged | DigitalOcean
    • Added standalone Python 2.7 install Addon at /addons/python27_install.sh to install Python 2.7 along side default Python 2.6 default CentOS versions
    • Added to Nginx configuration http_image_filter_module module (–with-http_image_filter_moduleModule ngx_http_image_filter_module)
    • Added to Nginx configuration headers-more module (HttpHeadersMoreModule - Nginx Community and https://github.com/agentzh/headers-more-nginx-module)
    • Added support for Phusion Passenger phusion/passenger · GitHub for Nginx support for Ruby, Rails and RubyGem and Python to centmin.sh and nginx_upgrade.inc. In centmin.sh default is disabled NGINX_PASSENGER=’n’, to enable, you need to set to NGINX_PASSENGER=’y’ and before reinstalling Nginx, you need to run Addon script at /addons/passenger.sh to install Ruby, RubyGems, RubyRails and Nginx Passenger depedencies and then run menu option #4 to reinstall Nginx server.
    • Added support for Nginx GEOIP module by updating centmin.sh with NGINX_GEOIP=n option for Nginx GeoIP module support HttpGeoipModule - Nginx Community. NGINX_GEOIP=y will only enable and work if GeoIP database and library have been installed. You can find in Centmin Mod Addons directory a shell script at /addons/geoip.sh which will install the GeoIP database and library. After installed, then set NGINX_GEOIP=y in centmin.sh and run menu option #4 to recompile Nginx with –with-http_geoip_module support. If you do not install GeoIP database and library before recompiling Nginx with GeoIP module, you will get the following error when restarting Nginx server.
      Code:
      nginx: [emerg] unknown directive "geoip_country" in /usr/local/nginx/conf/geoip.conf:2
      nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
     
    Last edited: Aug 16, 2014
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5

    Centmin Mod related


    Software setup + Centmin Mod


    Centmin Mod Nginx and https SSL certificate setup


    Community feedback


     
    Last edited: Aug 16, 2014
    • Like Like x 2
  4. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    Last edited: Aug 16, 2014
    • Like Like x 1
  5. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5
  6. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    Just a heads up the .07 stable zip download along with .08 beta 01 and .08 CentOS 7.0 .08 beta 01 Github code has updated the PHP mirror download url format used in inc/downloads.inc and inc/php_upgrade.inc as it seems to have changed overnight (thanks to @dorobo who first reported the PHP mirror download url change as well as the fix for it (y)). You can find the changes in the respective Github branches for Centmin Mod's commit listing
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5
  8. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    Github Branch Commit Comparisons

    If you're like me and want a birds eye view of the commit changes between Centmin Mod .06 stable vs .07 stable vs .08 beta 01 vs .08 centos 7 beta 01, you can use Github feature for this. Should make upgrades slightly easier if you have heavily modified your .06 stable previous release :)
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    Found a bug preventing memcached server stopping in init.d/memcached files for .07 stable and .08 betas while working on a revised memcached init.d file with unix socket option support Memcached - How to Run memcached from a socket? | Centmin Mod Community

    all .07 stable and .08 betas have been updated with the new /etc/init.d/memcached file.

    For existing Centmin Mod users, they can just update that one file via these 2 commands. You may need to re-edit your memory allocation sizes if you changed them from the default 8MB

    Code:
    wget -O /etc/init.d/memcached https://gist.githubusercontent.com/centminmod/94940d2f1cd75c5e18dd/raw/memcached.sh
    chmod +x /etc/init.d/memcached
    
     
    • Like Like x 1
  10. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    Last edited: Aug 7, 2014
    • Like Like x 1
  11. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    Updated all Github branches and .07 zip with new option in centmin.sh, AXIVOREPO_DISABLE=y

    This disables Axivo YUM repo install by default for initial Centmin Mod installs. If you want to enable Axivo YUM repo installation, you must do so BEFORE running initial Centmin Mod installation by editing centmin.sh and setting.

    Code:
    AXIVOREPO_DISABLE=n
    Then running the initial Centmin Mod installation.

    This change was made due to recent changes to the Axivo YUM repo download url causing instability and thus breaking Centmin Mod initial install process.

    Manual install of Axivo Repo for .07 stable



    If you forgot to set AXIVOREPO_DISABLE=n in centmin.sh prior to initial install on .07 stable, you can use this axivo_centmin.sh script to manually install it after initial install.

    Code:
    wget -cnv https://gist.github.com/centminmod/b0e0f1d3ac20f428e852/raw/axivo_centmin.sh
    chmod +x axivo_centmin.sh
    ./axivo_centmin.sh
    
    Axivo Repo once installed is disabled by default and has yum priorities set, so if you want to install any YUM packages from Axivo Repo, you need to append 2 commands --enablerepo=axivo --disableplugin=priorities

    for example:

    Code:
    yum -q list elasticsearch --enablerepo=axivo --disableplugin=priorities
    Code:
    yum -q list elasticsearch --enablerepo=axivo --disableplugin=priorities
    Installed Packages
    elasticsearch.x86_64                                                              1.4.0-1.el6                                                              @axivo
     
    Last edited: Nov 15, 2014
  12. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    Added a new update to all .07 stable and .08 beta branches for a commit that fixes postfix bounce email processing for Xenforo 1.4 thanks for @Tracy Perry troubleshooting and insight sharing

    For existing Centmin Mod users, you can fix this running 2 commands in SSH
    Code:
    postconf -e 'recipient_delimiter = +'
    /etc/init.d/postfix restart
    
    to confirm if it was set, type this command in SSH
    Code:
    postconf -n | grep ^recipient_delimiter
    
    you should return output
    Code:
    recipient_delimiter = +
     
    • Like Like x 1
  13. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5
  14. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  15. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5
  16. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5

    Fix for when InnoDB engine is initially enabled



    Discovered a bug in initial MariaDB install routine which affects both .07 stable and .08 betas when InnoDB is initially enabled for the first time via /etc/my.cnf. It doesn't show itself normally as by default .07 stable has MariaDB 5.5 installed with InnoDB disabled by default and it only sometimes occurs when InnoDB is enabled for first time.

    The InnoDB engine may fail to load as there is a mismatched innodb_log_file_size from what was initially created size of 5MB at install and the custom /etc/my.cnf size of 48MB or 64MB - you can see this in MariaDB error log when you enable InnoDB for the first time. I had a workaround for this, but mistakenly placed the work around too early in the install routine before the custom /etc/my.cnf was set. The workaround should be placed after the custom /etc/my.cnf is set.

    So committed fixes for both branches
    If it's your first time enabling innodb in /etc/my.cnf and you're on Centmin Mod prior to the committed fixes, you'd want to first check your MariaDB error log /var/log/mysqld.log to make sure you are experiencing the same exact error messages outlined here (for failed innodb engine and innodb_log_file_size) and follow the commands to rectify them outlined here or below.

    check your error logs for mysql
    Code:
    tail -50 /var/log/mysqld.log
    Code:
    141007 19:37:42 [Note] /usr/sbin/mysqld: Normal shutdown
    
    141007 19:37:42 [Note] Event Scheduler: Purging the queue. 0 events
    141007 19:37:42 [Note] /usr/sbin/mysqld: Shutdown complete
    
    141007 19:37:42 mysqld_safe mysqld from pid file /var/lib/mysql/vla01.centminmod.com.pid ended
    141007 19:37:46 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
    141007 19:37:46 InnoDB: The InnoDB memory heap is disabled
    141007 19:37:46 InnoDB: Mutexes and rw_locks use GCC atomic builtins
    141007 19:37:46 InnoDB: Compressed tables use zlib 1.2.3
    141007 19:37:46 InnoDB: Using Linux native AIO
    141007 19:37:46 InnoDB: Initializing buffer pool, size = 16.0M
    141007 19:37:46 InnoDB: Completed initialization of buffer pool
    InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes
    InnoDB: than specified in the .cnf file 0 67108864 bytes!
    InnoDB: Possible causes for this error:
    (a) Incorrect log file is used or log file size is changed
    (b) In case default size is used this log file is from 10.0
    (c) Log file is corrupted or there was not enough disk space
    In case (b) you need to set innodb_log_file_size = 48M
    141007 19:37:46 [ERROR] Plugin 'InnoDB' init function returned error.
    141007 19:37:46 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    141007 19:37:46 [Note] Plugin 'FEDERATED' is disabled.
    141007 19:37:46 [Note] Plugin 'ARCHIVE' is disabled.
    141007 19:37:46 [Note] Plugin 'FEEDBACK' is disabled.
    141007 19:37:46 [Note] Server socket created on IP: '0.0.0.0'.
    141007 19:37:46 [Note] Event Scheduler: Loaded 0 events
    141007 19:37:46 [Note] /usr/sbin/mysqld: ready for connections.
    Version: '5.5.39-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server

    Manual fix after enabling innodb in /etc/my.cnf for the very first time.
    Code:
    mysqladmin flush-tables
    sleep 30
    service mysql stop
    sleep 30
    rm -rf /var/lib/mysql/ib_logfile*
    service mysql start
     
    Last edited: Oct 8, 2014
  17. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5

    ngx_pagespeed 1.9.32.1 beta and CSF Firewall Changes



    From Centmin Mod Nginx + ngx_pagespeed 1.9.32.1 beta point of view, need a workaround for the ngx_pagespeed 1.9.32.1 changed behaviour by adding an additional pagespeed on/off setting in /usr/local/nginx/conf/pagespeedadmin.conf and modifying pscontrol script to turn on/off pagespeed from both pagespeed on/off instances located in both /usr/local/nginx/conf/pagespeedadmin.conf and /usr/local/nginx/conf/pagespeed.conf files.

    Also updated .07 stable zip and github and .08 beta CSF Firewall download link urls

    I have updated Centmin Mod .07 stable with such changes.

    commits
    Existing users: Syncing changes for ngx_pagespeed 1.9.32.1

    For existing .07 stable and .08 beta users to sync these ngx_pagespeed 1.9.32.1 beta changes with their working servers, you need to download the latest .07 stable or .08centos7beta01 zip file to /svr-setup to replace your existing zip and remove old extracted zip folder and unzip and extract the new latest zipf ile and chmod +x centmin.sh and then run centmin.sh and run a nginx recompile via menu option #4. What this will do is trigger inc/ningx_pagespeed.inc pagespeeduptask function at line 360. This pagespeeduptask function is responsible for checking existing Centmin Mod installs to see if there are any outdated or not expected nginx pagespeed config settings in the pagespeed include config files. If this function detects outdated config options, it will automatically replace the old pagespeed conf file with a new one based on functions outlined in inc/nginx_pagespeed.inc.

    In this case the made change is in pagespeedadmin.conf the addition of a pagespeed off; variable. Line 458 to 466 of pagespeeduptask function is what checks for pagespeed off variable in your server's copy at /usr/local/nginx/conf/pagespeedadmin.conf

    Line 460 checks for pagespeed on; or pagspeed off; variable and then if empty, it replaces your pagespeedadmin.conf with updated one via line 462 to 466 which in turn calls the makepsadmin function on lines 272 to 308.
     
    Last edited: Oct 11, 2014
  18. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    Updated 1st post above with how to update your Centmin Mod 1.2.3-eva2000.07 stable zip with latest .07 stable zip.
     
  19. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5

    OpenSSL 1.0.1j update



    Updated both Centmin Mod 1.2.3-eva2000.07 stable and 1.2.3-eva2000.08 beta with OpenSSL 1.0.1j now :D
    Instructions for updating existing Centmin Mod Nginx installs for OpenSSL 1.0.1j at Nginx - Updating OpenSSL 1.0.1j for Centmin Mod | Centmin Mod Community
     
  20. eva2000

    eva2000 Administrator Staff Member

    30,561
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    3:46 AM
    Nginx 1.13.x
    MariaDB 5.5

    CentOS 6.6 Compatibility



    Read CentOS 6.6 & Centmin Mod compatibility for current CentOS 6.6 + Centmin Mod compatibility.

    Updating to latest .07 stable for CentOS 6.6 support



    For existing Centmin Mod .07 stable users, over time may get bug fixes or minor updates i.e. download url changes. So to grab the latest code at least, it's basically the same as Method 1 instructions above minus the need to run initial install if you are on an existing Centmin Mod .07 stable based server environment and needing to remove the old zip and extracted folder first.

    Code:
    cd /usr/local/src
    rm -rf /usr/local/src/centmin*
    wget http://centminmod.com/download/centmin-v1.2.3-eva2000.07.zip
    unzip centmin-v1.2.3-eva2000.07.zip
    cd centmin-v1.2.3mod
    chmod +x centmin.sh
    
     
    Last edited: Oct 29, 2014
Thread Status:
Not open for further replies.