Home >Backend Development >PHP Problem >apache cannot parse php file
1. Find:
AddType application/x-gzip .gz .tgz
Add below it:
AddType application/x-httpd-php .php//添加支持对php脚本解析
2. Find:
<IfModule dir_module> DirectoryIndex index.html </IfModule>
Put the middle line Change to:
DirectoryIndex index.html index.htm index.php //增加对php的索引
Recommended tutorial: PHP video tutorial
The above is the detailed content of apache cannot parse php file. For more information, please follow other related articles on the PHP Chinese website!