Level 47
Aug 1, 2020
2
Level 8
Upgrade php to 7.3 I see 7.2 in my browser
Hello, Looking at this https://www.cloudbooklet.com/how-to-install-php-7-3-on-ubuntu-18-04/ article I try to upgrade php to 7.3 on my local Ubuntu 18
But after I run command:
sudo apt install php7.3
restyarting the OS I see in the console :
$ php -v
PHP 7.3.20-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jul 9 2020 16:34:09) ( NTS )
But phpinfo in the browser shows me PHP Version 7.2 :
PHP Version 7.2.24-0ubuntu0.18.04.6
System Linux athoe 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64
Build Date May 26 2020 13:09:11
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php/7.2/apache2
Loaded Configuration File /etc/php/7.2/apache2/php.ini
Scan this dir for additional .ini files /etc/php/7.2/apache2/conf.d
also I failed to open file :
sudo nano /etc/php/7.3/apache2/php.ini
as directory /etc/php/7.3/apache2 was not found
and checking the system I see :
root@athoe:/etc/php# ls -la
total 24
drwxr-xr-x 4 root root 4096 ����� 1 17:33 .
drwxr-xr-x 156 root root 12288 ����� 1 17:33 ..
drwxr-xr-x 5 root root 4096 ����� 5 2019 7.2
drwxr-xr-x 5 root root 4096 ����� 1 17:33 7.3
root@athoe:/etc/php# cd 7.2
root@athoe:/etc/php/7.2# ls -la
total 20
drwxr-xr-x 5 root root 4096 5 2019 .
drwxr-xr-x 4 root root 4096 1 17:33 ..
drwxr-xr-x 3 root root 4096 4 18:22 apache2
drwxr-xr-x 3 root root 4096 3 10:01 cli
drwxr-xr-x 2 root root 409613 2020 mods-available
root@athoe:/etc/php/7.2# cd ../
root@athoe:/etc/php# cd 7.3
root@athoe:/etc/php/7.3# ls -la
total 20
drwxr-xr-x 5 root root 4096 1 17:33 .
drwxr-xr-x 4 root root 4096 1 17:33 ..
drwxr-xr-x 3 root root 4096 1 17:33 cli
drwxr-xr-x 4 root root 4096 1 17:33 fpm
drwxr-xr-x 2 root root 4096 1 17:33 mods-available
What did I miss in my setup ?
Thanks!
Please or to participate in this conversation.