使apache服务器能够使用php解析.phtml .php3

首先找到apache的配置文件httpd.conf,

然后打开配置文件,在配置文件中将注释删除添加.phtml和.php3

 


打开phpStudy  在其他选项菜单/打开配置文件/选择httpd-conf   或者去本地中找到

apache文件配置

apache文件配置

找到AddType application/x-httpd-php .php .phtml .txt   添加要解析的   

然后重启phpStudy

apache文件配置

 

 

 

 

 

 

 

 

 

 

 

 

 

相关文章:

  • 2021-12-03
  • 2022-12-23
  • 2021-09-11
  • 2021-11-25
  • 2021-09-21
  • 2022-01-11
  • 2021-05-23
  • 2022-12-23
猜你喜欢
  • 2021-08-06
  • 2021-10-05
  • 2022-12-23
  • 2021-08-25
  • 2021-09-26
  • 2021-10-30
  • 2022-01-19
相关资源
相似解决方案