apache cannot parse php file

王林
Release: 2023-02-27 06:22:02
Original
3564 people have browsed it

apache cannot parse php file

1. Find:

AddType application/x-gzip .gz .tgz
Copy after login

Add below it:

 AddType application/x-httpd-php .php//添加支持对php脚本解析
Copy after login

2. Find:

<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
Copy after login

Put the middle line Change to:

DirectoryIndex index.html index.htm index.php //增加对php的索引
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template