php没有解析,是官网的一键安装包部署的话,可以看下:
xampp/runner/res/apache/conf/httpd.conf
xampp/apache/conf/httpd.conf
这2个配置文件,参考下admin.php的逻辑,添加一个修改后的:
ServerAdmin %PRODUCT_ID%@local.net
DocumentRoot "%APP_LOCATION%%PRODUCT_ID%/www"
ServerName localhost:%APACHE_PORT%
AllowOverride all
Require all granted
SetHandler application/x-httpd-php
SetHandler application/x-httpd-php
SetHandler application/x-httpd-php
SetHandler application/x-httpd-php
SetHandler application/x-httpd-php
SetHandler application/x-httpd-php
SetHandler text/plain
ErrorLog "%APP_LOCATION%apache/logs/error_log"
CustomLog "%APP_LOCATION%apache/logs/access_log" combind