When you run `php spark serve`, it works perfectly. So there is no problem with CI4.
And you cannot run just a php file with phpinfo() on Apache, it shows there is something wrong with Apache and its PHP configuration.
First of all, you need to configure your Apache server correctly so that it can execute a PHP file.
Can you show the Apache configuration for the virtual domain?
> First I was worried that I didn't load the php module but it is compiled in today, isn't it?
Unfortunately I cannot see your screen or Apache config files. So I don't know.