I use domain mapping to force a site to https, and when I do, I can't upload any media files

I use domain mapping to force a site to https, and when I do, I can't upload any media files. I am also using smush with S3 offload. If I switch to HTTP then files upload with no problem. Occasionally I will try to login via https and I will get a 500 error, then if I just get rid of the s and login under HTTP it will let me login and then redirect me to https and everything works fine.

  • James Morris

    Hello jnkfrancis,

    I hope you are well today. I'll be following up with you regarding your chat.

    I've spent a good bit of time working through this issue today and I'm finding several unusual symptoms. What I'm finding strongly indicates you may have a plugin conflict on your site. I noticed it was requested you perform a conflict test during off-peak hours in chat. Can you please let us know when you've performed this test and what your findings were?

    Best regards,

    James Morris

  • jnkfrancis

    Additionally, I changed the permissions on the upload folder to 777 and it worked fine, so I thought I would start peeling back until it stopped working and it stopped working after setting it to anything but 777... This is a dedicated server so all of the cpanels are not accessible to anyone but me so I don't mind having upload folders set to 774 or 775. I wonder if there is some sort of permission issue. A while back the host company made changes to the ownership of the root folder to get SSL to work properly, perhaps that had something to do with it.

  • James Morris

    Hello jnkfrancis,

    Hmmmm... this sounds very much like a permissions issue. It sounds like the software is running as a different owner than what the files and folders are owned by. Can you please check the ownership and ensure that the user running your web server software (such as Apache) is the same as the owner of the files? For example, on Ubuntu based servers, Apache usually runs as www-data. So, the owner and group should be www-data www-data.

    On a properly configured server, you shouldn't need to run anything higher than 705, 755 at the very worst (604/644 for files).

    Best regards,

    James Morris