• Resolved Draxeiro

    (@draxeiro)


    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!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Draxeiro

    (@draxeiro)

    UPDATE:
    It seems the (permission) problem includes the entire wp-content folder instead of just ‘uploads’. Just tried to install a plugin and instead of automatically installing it, as it did before when still fully in its subfolder it now asks for the FTP details and such.

    I would imagine WordPress updates will not work now either.

    I am guessing this might somehow pertain to ownership issues but I don’t understand why it would work without a problem when still fully in its subfolder.

    Hope someone will be able to shed some light on this issue.

    Thread Starter Draxeiro

    (@draxeiro)

    As you can see nobody actually chimed in with tips but in the end things where solved anyhow.

    Problem turned out to be a misconfiguration issue the server in question. The hosting provider ran a script that rectified things and the problem was gone.

    Hope this might help out somebody that runs into the same problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Media upload problem after moving wordpress to root’ is closed to new replies.