Permalink URL change on NGINX server only!

Hello,

How can I change the URL to not show PHP files? I had Apache before, and the URLs were fine now. I did a fresh install of NGINX and got.php at the end of every url.

example:

wp-admin/options-permalink.php

/wp-admin/index.php

/wp-admin/plugins.php

/wp-admin/themes.php

I will really appreciate having it back without the.php.

Thank you!

Enable wordpress template

I did already, and change permalink to post name and clear cache but still show it.