본문으로 바로가기

CentOS7 Apache file upload 안되는 문제

category IT. 2017. 11. 15. 04:07

CentOS7 Apache file upload 안되는 문제

이어서...
가끔가다보면, CentOS7 에서 파일 업로드시켜야하는데 안될때가 있다.
Apache 권한 문제이다. 역시나 보안 쪽 문제...

sudo chcon -t httpd_sys_rw_content_t /var/www/html/upload/ -R
sudo chown apache:apache -R /var/www/html/upload/

위 명령어를 입력해주게되면, 해당 폴더에 업로드 할 수 있게 된다.
(업로드 폴더에만 꼭 적용시켜주자)

'IT.' 카테고리의 다른 글

Failed to connect to MySQL: Permission denied 에러  (0) 2017.11.15
자바스크립트 비프음  (0) 2017.11.15
부스타빗 1.2배 쉼표 스크립트 V1.0  (1) 2017.11.15