If website is not working even index.php contains only simple code like echo "abc";
if you changed index.php to die("its cool"); and the site still shows the same 500 error, then the request is probably not reaching that file.
- Check document root in hosting
- create simple html file and Check if .html executed or not
- create simple php file and check if .php executed or not
- If test.html gives 500: this is server/vhost config,
- If HTML works but test.php gives 500: PHP handler/config issue in Plesk.
- If both work but homepage gives 500: WordPress/plugin/theme/rewrite issue.
how to fix
1. check .user.ini if any auto_prepend_file in it, issue is in that file fix it. (user.ini contains configration of current folder like php.ini for whole engine)
2.