D
D
Dmitry Prikhodchenko2016-04-27 14:58:39
PHP
Dmitry Prikhodchenko, 2016-04-27 14:58:39

Installing PHP 7 on Debian 8 connection problem?

Good afternoon, I installed PHP 7.1 - dev on Debian 8.
SSH using the php -v command gives exactly the version I need, but the problem is that the site for deriving the function shows the old version (5.6. *)
Could there be a problem in cgi-bin?
The contents of the file /cgi-bin/php : #!/usr/bin/php-cgi
PHP uploaded to /root/php7
Everything was done according to the manual from here anikin.pw/all/asborka-php-7-na-debian-8-jessie
________________________________________________________________________
I figured it out myself. Question #

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Evgenievich, 2016-04-27
@banderos120

Did you uninstall php5 before installing php7?

T
tralvor, 2016-04-28
@tralvor

1. apt-get -y purge php5
2. add Dotdeb
3. apt-get install -y php7.0
4. apt-get install php7.0-common libapache2-mod-php7.0 php7.0-cgi php7.0 -cli php7.0-phpdbg php7.0-fpm libphp7.0-embed php7.0-dev php7.0-dbg php7.0-curl php7.0-gd php7.0-imap php7.0-interbase php7.0 -intl php7.0-ldap php7.0-mcrypt php7.0-readline php7.0-odbc php7.0-pgsql php7.0-pspell php7.0-recode php7.0-tidy php7.0-xmlrpc php7.0 php7.0-json php-all-dev php7.0-sybase php7.0-sqlite3 php7.0-mysql php7.0-opcache php7.0-bz2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question