Hi @ all,
i upgraded my debian server with plesk 12.5 from PHP 5.4 to PHP 7 as mentioned in the official Odin KB. The setup looks fine but when i check in my different webspace directories with "php -v" I was wondering, because it shows me the following output:
root@v36394:/var/www/vhosts/mydirectory/# php -v
PHP 5.4.45-0+deb7u2 (cli) (built: Oct 17 2015 08:26:31)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.12, Copyright (c) 2002-2015, by ionCube Ltd.
This is very strange, because phpinfo page shows the correct php 7.0.1 version. The big problem is, that many application (wordpress, magento) shows to the version 5.4.45 and not PHP 7.0.1.
I had the same problem with upgrade from 5.4.45 to php 5.6, because of this i would change to php 7.0.1 - but same problem. It looks like a problem of plesk or ioncube - plesk.
here the output of my phpinfo:
PHP Version 7.0.1
System
Linux blubber...... 3.2.41-042stab108.7 #1 SMP Wed Jul 15 15:49:08 MSK 2015 x86_64
Build Date
Dec 21 2015 15:44:09
Configure Command
'./configure' '--prefix=/opt/plesk/php/7.0' '--bindir=/opt/plesk/php/7.0/bin' '--sbindir=/opt/plesk/php/7.0/sbin' '--libexecdir=/opt/plesk/php/7.0/lib' '--datadir=/opt/plesk/php/7.0/share' '--sysconfdir=/opt/plesk/php/7.0/etc' '--sharedstatedir=/opt/plesk/php/7.0/com' '--localstatedir=/opt/plesk/php/7.0/var' '--libdir=/opt/plesk/php/7.0/lib/x86_64-linux-gnu' '--includedir=/opt/plesk/php/7.0/include' '--infodir=/opt/plesk/php/7.0/share/info' '--mandir=/opt/plesk/php/7.0/share/man' '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--with-libdir=lib' '--cache-file=../config.cache' '--with-config-file-path=/opt/plesk/php/7.0/etc' '--with-config-file-scan-dir=/opt/plesk/php/7.0/etc/php.d' '--disable-debug' '--without-pear' '--with-pic' '--disable-rpath' '--with-bz2' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-calendar' '--with-libxml-dir=/usr' '--enable-xml' '--enable-phpdbg' '--with-enchant=shared,/usr' '--with-system-tzdata' '--with-litespeed' '--enable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-gd=shared' '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable-mysqlnd=shared' '--with-mysqli=shared,mysqlnd' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--enable-dom=shared' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/usr' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-sqlite3=shared' '--enable-json=shared' '--enable-zip=shared' '--without-readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with-mcrypt=shared,/usr' '--with-tidy=shared,/usr' '--with-unixODBC=shared,/usr' '--enable-fileinfo=shared' '--enable-intl=shared' '--with-icu-dir=/usr' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-posix=shared' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu'
Server API
CGI/FastCGI
Virtual Directory Support
disabled
Configuration File (php.ini) Path
/opt/plesk/php/7.0/etc
Loaded Configuration File
/var/www/vhosts/system/mydirectory/etc/php.ini
Scan this dir for additional .ini files
/opt/plesk/php/7.0/etc/php.d
Additional .ini files parsed
/opt/plesk/php/7.0/etc/php.d/10-opcache.ini, /opt/plesk/php/7.0/etc/php.d/20-mysqlnd.ini, /opt/plesk/php/7.0/etc/php.d/bcmath.ini, /opt/plesk/php/7.0/etc/php.d/curl.ini, /opt/plesk/php/7.0/etc/php.d/dba.ini, /opt/plesk/php/7.0/etc/php.d/dom.ini, /opt/plesk/php/7.0/etc/php.d/enchant.ini, /opt/plesk/php/7.0/etc/php.d/fileinfo.ini, /opt/plesk/php/7.0/etc/php.d/gd.ini, /opt/plesk/php/7.0/etc/php.d/imap.ini, /opt/plesk/php/7.0/etc/php.d/intl.ini, /opt/plesk/php/7.0/etc/php.d/json.ini, /opt/plesk/php/7.0/etc/php.d/ldap.ini, /opt/plesk/php/7.0/etc/php.d/mbstring.ini, /opt/plesk/php/7.0/etc/php.d/mcrypt.ini, /opt/plesk/php/7.0/etc/php.d/mysqli.ini, /opt/plesk/php/7.0/etc/php.d/odbc.ini, /opt/plesk/php/7.0/etc/php.d/pdo.ini, /opt/plesk/php/7.0/etc/php.d/pdo_mysql.ini, /opt/plesk/php/7.0/etc/php.d/pdo_odbc.ini, /opt/plesk/php/7.0/etc/php.d/pdo_pgsql.ini, /opt/plesk/php/7.0/etc/php.d/pdo_sqlite.ini, /opt/plesk/php/7.0/etc/php.d/pgsql.ini, /opt/plesk/php/7.0/etc/php.d/phar.ini, /opt/plesk/php/7.0/etc/php.d/posix.ini, /opt/plesk/php/7.0/etc/php.d/pspell.ini, /opt/plesk/php/7.0/etc/php.d/snmp.ini, /opt/plesk/php/7.0/etc/php.d/soap.ini, /opt/plesk/php/7.0/etc/php.d/sqlite3.ini, /opt/plesk/php/7.0/etc/php.d/sysvmsg.ini, /opt/plesk/php/7.0/etc/php.d/sysvsem.ini, /opt/plesk/php/7.0/etc/php.d/sysvshm.ini, /opt/plesk/php/7.0/etc/php.d/tidy.ini, /opt/plesk/php/7.0/etc/php.d/xmlreader.ini, /opt/plesk/php/7.0/etc/php.d/xmlrpc.ini, /opt/plesk/php/7.0/etc/php.d/xmlwriter.ini, /opt/plesk/php/7.0/etc/php.d/xsl.ini, /opt/plesk/php/7.0/etc/php.d/zip.ini
PHP API
20151012
PHP Extension
20151012
Zend Extension
320151012
Zend Extension Build
API320151012,NTS
PHP Extension Build
API20151012,NTS
Debug Build
no
Thread Safety
disabled
Zend Signal Handling
disabled
Zend Memory Manager
enabled
Zend Multibyte Support
provided by mbstring
IPv6 Support
enabled
DTrace Support
disabled
Registered PHP Streams
https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports
tcp, udp, unix, udg, ssl, sslv3, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filters
zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*