解决方法
1,找到配置文件
Apache/conf/httpd.conf
2,记事本打开
Ctrl + F 查找 AddType,一直查找下一个直到下面两行代码处
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .pps
3,修改第一行代码
AddType application/x-httpd-php .html .htm .php .phtml
AddType application/x-httpd-php-source .pps
4,Ctrl + S保存,重启服务器即可。
这个方法是在自己尝试了好多次后才成功的,坑填平了.哈哈!!!
主页
冰原狼主页:https://kankan.fun/
CSDN主页:https://blog.csdn.net/qq_38025939/
Github主页:https://github.com/kankanol1
明天的你一定会感谢现在拼命的自己!