I was not able to upload files on my site (cent OS 6 VPS). The path where web files should be uploaded is /var/www/html
.
The permissions of directories were 755
and of files were 644
.
But when I chmoded all files and directories in /var/www
to 777
recursively then I was able to upload to /var/www/html
I am running WordPress. Isn't it a security issue to chmod all files and folders to 777
? Also, if I chmod them back to 755
, I cannot upload any files.