.php at the end of files

I installed a core php blog platform but I can only access my pages by place a .php at the end of each page. Example for index I have to enter index.php for it to show on web browser. How do I just show the pages without the “.php” tag at the end? If it has something to do with the nginx configs how do I access that for each subdomain?

If you use NGINX you need to create you own template

Apache2 use .htaccess

how do i do this and where to i install it? I am not sure of the directory.

/usr/local/hestia/data/templates/web/nginx/php-fpm/

This should be the correct folder if you use Nginx + PHP-FPM