The PHP program in the root directory of my website can run normally, but in the subdirectory (English version directory), a 500 error occurs whenever the PHP program is run.
I specially made one
<?PHP
echo "This is a PHP test";
?>
Test this sentence and put it in the root directory. It runs normally. If you put it in a subdirectory, the same 500 error occurs, indicating that it is not a problem with the PHP code, but a problem with where it is set.
Please give me some advice, I am a PHP newbie.
大瓶可乐@php.cn2022-02-09 11:48:39
Open the php error report and you can clearly see the cause of the error