Im really a beginner user. I installed fresh HestiaCP VPS (Vultr) on Ubuntu 22.04 (NGINX, php-fpm).
I left all settings to default and uplaoded my PHP script to public_html directory and the script executes correctly by opening https://<domain.tld> in a web browser.
But if I add a subdirectory under public_html/newfolder/ and put my PHP script there I cannot execute it by opening https://<domain.tld>/newfolder
I get HTTP Error 500 in web browser.
I guess it has something to do with NGINX configuration but would appriciate any help to fix that or reconfigure HestiaCP in order to run PHP scripts in subdirectories.
OK It executes PHP, which is pretty simple.
PHP calls main.html file from the same folder. main.html is very simple html file. This same PHP script works like a charm on pure Apache+PHP setup.