Home > php教程 > PHP开发 > PHP cannot be parsed under apache and directly displays the source code solution

PHP cannot be parsed under apache and directly displays the source code solution

巴扎黑
Release: 2016-11-07 16:28:59
Original
2829 people have browsed it

Add php settings to http.conf

#php5_start

phpIniDir "d:/Program Files/php"

LoadModule php5_module "d:/Program Files/php/php5apache2_2.dll"

#php5_end

Again Add

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps

Problem Solving


Related labels:
php
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template