/home/abcd/public_html/images is owned by the user and group abcd. The web server is running as another user and group (e.g. apache or www-data). So, can the web server write to that directory?
- d rwx rwx r-x : the user permission don't
apply, since the web server isn't
running as the user abcd
- d rwx rwx r-x : the group permissions don't
apply, since the web server isn't
running as the group abcd
- d rwx rwx r-x : then the other permissions must apply
and they do not allow the web server
to write to it
You might think that the solution is to chmod o+w /home/abcd/public_html/images
, but that would allow any user to write to images when all you want is to allow the web server to write to it. A better approach would be to change the group that owns the images directory to the group that the web server runs as. Since you're using apache, you should be able to find that group with ps -o group $(pgrep httpd)
. You can ignore the one process running as root.
If this isn't clear, maybe the wordpress documentation on changing file permissions will help.