Ready to get started?Download WordPress


Hosting images on subdomain - Error (4 posts)

  1. hostwings
    Posted 2 years ago #

    Hi I've tried all day to host my images on a subdomain, it just isn't working. The only reason I'm doing it is because I've been reading that it helps to improve the load speed somewhat (since images are going to be a large part of the site), although i have also read opposing opinions that this method doesn't really help.

    There are no images yet in the blog, So I just followed the steps outlined in many sites and changed
    store upload to this folder: /public_html/img
    full url path to: subdomain

    That just gave me an error:
    Unable to create directory /public_html/img. Is its parent directory writable by the server?

    I change the permission for public_html/img to 577 temporarily as some suggested, didn't work.

    So I contacted my host and gave them access to my wordpress so they can replicate the error. Everything is fine on the backend. They can't figure out the problem.

    So I poured through more discussion, and changed the path on wordpress to: public_html/img instead of public_html/img (and tried different combinations of no slash and slash)

    The error message didn't show up, but neither does the image. the preview is blank, publishing the post just shows a broken image link, but the image name shows up in the gallery for the post as if it has been uploaded. check the directory shows that no image has been upload

    I'm at loss of what to do next. (and wondering if I'm wasting my time and should just go check out CDN instead..) Would appreciate any thoughts or help for this!

  2. anhbavacsung
    Posted 2 years ago #

    i have the same problem too :( i think the reason is because i hosted my blog on a first subdomain so it cant store the images at the second subdomain cause it need to have the same folder? is it possible to host images to a different site? or different host?

  3. tigtog
    Posted 2 years ago #

    I think you should be trying to host the images in a different subdirectory rather than a different subdomain?

  4. anhbavacsung
    Posted 2 years ago #

    @tigtog tks for replied
    that's a good advice too but i heard the other people said that subdomain will speed up my site than the subdirectory? cause my site is about Photograph

Topic Closed

This topic has been closed to new replies.

About this Topic