View source for Only seeing index page 404 on other pages

Just done an install, there where no errors during he install and  the index page page shows fine.  If I click on login link I get a 404 not found error.
I have installed it on my ubuntu box running php 7.4, mysql and apache2.

Any ideas?
many thanks