View Single Post
Old 07-28-2017, 07:44 PM  
porn-update
Confirmed User
 
porn-update's Avatar
 
Industry Role:
Join Date: Apr 2014
Posts: 380
Hi, in the list of this command php -i|less, PDO there, but does it mean it is already installed or that I can install it?

Code:
phpinfo()
PHP Version => 7.0.18-0ubuntu0.16.04.1

System => Linux ubuntu-2gb-blr1-01 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php/7.0/cli
Loaded Configuration File => /etc/php/7.0/cli/php.ini
Scan this dir for additional .ini files => /etc/php/7.0/cli/conf.d
Additional .ini files parsed => /etc/php/7.0/cli/conf.d/10-mysqlnd.ini,
/etc/php/7.0/cli/conf.d/10-opcache.ini,
/etc/php/7.0/cli/conf.d/10-pdo.ini,
/etc/php/7.0/cli/conf.d/20-calendar.ini,
/etc/php/7.0/cli/conf.d/20-ctype.ini,
/etc/php/7.0/cli/conf.d/20-exif.ini,
/etc/php/7.0/cli/conf.d/20-fileinfo.ini,
/etc/php/7.0/cli/conf.d/20-ftp.ini,
/etc/php/7.0/cli/conf.d/20-gettext.ini,
/etc/php/7.0/cli/conf.d/20-iconv.ini,
/etc/php/7.0/cli/conf.d/20-json.ini,
/etc/php/7.0/cli/conf.d/20-mcrypt.ini,
/etc/php/7.0/cli/conf.d/20-mysqli.ini,
/etc/php/7.0/cli/conf.d/20-pdo_mysql.ini,
/etc/php/7.0/cli/conf.d/20-phar.ini,
/etc/php/7.0/cli/conf.d/20-posix.ini,
/etc/php/7.0/cli/conf.d/20-readline.ini,
/etc/php/7.0/cli/conf.d/20-shmop.ini,
/etc/php/7.0/cli/conf.d/20-sockets.ini,
/etc/php/7.0/cli/conf.d/20-sysvmsg.ini,
/etc/php/7.0/cli/conf.d/20-sysvsem.ini,
/etc/php/7.0/cli/conf.d/20-sysvshm.ini,
/etc/php/7.0/cli/conf.d/20-tokenizer.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 => disabled
IPv6 Support => enabled
DTrace Support => available, disabled

Registered PHP Streams => https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filters => zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, convert.iconv.*, mcrypt.*, mdecrypt.*

This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.18-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies


 _______________________________________________________________________


Configuration
:
PHP seems to be the 7. I would like 5.6, some time ago I updated all my sites to PHP7, then I tried to set PHP 7 in the VPS and I left them a couple of months, my sites at that time have lost almost 80% of the visits... restoring php 5.6 slowly have returned to normal mode.

I have absolutely no idea why this thing happened...

Can a downgrade of PHP create problems? Even if the server is new/empty

Code:
sudo apt search php| egrep -i 'PDO|curl' 

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

php-curl/xenial 1:7.0+35ubuntu6 all
  CURL module for PHP [default]
php-phpdocumentor-reflection/xenial 1.0.7-1build1 all
php-phpdocumentor-reflection-common/xenial 1.0-2build1 all
  Common reflection classes - phpDocumentor component
php-phpdocumentor-reflection-docblock/xenial 2.0.4-1build1 all
  DocBlock parser - phpDocumentor component
php-phpdocumentor-type-resolver/xenial 0.1.6-2 all
  TypeResolver and FqsenResolver - phpDocumentor component
php7.0-curl/xenial-updates 7.0.18-0ubuntu0.16.04.1 amd64
  CURL module for PHP
phpdox/xenial 0.8.1.1-1ubuntu1 all
python-sphinxcontrib.phpdomain/xenial 0.1.4-2 all
  Sphinx "phpdomain" extension
porn-update is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote