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/
위 명령어를 입력해주게되면, 해당 폴더에 업로드 할 수 있게 된다.
(업로드 폴더에만 꼭 적용시켜주자)