php -v shows wrong version

pppplus

Verified User
Joined
Dec 19, 2008
Messages
528
Hi

I recently updated php versions, and now I've a problem.

I put php 7.2 instead of 7.1
I had php 5.6 in php2 (I remove it now, to try to solve my problem)...

php -v
PHP 5.4.16 (cli) (built: Apr 12 2018 19:02:01)

How to remove old PHP versions ?

Where can I force to use php 7.2 ?

On command line, I have to do now
/usr/local/php72/bin/php
instead of
php


custombuild options are :
Code:
#PHP Settings
php1_release=7.2
php1_mode=php-fpm
php2_release=no
php2_mode=php-fpm
opcache=yes


I rename old php version folder
/usr/local/xxxphp56
/usr/local/xxxphp71

but without success.


phpinfo() is ok.

Thanks for your help.
 
Last edited:
Maybe try to change php2_release=5.6 to be php2_release=no , and then recompile PHP.
 
Thanks ditto

Sorry, but it's already php2_release=no
I forgot to update my clipboard copy (I just edited my first post)
 
Code:
# ./build list_removals
Pure-FTPd installed, but not enabled in options.conf: './build remove_pureftpd'

If you want to remove all the suggested programs above, run: ./build remove_items
 
I would at least set pure-ftpd to yes so your pure-ftpd will be updated.

After that, to get lost of your old php 5 version, try this:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build all d
./build rewrite_confs
 
already done. It does not change anything

cd /usr/local/directadmin/custombuild
./build update
./build all d
./build rewrite_confs
 
That's odd, because that would normally overwrite all old value's.
You might want to consider to send in a ticket.
 
Back
Top