Welcome to Centmin Mod Community
Register Now

PHP PHP 7.0.0RC releases + Centmin Mod Updating PHP-FPM

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Aug 20, 2015.

  1. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    PHP 7.0.0RC1 has been released so this thread is a continuation from PHP 7.0.0 alpha and beta thread. PHP 7.0.0RC1 performance matches or slightly beats HHVM now. Official PHP.net PHP 5.6 to PHP 7.0 Migration Guide at PHP: Migrating from PHP 5.6.x to PHP 7.0.x - Manual. Update: PHP 7.0.0RC5 might need to remove geoip.ini settings file and recompile memcached php extensions via centmin.sh menu option 10

    Code:
    20 Aug 2015, PHP 7.0.0 RC 1
    
    - Core:
      . Fixed bug #70288 (Apache crash related to ZEND_SEND_REF). (Laruence)
      . Fixed bug #70262 (Accessing array crashes PHP 7.0beta3).
        (Laruence, Dmitry)
      . Fixed bug #70258 (Segfault if do_resize fails to allocated memory).
        (Laruence)
      . Fixed bug #70253 (segfault at _efree () in zend_alloc.c:1389). (Laruence)
      . Fixed bug #70240 (Segfault when doing unset($var());). (Laruence)
      . Fixed bug #70223 (Incrementing value returned by magic getter). (Laruence)
      . Fixed bug #70215 (Segfault when __invoke is static). (Bob)
      . Fixed bug #70207 (Finally is broken with opcache). (Laruence, Dmitry)
      . Fixed bug #70173 (ZVAL_COPY_VALUE_EX broken for 32bit Solaris Sparc).
        (Laruence, cmb)
      . Fixed bug #69487 (SAPI may truncate POST data). (cmb)
      . Fixed bug #70198 (Checking liveness does not work as expected).
        (Shafreeck Sea, Anatol Belski)
      . Fixed bug #70241/#70293 (Skipped assertions affect Generator returns). (Bob)
      . Fixed bug #70239 (Creating a huge array doesn't result in exhausted,
        but segfault). (Laruence, Anatol)
    
    - CLI server:
      . Fixed bug #66606 (Sets HTTP_CONTENT_TYPE but not CONTENT_TYPE).
        (wusuopu, cmb)
      . Fixed bug #70264 (CLI server directory traversal). (cmb)
    
    - Date:
      . Fixed bug #70245 (strtotime does not emit warning when 2nd parameter is
        object or string). (cmb)
      . Fixed bug #70266 (DateInterval::__construct.interval_spec is not supposed to
        be optional). (cmb)
      . Fixed bug #70277 (new DateTimeZone($foo) is ignoring text after null byte).
        (cmb)
    
    - MCrypt:
      . Fixed bug #69833 (mcrypt fd caching not working). (Anatol)
    
    - Opcache:
      . Fixed bug #70237 (Empty while and do-while segmentation fault with opcode
        on CLI enabled). (Dmitry, Laruence)
    
    - PCRE:
      . Fixed bug #70232 (Incorrect bump-along behavior with \K and empty string
        match). (cmb)
    
    - PDO:
      . Fixed bug #70272 (Segfault in pdo_mysql). (Laruence)
      . Fixed bug #70221 (persistent sqlite connection + custom function
        segfaults). (Laruence)
    
    - Phpdbg:
      . Fixed bug #70214 (FASYNC not defined, needs sys/file.h include). (Bob)
    
    - Standard:
      . Fixed bug #70250 (extract() turns array elements to references).
        (Laruence)
      . Fixed bug #70211 (php 7 ZEND_HASH_IF_FULL_DO_RESIZE use after free).
        (Laruence)
      . Fixed bug #70208 (Assert breaking access on objects). (Bob)
    August 20, 2015 commits for Centmin Mod 123.08stable and 123.09beta01 have been updated to support PHP-7.0.0RC* versions - to update specify version = 7.0.0RC1. Should be easy to update Centmin Mod via centmin.sh menu option 23 submenu option 2 (provided you setup git environment via centmin.sh menu option 1 first)

    example below

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.09 - 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.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 23
    --------------------------------------------------------
    
    Code:
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu     
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 2
    --------------------------------------------------------
    
    Updating Current Centmin Mod code branch via git
            cd /usr/local/src/centminmod
            git stash
            git pull
            chmod +x centmin.sh
    No local changes to save
    Updating e84b102..58c20c4
    Fast-forward
    addons/ius-repo.sh         |  139 +++++++++++++++++++++
    addons/python27_install.sh |  294 +++++++++++++++++---------------------------
    addons/python34_install.sh |  153 +++++++++++++++++++++++
    centmin.sh                 |    2 +-
    downloads/svr-setup.zip    |  Bin 33376303 -> 33378320 bytes
    inc/nginx_upgrade.inc      |    7 +
    inc/phpng_download.inc     |    4 +-
    7 files changed, 416 insertions(+), 183 deletions(-)
    create mode 100755 addons/ius-repo.sh
    create mode 100755 addons/python34_install.sh
    Then exit back to main menu and exit centmin.sh via option 24. Then re-run centmin.sh menu option 5 to update PHP to version = 7.0.0RC1

    Code:
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu     
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 4
    --------------------------------------------------------
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.09 - 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.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 24
    --------------------------------------------------------
    run centmin.sh menu option 5 to update to PHP = 7.0.0RC1 version at prompt

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.09 - 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.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 5
    --------------------------------------------------------
    
    Code:
    Do you want to run YUM install checks ?  [y/n]
    
    This will increase your upgrade duration time wise.
    Check the change log centminmod.com/changelog.html
    to see if any Nginx or PHP related new additions
    which require checking YUM prequisites are met.
    If no new additions made, you can skip the
    YUM install check to speed up upgrade time.
    
    [y/n]: n
    
    Code:
    PHP Upgrade - Would you like to continue? [y/n] y
    ----------------------------------------------------------------
    Install which version of PHP? (version i.e. 5.4.44, 7.0.0, NGDEBUG)
    PHP 7.0.0 is experimental in alpha status and may have broken PHP extensions.
    NGDEBUG is PHP 7.0.0 minus incompatible PHP extensions
    ----------------------------------------------------------------
    Enter PHP Version number you want to upgrade/downgrade to: 7.0.0RC1
    ----------------------------------------------------------------
    Want to update to latest php-fpm.conf ? (overwrites will auto backup existing php-fpm.conf)
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_190815-212503
    existing php-fpm.conf will be backed up at /usr/local/etc/php-fpm.conf-oldversion_190815-212503
    ----------------------------------------------------------------
    Update & overwrite your existing php-fpm.conf [y/n]: n
    ----------------------------------------------------------------
    Downloading PHP 7.0.0RC1 from https://downloads.php.net/~ab/
    Download php-7.0.0RC1.tar.gz ...
    wget -cnv https://downloads.php.net/~ab/php-7.0.0RC1.tar.gz --tries=3
    2015-08-19 21:25:22 URL:https://downloads.php.net/~ab/php-7.0.0RC1.tar.gz [17994556/17994556] -> "php-7.0.0RC1.tar.gz" [1]
    Download done.
    php-7.0.0RC1.tar.gz valid file.
    
    -----------------------------------------------------------------------------------------
    Detected PHP 7.0 branch.
    You can compile Zend OPcache (Zend Optimizer Plus+) support
    as an alternative to using APC Cache or Xcache cache.
    But Zend OPcache only provides PHP opcode cache and
    DOESN'T do data caching, so if you web apps such as Wordpress,
    Drupal or vBulletin require data caching to APC or Xcache,
    it won't work with Zend OPcache.
    
    -----------------------------------------------------------------------------------------
    Do you want to use Zend OPcache [y/n] ? y
    Once PHP 7.0.0 RC1 finishes compiling, you'll have a few errors related PHP Startup and unable to load PHP extensions, these are normal as not all PHP extensions are supported by PHP 7 as yet. There are additional notes to instruct you to delete a few php *.ini files for those respective unsupported PHP extensions

    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20141001/igbinary.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20141001/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20141001/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20141001/mailparse.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20141001/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20141001/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20141001/mongo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20141001/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20141001/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20141001/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    7.0
    0
    ***************************************************
    PHP 7.0 detected.. remove unsupported PHP extensions manually
    by removing their ini files:
    ***************************************************
    
    rm -rf /etc/centminmod/php.d/igbinary.ini
    #rm -rf /etc/centminmod/php.d/imagick.ini
    rm -rf /etc/centminmod/php.d/memcache.ini
    rm -rf /etc/centminmod/php.d/mongodb.ini
    rm -rf /etc/centminmod/php.d/redis.ini
    rm -rf /etc/centminmod/php.d/suhosin.ini
    
    then restart PHP-FPM again...
    Type those commands
    Code:
    rm -rf /etc/centminmod/php.d/igbinary.ini
    #rm -rf /etc/centminmod/php.d/imagick.ini
    rm -rf /etc/centminmod/php.d/memcache.ini
    rm -rf /etc/centminmod/php.d/mongodb.ini
    rm -rf /etc/centminmod/php.d/redis.ini
    rm -rf /etc/centminmod/php.d/suhosin.ini
    Restart PHP-FPM
    Code:
    fpmrestart
    a ta-da PHP 7.0.0RC1 :D

    Code:
    php -v
    PHP 7.0.0RC1 (cli) (built: Aug 19 2015 21:30:01)
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    PHP 7.0.0RC1 + memcached PHP extension
    Code:
    php --ri memcached
    
    memcached
    
    memcached support => enabled
    Version => 2.2.0
    libmemcached version => 1.0.18
    SASL support => yes
    Session support => yes
    igbinary support => no
    json support => yes
    msgpack support => no
    
    Directive => Local Value => Master Value
    memcached.sess_locking => 1 => 1
    memcached.sess_consistent_hash => 0 => 0
    memcached.sess_binary => 0 => 0
    memcached.sess_lock_wait => 150000 => 150000
    memcached.sess_lock_max_wait => 0 => 0
    memcached.sess_lock_expire => 0 => 0
    memcached.sess_prefix => memc.sess.key. => memc.sess.key.
    memcached.sess_number_of_replicas => 0 => 0
    memcached.sess_randomize_replica_read => 0 => 0
    memcached.sess_remove_failed => 0 => 0
    memcached.sess_connect_timeout => 3000 => 3000
    memcached.sess_sasl_username => no value => no value
    memcached.sess_sasl_password => no value => no value
    memcached.compression_type => fastlz => fastlz
    memcached.compression_factor => 1.3 => 1.3
    memcached.compression_threshold => 2000 => 2000
    memcached.serializer => php => php
    memcached.use_sasl => 0 => 0
    memcached.store_retry_count => 2 => 2
    
    PHP 7.0.0RC1 + imagick PHP extension
    Code:
    php --ri imagick
    
    imagick
    
    imagick module => enabled
    imagick module version => @PACKAGE_VERSION@
    imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
    Imagick compiled with ImageMagick version => ImageMagick 6.9.1-10 Q16 x86_64 2015-07-27 http://www.imagemagick.org
    Imagick using ImageMagick library version => ImageMagick 6.9.1-10 Q16 x86_64 2015-07-27 http://www.imagemagick.org
    ImageMagick copyright => Copyright (C) 1999-2015 ImageMagick Studio LLC
    ImageMagick release date => 2015-07-27
    ImageMagick number of supported formats:  => 219
    ImageMagick supported formats => 3FR, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FRACTAL, FTS, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    
    Directive => Local Value => Master Value
    imagick.locale_fix => 0 => 0
    imagick.skip_version_check => 0 => 0
    imagick.progress_monitor => 0 => 0
     
    Last edited: Oct 17, 2015
    • Like Like x 1
    • Informative Informative x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    folks at LiteSpeed did a OpenLiteSpeed HHVM vs PHP 7 benchmark run at PHP 7 vs HHVM Benchmark Series 2: WordPress « LiteSpeed Blog :)

    [​IMG]

    I definitely prefer PHP 7.. easier to install, less memory leaks compared to HHVM and very close performance to HHVM :)

    Another PHP 7 vs HHVM benchmark at WordPress 4.3 benchmark: HHVM 3.9 vs PHP 7.0 | _ck_ says...

     
    • Like Like x 1
  3. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    6:54 PM
    @eva2000
    Got these errors after upgrading to 7rc1 and restart fpm
    Code:
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    I was restarting fpm under cmdir (/usr/local/src/centminmod /)
    If I go to / and restart fpm, the errors went away.
     
    Last edited: Aug 20, 2015
  4. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    @Andy which command did you use to restart php-fpm ? you did exist centmin.sh after 123.08stable git update via centmin.sh menu option 24 and then cd back into /usr/local/src/centminmod manually i.e.
    Code:
    cd /usr/local/src/centminmod
    and not use cmdir cmd shortcut ? or did you use cmdir cmd shortcut ?
     
  5. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    6:54 PM
    I had no problem with using cmdir shortcut. it will go to /usr/local/src/centminmod /
    When I under that directory, running cenmin.sh, upgrade php to 7rc1 and then run fpmrestart.
    I got the errors then.

    Then I just use cd / and run fpmrestart again without errors.
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    is this on CentOS 7.1 ? with Linode or other web host like RamNode CentOS 7 + OpenVZ ?

    This is on my CentOS 6.7 + PHP 7.0.0RC1 OpenVZ server
    Code:
    cmdir
    /usr/local/src/centminmod ~
    
    fpmrestart
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done
    Code:
    cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod ~
    
    service php-fpm restart
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
  8. RoldanLT

    RoldanLT Well-Known Member

    3,931
    960
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,311
    Local Time:
    7:54 AM
    1.11
    10.2
    and I don't use magento :D
    How about for XenForo :D
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    You're free to benchmark - Centmin Mod LEMP stack includes Siege benchmark tool - e.g. Benchmarks - CentminMod.com LEMP Nginx web stack for CentOS
    Code:
    siege -v
    SIEGE 3.1.0
    Usage: siege [options]
           siege [options] URL
           siege -g URL
    Options:
      -V, --version             VERSION, prints the version number.
      -h, --help                HELP, prints this section.
      -C, --config              CONFIGURATION, show the current config.
      -v, --verbose             VERBOSE, prints notification to screen.
      -q, --quiet               QUIET turns verbose off and suppresses output.
      -g, --get                 GET, pull down HTTP headers and display the
                                transaction. Great for application debugging.
      -c, --concurrent=NUM      CONCURRENT users, default is 10
      -i, --internet            INTERNET user simulation, hits URLs randomly.
      -b, --benchmark           BENCHMARK: no delays between requests.
      -t, --time=NUMm           TIMED testing where "m" is modifier S, M, or H
                                ex: --time=1H, one hour test.
      -r, --reps=NUM            REPS, number of times to run the test.
      -f, --file=FILE           FILE, select a specific URLS FILE.
      -R, --rc=FILE             RC, specify an siegerc file
      -l, --log[=FILE]          LOG to FILE. If FILE is not specified, the
                                default is used: PREFIX/var/siege.log
      -m, --mark="text"         MARK, mark the log file with a string.
      -d, --delay=NUM           Time DELAY, random delay before each requst
                                between .001 and NUM. (NOT COUNTED IN STATS)
      -H, --header="text"       Add a header to request (can be many)
      -A, --user-agent="text"   Sets User-Agent in request
      -T, --content-type="text" Sets Content-Type in request
    I also have CentOS 6 Docker Siege container image with a full set of bundled benchmarking tools including Siege, wrk, wrk2, weighttp, slowhttptest, apache benchmark (ab), httperf, locust, and Multi-Mechanize. Read respective manuals for how to use :) Forum thread in Centmin Mod Docker Dev forums at Docker Image - CentOS 6.6 + Siege & http benchmark tools | Centmin Mod Community
     
    Last edited: Aug 20, 2015
  10. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Informative Informative x 1
  11. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    FYI, Wordpress 4.3 was released with better PHP 7 support
    Updated my Wordpress 7 blog to PHP 7.0.0RC1 and Wordpress 4.3 :)

    FYI, the wp-cli command line tool used for centmin.sh menu option 22 for auto installing Wordpress + WP Super Cache has a few PHP 7 issues see WP-CLI doesn't work in PHP 7 · Issue #1842 · wp-cli/wp-cli · GitHub

    Code:
    wp cli update --allow-root
    Warning: The `wp cli update` command has an invalid synopsis part: [--patch]
    Warning: The `wp cli update` command has an invalid synopsis part: [--minor]
    Warning: The `wp cli update` command has an invalid synopsis part: [--yes]
    Success: WP-CLI is at the latest version.
    but looks like it proceed the update fine

    however, doesn't work for centmin.sh menu option 22 when running PHP 7.0.0RC1 :( So if you want to test with Wordpress + PHP 7.0.0RC1, you want to create the wordpress Nginx vhost via centmin.sh menu option 22 while on PHP 5.4/5.5/5.6 and then update to PHP 7.0.0RC1

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.09 - 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.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 22
    --------------------------------------------------------
    
    Code:
    ------------------------------------------------------------
    Update wp-cli tool
    ------------------------------------------------------------
    Warning: The `wp cli update` command has an invalid synopsis part: [--patch]
    Warning: The `wp cli update` command has an invalid synopsis part: [--minor]
    Warning: The `wp cli update` command has an invalid synopsis part: [--yes]
    Success: WP-CLI is at the latest version.
    
    ---------------------------------------------
    Setup full Nginx vhost + Wordpress + WP Super Cache
    ---------------------------------------------
    
    Enter vhost domain name you want to add (without www. prefix): newdomain4.com
    Enter email address for Wordpress Installation: MYEMAIL
    Create FTP username for vhost domain (enter username): wpusera
    Do you want to auto generate FTP password (recommended) [y/n]: y
    
    FTP username you entered: wpusera
    FTP password auto generated: hzAonoh1kz6ksHs6DypVE
    
    Password:
    Enter it again:
    /usr/local/nginx/conf/htpasswd.sh create /home/nginx/domains/newdomain4.com/htpasswd_wplogin uttqYPiGE2VZSjx24649 pi1PRbLYg0wBKuSPf+g+y24649
    
    /home/nginx/domains/newdomain4.com/htpasswd_wplogin contents:
    uttqYPiGE2VZSjx24649:$apr1$qPZdPl5C$fGItVr0rBXKzEWNLYcgkQ0
    ------------------------------------------------------------
    Setup Wordpress + Super Cache for newdomain4.com
    ------------------------------------------------------------
    Warning: The `wp core download` command has an invalid synopsis part: [--force]
    Downloading WordPress 4.3 (en_US)...
    Success: WordPress downloaded.
    Warning: The `wp core config` command has an invalid synopsis part: [--extra-php]
    Warning: The `wp core config` command has an invalid synopsis part: [--skip-salts]
    Warning: The `wp core config` command has an invalid synopsis part: [--skip-check]
    Success: Generated wp-config.php file.
    Success: WordPress installed successfully.
    Fortunately, centmin.sh menu option 22 also has easy uninstall/wipe of the failed setup via output uninstall script /root/tools/wp_uninstall_newdomain4.com.sh
    Code:
    ------------------------------------------------------------
    newdomain4.com created
    nginx vhost: /usr/local/nginx/conf/conf.d/newdomain4.com.conf
    newdomain4.com public web root: /home/nginx/domains/newdomain4.com/public
    newdomain4.com log directory: /home/nginx/domains/newdomain4.com/log
    
    ------------------------------------------------------------
    SSH commands to uninstall created Wordpress install and Nginx vhost:
      /root/tools/wp_uninstall_newdomain4.com.sh
    ------------------------------------------------------------
    
    ------------------------------------------------------------
    Wordpress Auto Updater created at:
      /root/tools/wp_updater_newdomain4.com.sh
    cronjob set for every 8 hours update (3x times per day)
    ------------------------------------------------------------
    Code:
    Wordpress domain: newdomain4.com
    Wordpress DB Name: wp11063db_28400
    Wordpress DB User: wpdb28400u25430
    Wordpress DB Pass: wpdbJGODgKrwSlx4p16189
    Wordpress Admin User ID: 781214
    Wordpress Admin User: zvxwHp75XXBGQGCtb2vwp14619
    Wordpress Admin Pass: z6tkWVA4kmwps6399
    contents of /root/tools/wp_uninstall_newdomain4.com.sh
    Code:
    #/bin/bash
    rm -rf /usr/local/nginx/conf/conf.d/newdomain4.com.conf
    rm -rf /home/nginx/domains/newdomain4.com
    rm -rf /usr/local/nginx/conf/wpsecure_newdomain4.com.conf
    rm -rf /usr/local/nginx/conf/wpsupercache_newdomain4.com.conf
    rm -rf /root/tools/wp_updater_newdomain4.com.sh
    crontab -l > cronjoblist
    sed -i "/wp_updater_newdomain4.com.sh/d" cronjoblist
    crontab cronjoblist
    rm -rf cronjoblist
    then drop mysql database
    Code:
    mysqladmin drop wp11063db_28400
    Dropping the database is potentially a very bad thing to do.
    Any data stored in the database will be destroyed.
    
    Do you really want to drop the 'wp11063db_28400' database [y/N] y
    Database "wp11063db_28400" dropped
     
    Last edited: Aug 20, 2015
    • Like Like x 1
  12. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    Because WP-CLI cmd tool for wordpress install isn't working for centmin.sh menu option 22 with PHP 7, I wrote a modified version of /tools/nv.sh (/usr/bin/nv) command line too for Centmin Mod Nginx vhost auto setup and added Wordpress database and latest download + Nginx wordpress vhost config routines to it without WP-CLI. This tool has been added to 123.09beta01 branch at tools/nvwp.sh - you can download standalone file here.

    What this means is I can't install Wordpress plugins like Super Cache automatically but I can get Wordpress mysql database, user and nginx vhost setup first.

    Then all you need is to visit the site in web browser to complete the Wordpress install.

    Actual command to setup Nginx vhost for newdomain3.com with self signed SSL enabled and pure-ftpd virtual ftp username = ftpusr003

    Code:
    ./nvwp.sh -d newdomain3.com -s y -u ftpusr003
    Code:
    ./nvwp.sh -d newdomain3.com -s y -u ftpusr003
    ---------------------------------------------------------------
    Nginx Vhost Setup...
    ---------------------------------------------------------------
    FTP password auto generated: Rm8L4TD9L4MHQPci44Wgq
    
    Password:
    Enter it again:
    /usr/local/nginx/conf/htpasswd.sh create /home/nginx/domains/newdomain3.com/htpasswd_wplogin uy+8zcGN+P+HmYx25586 p37LChHl97FKvc4PW8Yxy25586
    
    /home/nginx/domains/newdomain3.com/htpasswd_wplogin contents:
    uy+8zcGN+P+HmYx25586:$apr1$4RmP4Syb$dAoWAbzxQoodTlQVI4bS61
    ---------------------------------------------------------------
    SSL Vhost Setup...
    ---------------------------------------------------------------
    
    ---------------------------------------------------------------
    Generating self signed SSL certificate...
    Generating a 2048 bit RSA private key
    .....+++
    .............................................................................+++
    writing new private key to 'newdomain3.com.key'
    -----
    Signature ok
    subject=/C=US/ST=California/L=Los Angeles/O=newdomain3.com/CN=newdomain3.com
    Getting Private key
    ---------------------------------------------------------------
    Generating dhparam.pem file - can take a few minutes...
    Generating DH parameters, 2048 bit long safe prime, generator 2
    This is going to take a long time
    ..++*++*
    dhparam file generation time: 124.833351005
    ---------------------------------------------------------------
    Setup Wordpress + Super Cache (vhost only disabled by default) for newdomain3.com
    ---------------------------------------------------------------
    2015-08-20 13:27:09 URL:https://wordpress.org/latest.zip [7088086/7088086] -> "latest.zip" [1]
    Archive:  latest.zip
       creating: wordpress/
    
    ------------------------------------------------------------
    Created uninstall script
    /root/tools/wp_uninstall_newdomain3.com.sh
    ------------------------------------------------------------
    
    Code:
    -------------------------------------------------------------
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    Stopping nginx:                                            [  OK  ]
    Starting nginx:                                            [  OK  ]
    service pure-ftpd restart
    
    -------------------------------------------------------------
    FTP hostname : IPADDRESS
    FTP port : 21
    FTP mode : FTP (explicit SSL)
    FTP Passive (PASV) : ensure is checked/enabled
    FTP username created for newdomain3.com : ftpusr003
    FTP password created for newdomain3.com : Rm8L4TD9L4MHQPci44Wgq
    -------------------------------------------------------------
    vhost for newdomain3.com created successfully
    
    domain: http://newdomain3.com
    vhost conf file for newdomain3.com created: /usr/local/nginx/conf/conf.d/newdomain3.com.conf
    
    vhost ssl for newdomain3.com created successfully
    
    domain: https://newdomain3.com
    vhost ssl conf file for newdomain3.com created: /usr/local/nginx/conf/conf.d/newdomain3.com.ssl.conf
    /usr/local/nginx/conf/ssl_include.conf created
    Self-signed SSL Certificate: /usr/local/nginx/conf/ssl/newdomain3.com/newdomain3.com.crt
    SSL Private Key: /usr/local/nginx/conf/ssl/newdomain3.com/newdomain3.com.key
    SSL CSR File: /usr/local/nginx/conf/ssl/newdomain3.com/newdomain3.com.csr
    
    upload files to /home/nginx/domains/newdomain3.com/public
    vhost log files directory is /home/nginx/domains/newdomain3.com/log
    
    ------------------------------------------------------------
    SSH commands to uninstall created Wordpress install and Nginx vhost:
      /root/tools/wp_uninstall_newdomain3.com.sh
    ------------------------------------------------------------
    
    Code:
    Wordpress domain: newdomain3.com
    Wordpress DB Name: wp18251db_4151
    Wordpress DB User: wpdb4151u7535
    Wordpress DB Pass: wpdbZPkuXZ9yK5dSp8745
    
    Wordpress wp-login.php password protection info:
    wp-login.php protection file /home/nginx/domains/newdomain3.com/htpasswd_wplogin
    wp-login.php protection Username: uy+8zcGN+P+HmYx25586
    wp-login.php protection Password: p37LChHl97FKvc4PW8Yxy25586
    http://uy+8zcGN+P+HmYx25586:p37LChHl97FKvc4PW8Yxy25586@newdomain3.com/wp-login.php
    
    Resetting wp-login.php protection:
    Step 1. remove protection file at /home/nginx/domains/newdomain3.com/htpasswd_wplogin
         rm -rf /home/nginx/domains/newdomain3.com/htpasswd_wplogin
    Step 2. run command:
         /usr/local/nginx/conf/htpasswd.sh create /home/nginx/domains/newdomain3.com/htpasswd_wplogin YOURUSERNAME YOURPASSWORD
    Step 3. restart Nginx + PHP-FPM services
         nprestart
    
    -------------------------------------------------------------
    Current vhost listing at: /usr/local/nginx/conf/conf.d/
    
    Aug 16  23:42   845    ssl.conf
    Aug 16  23:42   1.1K   demodomain.com.conf
    Aug 16  23:48   1.6K   virtual.conf
    Aug 20  13:12   2.1K   newdomain.com.conf
    Aug 20  13:12   3.8K   newdomain.com.ssl.conf
    Aug 20  13:15   3.8K   newdomain2.com.ssl.conf
    Aug 20  13:18   2.1K   newdomain2.com.conf
    Aug 20  13:27   2.1K   newdomain3.com.conf
    Aug 20  13:27   3.8K   newdomain3.com.ssl.conf
    
    -------------------------------------------------------------
    Current vhost ssl files listing at: /usr/local/nginx/conf/ssl/newdomain3.com
    
    Aug 20  13:24   1.7K   newdomain3.com.key
    Aug 20  13:24   1009   newdomain3.com.csr
    Aug 20  13:24   1.2K   newdomain3.com.crt
    Aug 20  13:27   424    dhparam.pem
    Then visit newdomain3.com in web browser and manually install Wordpress

    wp-install-00.png
    wp-install-01.png

    wp-install-02.png

    /home/nginx/domains/newdomain3.com/public/wp-config.php contents look okay too :D
    Code:
    <?php
    /**
    * The base configuration for WordPress
    *
    * The wp-config.php creation script uses this file during the
    * installation. You don't have to use the web site, you can
    * copy this file to "wp-config.php" and fill in the values.
    *
    * This file contains the following configurations:
    *
    * * MySQL settings
    * * Secret keys
    * * Database table prefix
    * * ABSPATH
    *
    * @link https://codex.wordpress.org/Editing_wp-config.php
    *
    * @package WordPress
    */
    
    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'wp18251db_4151');
    
    /** MySQL database username */
    define('DB_USER', 'wpdb4151u7535');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'wpdbZPkuXZ9yK5dSp8745');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');
    
    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');
    
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    
    /**#@+
    * Authentication Unique Keys and Salts.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
    * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
    *
    * @since 2.6.0
    */
    define('AUTH_KEY',         '61tiA+E5-Y>*B~:RyLI.vx:)]WB>[E^:Ms=aa,:[@C>Q>f{7e(:sx,=5DD.8k:`U');
    define('SECURE_AUTH_KEY',  'L{[ A_cJhKpA0Od3X1TORjLjFr5l^S5A@nfmCj<3]bXWG5{~ oy{fz>^8L{2-&T/');
    define('LOGGED_IN_KEY',    '6^K.G&)=oc{=Z]?Gk1/^|6XY#P#MMh.O)w&W/yX^jvAgk^c20BIBOwdxQm)o!_e3');
    define('NONCE_KEY',        'UQV]mm6fJSpYxPkIZ@k8MM@Ld|GIv( Wk9JWeNORBQV4LeGS P[aA;JzBMe*3;Hr');
    define('AUTH_SALT',        'O?0K:Sq.[Dp10n03Q,1E3Ej_Ai?5Ls&0?=EQ9b].*:0,<d5@7p*s(-|c3ht==`ZI');
    define('SECURE_AUTH_SALT', 'ZelS:k{Wtrc.>;prin :aOn{3B-V!}xbP};k(#)@?PStr_=~uT;iyu~j36|c6hxB');
    define('LOGGED_IN_SALT',   'sXyQDe6XE4}V0fJ1FRVcD.)f>HBad.!I8vpK:SL}5k,!OptMwTlf)alm1DOP;+dH');
    define('NONCE_SALT',       '`blh=BbTRs7)=e&/,<0#KMxg2Et=0<DuyHjJ[;Ws20uzyiK/)aEtAPpQzGK  jwF');
    
    /**#@-*/
    
    /**
    * WordPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each
    * a unique prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix  = '3261_';
    
    /**
    * For developers: WordPress debugging mode.
    *
    * Change this to true to enable the display of notices during development.
    * It is strongly recommended that plugin and theme developers use WP_DEBUG
    * in their development environments.
    *
    * For information on other constants that can be used for debugging,
    * visit the Codex.
    *
    * @link https://codex.wordpress.org/Debugging_in_WordPress
    */
    define('WP_DEBUG', false);
    
    /* That's all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
            define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
    Ran this on 123.09beta01 build so Nginx is patched for HTTP/2 so when you visit the self-signed SSL name you see :)

    wp-install-03.png

    And since Nginx is compiled against LibreSSL native chacha20_poly1305 cipher support out of the box :)

    wp-install-04.png

    Nginx vhost auto generated for newdomain3.com is also setup for rate limiting like centmin.sh menu option 22

    /usr/local/nginx/conf/conf.d/newdomain3.com.conf

    Code:
    # Centmin Mod Getting Started Guide
    # must read http://centminmod.com/getstarted.html
    
    # redirect from non-www to www
    # uncomment, save file and restart Nginx to enable
    # if unsure use return 302 before using return 301
    #server {
    #            listen   80;
    #            server_name newdomain3.com;
    #            return 301 $scheme://www.newdomain3.com$request_uri;
    #       }
    
    server {
      server_name newdomain3.com www.newdomain3.com;
    
    # ngx_pagespeed & ngx_pagespeed handler
    #include /usr/local/nginx/conf/pagespeed.conf;
    #include /usr/local/nginx/conf/pagespeedhandler.conf;
    #include /usr/local/nginx/conf/pagespeedstatslog.conf;
    
      # limit_conn limit_per_ip 16;
      # ssi  on;
    
      access_log /home/nginx/domains/newdomain3.com/log/access.log combined buffer=256k flush=60m;
      error_log /home/nginx/domains/newdomain3.com/log/error.log;
    
      root /home/nginx/domains/newdomain3.com/public;
    
      # prevent access to ./directories and files
      location ~ (?:^|/)\. {
       deny all;
      }
    
    include /usr/local/nginx/conf/wpsupercache_newdomain3.com.conf;
    
      location / {
    
      # Enables directory listings when index file not found
      #autoindex  on;
    
      # for wordpress super cache plugin
      #try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php?q=$uri&$args;
    
      # Wordpress Permalinks
      try_files $uri $uri/ /index.php?q=$uri&$args;
    
      }
    
    location ~* /(wp-login\.php) {
        limit_req zone=xwplogin burst=1 nodelay;
        #limit_conn xwpconlimit 30;
        auth_basic "Private";
        auth_basic_user_file /home/nginx/domains/newdomain3.com/htpasswd_wplogin;
        include /usr/local/nginx/conf/php-wpsc.conf;
    }
    
    location ~* /(xmlrpc\.php) {
        limit_req zone=xwplogin burst=2 nodelay;
        #limit_conn xwpconlimit 30;
        include /usr/local/nginx/conf/php-wpsc.conf;
    }
    
      include /usr/local/nginx/conf/wpsecure_newdomain3.com.conf;
      include /usr/local/nginx/conf/php-wpsc.conf;
      include /usr/local/nginx/conf/staticfiles.conf;
      include /usr/local/nginx/conf/drop.conf;
      #include /usr/local/nginx/conf/errorpage.conf;
      include /usr/local/nginx/conf/vts_server.conf;
    }
    and ssl version /usr/local/nginx/conf/conf.d/newdomain3.com.ssl.conf with Nginx HTTP/2 support

    Code:
    # Centmin Mod Getting Started Guide
    # must read http://centminmod.com/getstarted.html
    # For SPDY SSL Setup
    # read http://centminmod.com/nginx_configure_https_ssl_spdy.html
    
    # redirect from www to non-www  forced SSL
    # uncomment, save file and restart Nginx to enable
    # if unsure use return 302 before using return 301
    # server {
    #   server_name newdomain3.com www.newdomain3.com;
    #    return 302 https://$server_name$request_uri;
    # }
    
    server {
      listen 443 ssl http2;
      server_name newdomain3.com www.newdomain3.com;
    
      ssl_dhparam /usr/local/nginx/conf/ssl/newdomain3.com/dhparam.pem;
      ssl_certificate      /usr/local/nginx/conf/ssl/newdomain3.com/newdomain3.com.crt;
      ssl_certificate_key  /usr/local/nginx/conf/ssl/newdomain3.com/newdomain3.com.key;
      include /usr/local/nginx/conf/ssl_include.conf;
    
      # mozilla recommended
      ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA:!CAMELLIA;
      ssl_prefer_server_ciphers   on;
      add_header Alternate-Protocol  443:npn-spdy/3;
      #add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
      #add_header  X-Content-Type-Options "nosniff";
      #add_header X-Frame-Options DENY;
      #spdy_headers_comp 5;
      ssl_buffer_size 1400;
      ssl_session_tickets on;
    
      # enable ocsp stapling
      #resolver 8.8.8.8 8.8.4.4 valid=10m;
      #resolver_timeout 10s;
      #ssl_stapling on;
      #ssl_stapling_verify on;
      #ssl_trusted_certificate /usr/local/nginx/conf/ssl/newdomain3.com/newdomain3.com-trusted.crt;
    
    # ngx_pagespeed & ngx_pagespeed handler
    #include /usr/local/nginx/conf/pagespeed.conf;
    #include /usr/local/nginx/conf/pagespeedhandler.conf;
    #include /usr/local/nginx/conf/pagespeedstatslog.conf;
    
      # limit_conn limit_per_ip 16;
      # ssi  on;
    
      access_log /home/nginx/domains/newdomain3.com/log/access.log combined buffer=256k flush=60m;
      error_log /home/nginx/domains/newdomain3.com/log/error.log;
    
      root /home/nginx/domains/newdomain3.com/public;
    
      # prevent access to ./directories and files
      location ~ (?:^|/)\. {
       deny all;
      }
    
    include /usr/local/nginx/conf/wpsupercache_newdomain3.com.conf;
    
      location / {
    
      # Enables directory listings when index file not found
      #autoindex  on;
    
      # for wordpress super cache plugin
      #try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php?q=$uri&$args;
    
      # Wordpress Permalinks
      try_files $uri $uri/ /index.php?q=$uri&$args;
    
      }
    
    location ~* /(wp-login\.php) {
        limit_req zone=xwplogin burst=1 nodelay;
        #limit_conn xwpconlimit 30;
        auth_basic "Private";
        auth_basic_user_file /home/nginx/domains/newdomain3.com/htpasswd_wplogin;
        include /usr/local/nginx/conf/php-wpsc.conf;
    }
    
    location ~* /(xmlrpc\.php) {
        limit_req zone=xwplogin burst=2 nodelay;
        #limit_conn xwpconlimit 30;
        include /usr/local/nginx/conf/php-wpsc.conf;
    }
    
      include /usr/local/nginx/conf/wpsecure_newdomain3.com.conf;
      include /usr/local/nginx/conf/php-wpsc.conf;
      include /usr/local/nginx/conf/staticfiles.conf;
      include /usr/local/nginx/conf/drop.conf;
      #include /usr/local/nginx/conf/errorpage.conf;
      include /usr/local/nginx/conf/vts_server.conf;
    }
    contents of newdomain3.com web root at /home/nginx/domains/newdomain3.com/public
    Code:
    ls -lAh /home/nginx/domains/newdomain3.com/public
    total 208K
    -rw-r-----  1 nginx nginx 1.6K Aug 20 13:24 403.html
    -rw-r-----  1 nginx nginx 1.6K Aug 20 13:24 404.html
    -rw-r-----  1 nginx nginx 2.1K Aug 20 13:24 500.html
    -rw-r-----  1 nginx nginx 2.1K Aug 20 13:24 502.html
    -rw-r-----  1 nginx nginx 2.2K Aug 20 13:24 503.html
    -rw-r-----  1 nginx nginx 2.1K Aug 20 13:24 504.html
    -rw-r-----  1 nginx nginx 2.2K Aug 20 13:24 50x.html
    -rw-r-----  1 nginx nginx 1.4K Aug 20 13:24 index.html
    -rw-r--r--  1 nginx nginx  418 Aug 20 13:27 index.php
    -rw-r--r--  1 nginx nginx  20K Aug 20 13:27 license.txt
    -rw-r-----  1 nginx nginx 2.2K Aug 20 13:24 maintenance.html
    -rw-r--r--  1 nginx nginx 4.9K Aug 20 13:27 wp-activate.php
    drwxr-sr-x  9 nginx nginx 4.0K Aug 20 13:27 wp-admin
    -rw-r--r--  1 nginx nginx  271 Aug 20 13:27 wp-blog-header.php
    -rw-r--r--  1 nginx nginx 4.9K Aug 20 13:27 wp-comments-post.php
    -rw-r--r--  1 nginx nginx 3.0K Aug 20 13:27 wp-config.php
    -rw-r--r--  1 nginx nginx 2.7K Aug 20 13:27 wp-config-sample.php
    drwxr-s---  5 nginx nginx 4.0K Aug 20 13:30 wp-content
    -rw-r--r--  1 nginx nginx 3.3K Aug 20 13:27 wp-cron.php
    drwxr-sr-x 12 nginx nginx 4.0K Aug 20 13:27 wp-includes
    -rw-r--r--  1 nginx nginx 2.4K Aug 20 13:27 wp-links-opml.php
    -rw-r--r--  1 nginx nginx 3.1K Aug 20 13:27 wp-load.php
    -rw-r--r--  1 nginx nginx  34K Aug 20 13:27 wp-login.php
    -rw-r--r--  1 nginx nginx 8.1K Aug 20 13:27 wp-mail.php
    -rw-r--r--  1 nginx nginx  11K Aug 20 13:27 wp-settings.php
    -rw-r--r--  1 nginx nginx  25K Aug 20 13:27 wp-signup.php
    -rw-r--r--  1 nginx nginx 4.0K Aug 20 13:27 wp-trackback.php
    -rw-r--r--  1 nginx nginx 3.0K Aug 20 13:27 xmlrpc.php
    So folks wanting to play with PHP 7 and Wordpress 4.3+ can do so now :D
     
    Last edited: Aug 21, 2015
  13. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    FYI, if you're testing Wordpress there's a demo-data-creator wp plugin at oss-performance/targets/wordpress at master · hhvm/oss-performance · GitHub :)

    For Centmin Mod LEMP installs, you can download and put in place the wp plugin via commands, changing vhostname variable to your domain of course

    Code:
    vhostname=newdomain3.com
    
    wget https://github.com/hhvm/oss-performance/raw/master/targets/wordpress/demo-data-creator-1.3.2.zip
    unzip demo-data-creator-1.3.2.zip -d /home/nginx/domains/${vhostname}/public/wp-content/plugins/demodata/
    mv /home/nginx/domains/${vhostname}/public/wp-content/plugins/demodata/demo-data-creator/* /home/nginx/domains/${vhostname}/public/wp-content/plugins/demodata
    rm -rf /home/nginx/domains/${vhostname}/public/wp-content/plugins/demodata/demo-data-creator/
    demo-data-creator-00.png demo-data-creator-01.png
     
  14. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    Looks like Intel and Google are wanting to lend a helping hand for PHP 7 development, so even more performance to come Google and Intel to Help PHP 7 to Become Faster and More Secure ?

     
    Last edited: Aug 21, 2015
  15. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
  16. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    FYI, PHP 7.0.0RC2 is due in ~2+ days time :D
     
    • Informative Informative x 1
  17. RoldanLT

    RoldanLT Well-Known Member

    3,931
    960
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,311
    Local Time:
    7:54 AM
    1.11
    10.2
    • Like Like x 1
  18. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    FYI, PHP 7.0.0RC3 coming in 24-48hrs depending on your timezone :D

    edit: oh i see it's hear already https://downloads.php.net/~ab/php-7.0.0RC3.tar.gz ahead of time :)

    Code:
    17 Sep 2015, PHP 7.0.0 RC 3
    
    - Core:
      . Fixed bug #70431 (Memory leak in php_ini.c). (Senthil, Laruence)
      . Fixed bug #70478 (**= does no longer work). (Bob)
    
    - CLI server:
      . Fixed bug #68291 (404 on urls with '+'). (cmb)
    
    - DOM:
      . Fixed bug #70001 (Assigning to DOMNode::textContent does additional entity
        encoding). (cmb)
    
    - Intl:
      . Fixed bug #70453 (IntlChar::foldCase() incorrect arguments and missing
        constants). (cmb)
      . Fixed bug #70454 (IntlChar::forDigit second parameter should be optional).
        (cmb, colinodell)
    
    - Mysqlnd:
      . Fixed bug #70456 (mysqlnd doesn't activate TCP keep-alive when connecting to
        a server). (Sergei Turchanov)
    
    - Opcache:
      . Fixed bug #70423 (Warning Internal error: wrong size calculation). (Anatol)
    
    - OpenSSL
      . Fixed bug #55259 (openssl extension does not get the DH parameters from
        DH key resource). (Jakub Zelenka)
      . Fixed bug #70395 (Missing ARG_INFO for openssl_seal()). (cmb)
      . Fixed bug #60632 (openssl_seal fails with AES). (Jakub Zelenka)
      . Implemented FR #70438 (Add IV parameter for openssl_seal and openssl_open)
        (Jakub Zelenka)
    
    - Phpdbg:
      . Fixed bug #70449 (PHP won't compile on 10.4 and 10.5 because of missing
        constants). (Bob)
    
    - Session:
      . Fixed bug #70013 (Reference to $_SESSION is lost after a call to
        session_regenerate_id()). (Yasuo)
    
    - Standard:
      . Implemented the RFC `Random Functions Throwing Exceptions in PHP 7`.
        (Sammy Kaye Powers, Anthony)
      . Fixed bug #70487 (pack('x') produces an error). (Nikita)
    
    - Streams:
      . Fixed bug #70361 (HTTP stream wrapper doesn't close keep-alive connections).
        (Niklas Keller)
    
    - XMLReader:
      . Fixed bug #70309 (XmlReader read generates extra output). (Anatol)
    
    - Zip:
      . Fixed bug #70322 (ZipArchive::close() doesn't indicate errors). (cmb)
    updated wordpress7.centminmod.com - Centmin Mod LEMP stack Wordpress Auto Installer on CentOS 7.0 to PHP 7.0.0RC3 :D

    Code:
    php -v
    PHP 7.0.0RC3 (cli) (built: Sep 15 2015 21:17:36)
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    interesting only igbinary and redis extensions had errors now

    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20141001/igbinary.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20141001/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20141001/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20141001/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    so only 2 removals needed
    Code:
    rm -rf /etc/centminmod/php.d/igbinary.ini
    rm -rf /etc/centminmod/php.d/redis.ini
    nprestart
    Code:
    php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/zendopcache.ini
    Code:
    php --ri geoip
    
    geoip
    
    geoip support => enabled
    geoip extension version => 1.1.1-dev
    geoip library version => 1005000
    
    Directive => Local Value => Master Value
    geoip.custom_directory => /usr/share/GeoIP => /usr/share/GeoIP
    Code:
    php --ri memcached
    
    memcached
    
    memcached support => enabled
    Version => 2.2.0
    libmemcached version => 1.0.16
    SASL support => yes
    Session support => yes
    igbinary support => no
    json support => yes
    msgpack support => no
    
    Directive => Local Value => Master Value
    memcached.sess_locking => 1 => 1
    memcached.sess_consistent_hash => 0 => 0
    memcached.sess_binary => 0 => 0
    memcached.sess_lock_wait => 150000 => 150000
    memcached.sess_lock_max_wait => 0 => 0
    memcached.sess_lock_expire => 0 => 0
    memcached.sess_prefix => memc.sess.key. => memc.sess.key.
    memcached.sess_number_of_replicas => 0 => 0
    memcached.sess_randomize_replica_read => 0 => 0
    memcached.sess_remove_failed => 0 => 0
    memcached.sess_connect_timeout => 3000 => 3000
    memcached.sess_sasl_username => no value => no value
    memcached.sess_sasl_password => no value => no value
    memcached.compression_type => fastlz => fastlz
    memcached.compression_factor => 1.3 => 1.3
    memcached.compression_threshold => 2000 => 2000
    memcached.serializer => php => php
    memcached.use_sasl => 0 => 0
    memcached.store_retry_count => 2 => 2
    Code:
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    imap
    intl
    json
    libxml
    mbstring
    mcrypt
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
     
    Last edited: Sep 16, 2015
    • Informative Informative x 1
  19. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    Nice PHP: todo: php70
    Code:
    Jun 11 2015    Alpha 1
    Jun 25 2015    Alpha 2
    Jul 09 2015    Beta 1
    Jul 23 2015    Beta 2
    Aug 06 2015    Beta 3
    Aug 20 2015    RC 1
    Sep 03 2015    RC 2
    Sep 17 2015    RC 3
    Oct 01 2015    RC 4
    Oct 15 2015    RC 5
    Oct 29 2015    RC 6
    Nov 12 2015    Final
     
  20. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Informative Informative x 1