자바
 

AMP 설치 후 php에서 index.html 인식하기

최고관리자 2016-01-23 (토) 17:57 10년전 57  
vi /etc/httpd/conf/httpd.conf 열어서

AddType application/x-httpd-php .php .html 를 추가해 주면 됩니다.

아파치 재실행 해주면 됩니다.

/etc/init.d/httpd restart

저 같은 경우는 vi 에서 / 찾기 명령어 입력 후 index.html 엔터 후에 DirectoryIndex index.php index.html index.htm 밑에 줄에 넣었어요
아파치와 php 실행을 한눈에 보기하기 위해서요

또한 자바스크립트 확장자인 .js 에서 php가 되게 할려면 .js를 추가해주면 됩니다.

AddType application/x-httpd-php .php .html .js


이름
비밀번호
자동등록방지
우측의 글자를 입력하세요.
hi
이전글  다음글  목록 답변 글쓰기
 
 
ragoman@naver.com