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.
Thanks in advance.
apache 1042 0.1 0.2 472148 21184 ? S Jan24 1:46 php-fpm: pool www
root 44020 0.0 0.1 35504 9816 ? Ss 15:42 0:00 /usr/sbin/httpd -DFOREGROUND
apache 44021 0.0 0.0 46708 5452 ? S 15:42 0:00 /usr/sbin/httpd -DFOREGROUND
matej 45697 0.0 0.0 221564 2608 pts/0 S+ 17:09 0:00 grep --color=auto -i apache\|httpd – Matej Jan 25 '21 at 16:44