Apache Httpd.conf PHP 연동

2017. 10. 29. 15:39·DEV/Linux

1. ServerName을 아래와 같이 수정해준다.  

#ServerName www.example.com:80
ServerName 127.0.0.1:80

2. 아래와 같이 수정한다.

<IfModule dir_module>
    DirectoryIndex index.html index.htm index.php index.php3
</IfModule>

3. 아래에 아래 두줄을 추가한다.

AddType application/x-compress .Z

AddType application/x-gzip .gz .tgz 


AddType application/x-httpd-php .php .html. htm .inc

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

4. 맨 아래에 추가한다.

<FilesMatch \.php$>

     SetHandler application/x-httpd-php

</FilesMatch>


저작자표시 비영리 변경금지 (새창열림)

'DEV > Linux' 카테고리의 다른 글

Crontab php 실행시키기  (0) 2021.03.04
Linux 쉘 메세지 언어 변경  (0) 2017.10.12
[CentOS 7] Maven 컴파일  (0) 2017.08.29
Linux war import  (0) 2017.08.24
[CentOS 7] Mariadb 원격접속허용  (0) 2017.08.24
'DEV/Linux' 카테고리의 다른 글
  • Crontab php 실행시키기
  • Linux 쉘 메세지 언어 변경
  • [CentOS 7] Maven 컴파일
  • Linux war import
modric
modric
  • modric
    dev log
    modric
  • 전체
    오늘
    어제
    • 분류 전체보기 (70)
      • DEV (58)
        • Linux (12)
        • JavaScript (5)
        • PHP (4)
        • MySql (4)
        • HTML (7)
        • CSS (9)
        • Spring (13)
        • flutter (1)
        • 오류 (2)
        • devOps (1)
      • 기타 (5)
      • 트렌드 (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 미디어로그
    • 위치로그
    • 방명록
    • HTML
    • CSS
    • PHP
    • JavaScript
    • Spring
    • Linux
  • 링크

    • 공부하는 소담아빠
    • 타올이
  • 공지사항

  • 인기 글

  • 태그

    iframe
    mariadb10
    height
    넘침
    Android
    linux
    클릭
    build
    factorial
    Destination
    크롬
    팩토리얼
    centos7
    100!
    ios
    mariadb 10
    exist
    MYSQL
    Safari
    파란색
    메타버스
    lastinsertid
    php
    centos 7
    컴파일
    js
    제거
    테두리
    터치
    update
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
modric
Apache Httpd.conf PHP 연동
상단으로

티스토리툴바