1. apache , php 버전 확인
2. vi /etc/httpd/conf/httpd.conf
165번째 줄에
DirectoryIndex index.html index.html.var index.php index.php3 추가 시켜준다
(이미 추가해서 저렇게 된거고 처음이면 DirectoryIndex index.html) 적혀있음
284번 밑에 추가 시켜준다
AddType application/x-httpd-php .php .html .htm .inc
AddType application/x-httpd-php-source .phps
vi 에서 위 처럼 숫자 보이고 싶으면 :set number 입력하면 숫자 뜸
3. systemctl restart httpd // 서비스 재시작
4. 연동 확인
vi /var/www/html/phpinfo.php //입력후 추가 시켜준다 사용자 마다 경로는 다를수 있는데 따로 손댄거 없으면 같음
서버ip/phpinfo.php 접속
[PHP] session_start() (0) | 2021.09.23 |
---|---|
EditPlus VMware FTP 연결 (0) | 2021.08.30 |
java ,javac 버전 변경 (0) | 2021.08.19 |
Centos 7 OpenJDK 설치 (0) | 2021.08.17 |
linux 환경에서 FTP 파일질라 virtualbox 연결 (0) | 2021.08.13 |
댓글 영역