0
votes

I have different version of Php on my laravel homestead. If i lunch php -v on command bash i have active php 7.3 but if i create and index.php with phpinfo() i have this 'PHP Version 7.2.14-1+ubuntu18.04.1+deb.sury.org+1'

php -v

HP 7.3.1-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jan 13 2019 10:19:33) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.1, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.1-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies with Xdebug v2.7.0beta1, Copyright (c) 2002-2018, by Derick Rethans with blackfire v1.24.2~linux-x64-non_zts73, https://blackfire.io, by Blackfire

in my index.php

phpinfo();

i have

PHP Version 7.2.14-1+ubuntu18.04.1+deb.sury.org+1

I want to use only php 7.3 how can i do it please?

1

1 Answers

1
votes

For ubuntu users this should work (with apache)

sudo a2dismod php7.X
sudo a2enmod php7.3
sudo service apache2 restart

Witn nginx in your .conf change the version for fastcgi

fastcgi_pass unix:/run/php/php7.3-fpm.sock;
service nginx restart