I am getting below error:
PHP Warning: move_uploaded_file(PATH_TO_FILE): failed to open stream: Permission denied in PHP_FILE
Note: I have already executed sudo chown -R apache *PATH_TO_FOLDER*. OS: Fedora 33 (Workstation Edition), PHP ver. 7.4.14.
sudo chown -R apache *PATH_TO_FOLDER*
Thanks in advance.
Turns out SELinux was the problem. Solved it by executing semanage permissive -a httpd_t.
semanage permissive -a httpd_t
1.4m articles
1.4m replys
5 comments
57.0k users