modric
dev log
modric
전체 방문자
오늘
어제
  • 분류 전체보기 (68)
    • 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

공지사항

인기 글

태그

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

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
modric

dev log

DEV/Linux

Apache Httpd.conf PHP 연동

2017. 10. 29. 15:39

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

    티스토리툴바