Forums

[resolved] Changing from WWW directory to PUBLIC_HTML! (8 posts)

  1. Melege
    Member
    Posted 2 years ago #

    Hello,
    I have a problem when trying to upload images to the "Uploads" directory.
    Although permissions of the "Uploads" directory are correct.

    The error message that comes up says that the WordPress is not permitted to modify the following directory:
    home/www/DOMAIN.com/portal2/wp-content/uploads/2009/12

    One of my friends told me that I have to make WordPress deal with this directory:
    home/public_html/DOMAIN.com/portal2/wp-content/uploads/2009/12

    Instead of this directory:
    home/www/DOMAIN.com/portal2/wp-content/uploads/2009/12

    Then I should make wordpress deal with (PUBLIC_HTML) instead of (WWW) as the directory WWW is just a symlink of PUBLIC_HTML.

    Anyone can help me fix this?
    Thanks in advance for your time reading my post,

  2. xdesi
    Member
    Posted 2 years ago #

    Afaik public_html and www folders are the same, they are like shortcuts to each other (although not 100%)

    It sounds as if it could still be a perms problem, or a script problem, what script are you using?

  3. alism
    Member
    Posted 2 years ago #

    What settings have you got on:
    Admin > Settings > Miscellaneous

  4. Melege
    Member
    Posted 2 years ago #

    Thanks for your replies,
    @xdesi: The script is WordPress (of course). I don't get what do you mean.
    @alism: Thank you I have found the option and changed the path, but unfortunately the error message still exists!

  5. xdesi
    Member
    Posted 2 years ago #

    Are you getting this error when uploading a file? Can you post the exact error here?

  6. Melege
    Member
    Posted 2 years ago #

    Thanks for replying,
    Sorry, my control panel is in Arabic, I can only translate the message for you as I can't get the exact error message in English.
    After changing the path to "public_html", now the error message indicates that WordPress can not modify the directory:
    home/public_html/DOMAIN.com/portal2/wp-content/uploads/2009/12

    I double checked this URL and I am sure the permissions are correct. Also have disabled the mod_secure

  7. Melege
    Member
    Posted 2 years ago #

    The exacr error message in English is:
    ==========
    Unable to create directory home/public_html/DOMAIN.com/portal2/wp-content/uploads/2009/12. Is its parent directory writable by the server?
    ==========

    It seems it's a common problem, but till now, can't find a solution!

  8. Melege
    Member
    Posted 2 years ago #

    I fixed it. The path was not supposed to be full.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.