Home> php教程> PHP开发> body text

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

巴扎黑
Release: 2016-11-07 16:28:59
Original
2665 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
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 Recommendations
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!