It is not adding the ip address of my server in front of index.php
It’s a known bug and will be fixed on the next major release IIRC. Just add it manually, it only does it after the installer.
https://github.com/nextcloud/server/issues/27575