Media upload problem after moving wordpress to root
-
Earlier today my main WordPress site went live.
WordPress is in its own subdirectory, the htaccess and index.php files are in the root. I followed the steps as described here in the codex: https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install
Things went like a breeze and the site showed up when going to my domain name. No problems whatsoever on the front end.
Upon testing things in the admin I found out that basically everything work expect one thing: If I try to upload a file to the media browser it give a notice that the file cannot be moved to the upload directory.
Same thing with the contact form plugin, the captcha it uses is also located in the upload directory and it cannot write to it either.
It seems by moving the index.php and htaccess to the root I’ve for some reason run into a permission problem with the upload folder.
The upload folder is on 755.
If I chmod it to 777 all is fine. But of course that is not really the best solution as we all know.
The weirdest thing is that the WordPress site I run from another folder now has the exact same permission problem!
If I remove it from the root and run the main WordPress site again from its subfolder things are fine on both sites.
Move it back to the root: permission problem is back again!
I am well and truly stumped at this point to be quite honest….
So I hope one of the experts here will have some pointers how to solve this.
Many thanks in advance!!
- The topic ‘Media upload problem after moving wordpress to root’ is closed to new replies.