So, I've recently moved to virtual dedicated servers and am having some issues getting a few features to work in wordpress. I've looked through the forum and found some solutions but most do not work or are ones I have questions about.
Attempting to upload an image produces the below error:
"The uploaded file could not be moved to /var/www/vhosts/domain.com/httpdocs/media."
Changing the media folder to 777 (instead of 755) fixes the above error and allows images to upload, but won't having the folder be 777 allow anyone to upload to that folder on the server? Safe mode is off on the server. I'm really confused here because on previous shared servers I've always left my folders at 755 and files at 644 and am concerned about leaving folders and files at higher permission settings.
Is this an issue with wordpress/media folder not being owned by the correct user or group?
I'm having similar issues with wp-super cache, the .htaccess file and wordpress theme files, where if I make them 777 they are editable in wordpress but as 755 they are not. Is there a way to make these files editable via wordpress while also having 755 permissions?