Confirm php version on VM

Hi there. I just upgraded to PHP7.4 and I think it worked. php -i from the command line shows php7.4.

But does that mean Nextcloud’s apache virtual server is definitely using 7.4?

I’ve created a phpinfo.php file in the same folder as nextcloud’s index.php but cannot for the life of me figure out how to access it. Tried browsing to it using a whole variety of urls (localhost, site url, ip address, etc) using Links from the commandline but no luck.

Any help would be appreciated. Thanks.

Just put the phpinfo command at the top of the index.php
It should work.
Don’t forget to remove it and before make a backup of index.php

So smart! Thank you so much!