APACHE에서 PHP 파일을 인식하지 못할때

/usr/local/apache/conf/httpd.conf
파일중..
아래부분에 빨강색 부분을 추가한다.

<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig conf/mime.types


    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz


    # And for PHP 4.x, use:
    AddType application/x-httpd-php .php .php3 .inc .ph .htm .html
    AddType application/x-httpd-php-source .phps


    #
    # AddHandler allows you to map certain file extensions to “handlers”:
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add “ExecCGI” to the “Options” directive.)
    #
    AddHandler cgi-script .cgi .pl


    # For files that include their own HTTP headers:
    #AddHandler send-as-is asis


    # For server-parsed imagemap files:
    #AddHandler imap-file map


    # For type maps (negotiated resources):
    #AddHandler type-map var


    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add “Includes” to the “Options” directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
</IfModule>

APACHE에서 PHP 파일을 인식하지 못할때”의 하나의 댓글.

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 항목은 *(으)로 표시합니다