oh good! Just installed a fresh copy of beta01!
still need to update as a few more changes were committed since heh, hence centmin.sh menu option 23 comes in handy
very much so! im learning something new everyday thanks to you! BTW: no issues yet for php7 GA - should i leave redis uncommented after the install?
yeah test and see 123.09beta01 with redis php7 branch support added 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 PHP Upgrade - Would you like to continue? [y/n] y ---------------------------------------------------------------- Install which version of PHP? (version i.e. 5.5.30, 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.0 ---------------------------------------------------------------- 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_041215-044840 existing php-fpm.conf will be backed up at /usr/local/etc/php-fpm.conf-oldversion_041215-044840 ---------------------------------------------------------------- Update & overwrite your existing php-fpm.conf [y/n]: n ---------------------------------------------------------------- Code: ----------------------------------------------------------------------------------------- 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 Code: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/igbinary.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/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-20151012/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/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-20151012/mongo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/mongo.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... remove 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 fpmrestart Code: php -v PHP 7.0.0 (cli) (built: Dec 4 2015 04:55:02) ( NTS ) Copyright (c) 1997-2015 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies Code: php --ri redis redis Redis Support => enabled Redis Version => 2.2.5 Code: php -m [PHP Modules] bcmath bz2 calendar Core ctype curl date dom enchant exif filter ftp gd geoip gettext gmp hash iconv imagick imap intl json libxml mbstring mcrypt memcached mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix pspell readline redis 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
did you do the centmin.sh menu option 23 subemenu 1 run to setup git environment ? if you did make sure you have latest 123.09beta01 code first Code: cmdir git branch -a git log -1 should give you following output Code: [root@centos7 ~]# cmdir /usr/local/src/centminmod ~ [root@centos7 centminmod]# git branch -a * 123.09beta01 master remotes/origin/123.06stable remotes/origin/123.07stable remotes/origin/123.08beta03 remotes/origin/123.08beta03-el7ffmpeg-fix remotes/origin/123.08beta03-libresslclang remotes/origin/123.08beta03-rtmp remotes/origin/123.08beta03clang remotes/origin/123.08beta03curl743 remotes/origin/123.08beta03libressl remotes/origin/123.08beta03redis remotes/origin/123.08centos7beta01 remotes/origin/123.08centos7beta02 remotes/origin/123.08stable remotes/origin/123.08stable-nginxhttp2 remotes/origin/123.08zerodown remotes/origin/123.09beta01 remotes/origin/123.09beta01le remotes/origin/HEAD -> origin/master remotes/origin/master commented out my email for scrapers/email harvesters heh - outputs most recent commit details, should match Commits · centminmod/centminmod · GitHub Code: [root@centos7 centminmod]# git log -1 commit 2a9d2bf12f0c5a689604cbe51b5ca8d4de560064 Author: George Liu <EMAIL> Date: Fri Dec 4 14:48:19 2015 +1000 update inc/php_upgrade.inc comment out /etc/centminmod/php.d/redis.ini removal line and a git pull will update you to latest code (same as running centmin.sh menu option 23 submenu option 2) Code: [root@centos7 centminmod]# git pull Already up-to-date. FYI, if you do centmin.sh menu option 23 submenu option 2 run, need to exit centmin.sh via menu option 24 and re-launch centmin.sh for the updated files to register with centmin.sh
I've just updated the centmin codebase, and it's still pulling 7.1 when I specify 7.0.0 as the version.
huh ??? don't know how that is possible got a /root/centminlogs/ php upgrade log you can throw up on pastebin/gist ? no way to get 7.1 value from these changes update inc/phpng_download.inc · centminmod/centminmod@3bd0555 · GitHub
Code: [root@vultr centminmod]# cmdir /usr/local/src/centminmod /usr/local/src/centminmod [root@vultr centminmod]# git branch -a * 123.09beta01 master remotes/origin/123.06stable remotes/origin/123.07stable remotes/origin/123.08beta03 remotes/origin/123.08beta03-el7ffmpeg-fix remotes/origin/123.08beta03-libresslclang remotes/origin/123.08beta03-rtmp remotes/origin/123.08beta03clang remotes/origin/123.08beta03curl743 remotes/origin/123.08beta03libressl remotes/origin/123.08beta03redis remotes/origin/123.08centos7beta01 remotes/origin/123.08centos7beta02 remotes/origin/123.08stable remotes/origin/123.08stable-nginxhttp2 remotes/origin/123.08zerodown remotes/origin/123.09beta01 remotes/origin/123.09beta01le remotes/origin/HEAD -> origin/master remotes/origin/master [root@vultr centminmod]# git log -1 commit 2a9d2bf12f0c5a689604cbe51b5ca8d4de560064 Author: George Liu <EMAL> Date: Fri Dec 4 14:48:19 2015 +1000 update inc/php_upgrade.inc comment out /etc/centminmod/php.d/redis.ini removal line [root@vultr centminmod]# php --ri redis PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0 Extension 'redis' not present.
https://mattwservices.co.uk/centminmod_1.2.3-eva2000.09_041215-053009_php_upgrade.txt Going to try it again, as I've double checked the code update has been applied by git Code: [root@host centminmod]# cmdir /usr/local/src/centminmod /usr/local/src/centminmod [root@host centminmod]# git branch -a * 123.09beta01 master remotes/origin/123.06stable remotes/origin/123.07stable remotes/origin/123.08beta03 remotes/origin/123.08beta03-el7ffmpeg-fix remotes/origin/123.08beta03-libresslclang remotes/origin/123.08beta03-rtmp remotes/origin/123.08beta03clang remotes/origin/123.08beta03curl743 remotes/origin/123.08beta03libressl remotes/origin/123.08beta03redis remotes/origin/123.08centos7beta01 remotes/origin/123.08centos7beta02 remotes/origin/123.08stable remotes/origin/123.08stable-nginxhttp2 remotes/origin/123.08zerodown remotes/origin/123.09beta01 remotes/origin/123.09beta01le remotes/origin/HEAD -> origin/master remotes/origin/master [root@host centminmod]# git log -1 commit 2a9d2bf12f0c5a689604cbe51b5ca8d4de560064 Author: George Liu <EMAIL> Date: Fri Dec 4 14:48:19 2015 +1000 update inc/php_upgrade.inc comment out /etc/centminmod/php.d/redis.ini removal line [root@host centminmod]#
Tried again Code: [root@host centminmod]# php -v PHP 7.1.0-dev (cli) (built: Dec 4 2015 05:45:44) ( NTS ) Copyright (c) 1997-2015 The PHP Group Zend Engine v3.1.0-dev, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies [root@host centminmod]#
Oh, hang on. When I first tried PHP7, I installed 7.0 rather than the RC version, and it's downloaded 7.1. I've just looked in the scr-setup directory, and it's downloaded the 7.1 tar as 7.0 Code: -rw-r--r-- 1 root root 194094760 Nov 9 11:00 php-7.0.0.tar.gz Maybe add a check in to force a delete of 7.0.0 if it's older than when the script it run?
looks like PHP 7.0.0 to me not 7.1 Code: ************************************************* [1;32;40m* Upgrading PHP [0;10m************************************************* [1;32;40mphp 7.0.0 Archive found, skipping download... [0;10mphp-7.0.0/ looks like igbinary-php7 branch failed which is normal that is why at end of upgrade, you remove the igbinary.ini file but you redis install part uses the normal branch and not redis-php7 directory ah ha that makes sense, prior 7.0.0 version specified php 7 dev master branch at github and named it php-7.0.0.tar.gz !
All sorted Code: [root@host centminmod]# php -v PHP 7.0.0 (cli) (built: Dec 4 2015 05:52:10) ( NTS ) Copyright (c) 1997-2015 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
7.0.0 the reference to 7.0 is to update inc/phpng_download.inc · centminmod/centminmod@3bd0555 · GitHub and how I use $PHPMUVER variable which evaluates 7.0.0 as 7.0 or 5.6.16 as 5.6 for detection purposes. @Matt had used 7.0.0 before my recent switch changes from php 7 git dev master to php.net tarball downloads. So php 7 git dev master is working off PHP 7.1.0 right now. Technically, if you specified PHP 7.1.0 at upgrade, you will get php 7 git dev master now too heh - but i need to clean up that renaming of php-7.0.0.tar.gz heh oh don't need to as specified 7.1.0 will name the git dev php 7 branch download as php-7.1.0.tar.gz so no conflicts ! enjoy
ok, I don't know what I am doing wrong here. Here are my steps: 1. Menu option 23 w/ sub menu 1 and choose beta01 2. cd to home and run: Then: Wrong or right? Am I missing anything?
looks right to me .. try it and like @Matt afterwards grab the /root/centminlogs/ php upgrade log and throw it up on pastebin/gist