리눅스 서버 html 파일에서 php 소스 인식하기
페이지 정보
작성자 GIT 작성일14-11-10 17:40 조회9,266회 댓글0건본문
리눅스(centos) 서버에서 확장자가 html인 경우 php 소스가 인식이 안될때 아래 부분을 확인해 보시기 바랍니다.
■ /etc/php.ini 파일수정
short_open_tag = On
■ /etc/httpd/conf.d/php.conf 파일 수정
AddHandler php5-script .php .html .htm
수정후 데몬 재시작
#service httpd restart
댓글목록
등록된 댓글이 없습니다.