PHP: move_uploaded_file()
a2jfreak
Houston, TX Member
I'm running CentOS with Apache 2.0.52 and PHP 4.3.9
I've changed all the directories from /var/www/html and /var/www/tempfiles to be owned by apache, rather than root, as I read elsewhere that userid could make a difference. It hasn't. Any help is appreciated.
I've changed all the directories from /var/www/html and /var/www/tempfiles to be owned by apache, rather than root, as I read elsewhere that userid could make a difference. It hasn't. Any help is appreciated.
[21-Feb-2007 01:41:39] PHP Warning: move_uploaded_file(/var/www/html/test/testimages/m/857__mark.jpg): failed to open stream: Permission denied in /var/www/html/test/makemainimage.php on line 119
[21-Feb-2007 01:41:39] PHP Warning: move_uploaded_file(): Unable to move '/var/www/tempfiles/phpNXZifM' to '/var/www/html/test/testimages/m/857__mark' in /var/www/html/test/makemainimage.php on line 119
0
Comments
You are correct to change ownership to apache - but make sure the group is apache as well
Upload max is 10M. The file jpeg was under 1M.
Guess my Linux rust is thicker than I thought.
Is there any (FREE) service that will scan an IP for possible vulnerabilities?
Gibson Research offers a free scan, but it only checks for open ports, not potential vulnerabilities in software.