For what it is worth, I had a similar problem (hours of frustration, bleeding eyeballs, etc.) So I followed the link to the PHP admin info. Bottom line, my wordpress url was https://mysite.com/wordpress. Ooops. I changed it to https://www.mysite.com/wordpress and all is now well.