여수대우전자서비스센터
리눅스 서버 html 파일에서 php 소스 인식하기
여수공동체
Server
0
1756
2014.11.10 17:40
리눅스(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