Home  >  Article  >  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

巴扎黑
巴扎黑Original
2016-11-07 16:28:592621browse

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


Statement:
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