Want to subscribe to topics you're interested in?
Become a Member

Previews Centmin Mod 1.2.3-eva2000.07 preview highlights

Discussion in 'Beta release code' started by eva2000, May 26, 2014.

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

    eva2000 Administrator Staff Member

    29,033
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,782
    Local Time:
    7:22 PM
    Nginx 1.13.x
    MariaDB 5.5
    Reproduced from blog entry https://blog.centminmod.com/388

    It has been over 4 months since the last Centmin Mod 1.2.3-eva2000.06 release. The next release will be Centmin Mod 1.2.3-eva2000.07 which will have the most extensive changes and improvements since 1.2.3-eva2000.01. I’ve also put the Centmin Mod code and various beta branches on Github as well at https://github.com/centminmod/centminmod. Unfortunately, the previewed Nginx jailed chrooted vhost, domain and SFTP or SFTP+SSH code will not be making it into .07 release until more testing can be done.


    As there are so many improvements, this blog post will attempt to highlight them while .07 release is still in beta testing. If you have never used Centmin Mod before, you can also check out the How to install Centmin Mod video.

    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 ] 22
    --------------------------------------------------------
    
    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 https://blog.centminmod.com/194 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 http://centminmod.com/faq.html.
    • 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 https://blog.centminmod.com/194 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 http://www.php.net/manual/en/ldap.installation.php. 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 http://pecl.php.net/package-changelog.php?package=memcached
    • Updated Xcache from 2.0.1 to 3.1.0http://xcache.lighttpd.net/browser/tags/3.1.0/ChangeLog
    • Updated NSD v3.2.15 to v3.2.17 http://www.nlnetlabs.nl/projects/nsd/index.html#releases
    • 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 https://github.com/arut/nginx-dav-ext-module
    • 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 supporthttps://code.google.com/p/memcached/wiki/SASLAuthProtocol andhttps://blog.couchbase.com/sasl-memcached-now-available.
    • Updated Memcache PHP extension to 3.0.8 http://pecl.php.net/package-changelog.php?package=memcache
    • 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 loghttps://developers.google.com/speed/pagespeed/module/release_notes
    • Added inc/entropy.inc functions to increase default Entropy pool availability on non-OpenVZ systems i.e. KVM, Xen, dedicated using haveged entropy daemonhttp://www.issihosts.com/haveged/. More info athttps://www.digitalocean.com/commun...ional-entropy-for-cloud-servers-using-haveged
    • 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_modulehttp://nginx.org/en/docs/http/ngx_http_image_filter_module.html)
    • Added to Nginx configuration headers-more module (http://wiki.nginx.org/HttpHeadersMoreModule and https://github.com/agentzh/headers-more-nginx-module)
    • Added support for Phusion Passenger https://github.com/phusion/passenger 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 http://wiki.nginx.org/HttpGeoipModule. 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

     
  2. eva2000

    eva2000 Administrator Staff Member

    29,033
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,782
    Local Time:
    7:22 PM
    Nginx 1.13.x
    MariaDB 5.5
    FYI, currently this forum itself is running on Centmin Mod 1.2.3-eva2000.07 beta 20 build :D
     
Thread Status:
Not open for further replies.