1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WP subdomain image upload failing. Help?

Discussion in 'Blogging' started by ben10023, Mar 26, 2012.

  1. ben10023

    ben10023 Regular Member

    Joined:
    Oct 23, 2011
    Messages:
    294
    Likes Received:
    62
    Location:
    UK
    Home Page:
    Hi BHW,

    So recently I've been optimizing my site to get it running nice and fast, it's been going pretty well and I've reached a 94/100 score on google page speed and YSlow.

    However, I recently created a subdomain; img.mywebsite.com to upload all my images as it's a fairly image heavy site.

    I used a SQL query to move all my current images over to the new domain and placed a 301 in my .htaccess file for google.

    However, whenever I upload a new image it dosen't display. I've changed the media settings in the admin panel to point to the correct URL. When I enter the uploaded image URL It goes to the correct location, but it returns an 500 internal server error.

    This only occurs in new images, and the ones I moved over with similar URL locations work fine.

    When I transfer the file over FTP It does display correctly but then the wordpress thumbnails don't display.

    A little help please? :D


    I'm currently using W3C cache, smush.it image compressor and the whitelight theme by woothemes. I'm not sure if its a wordpress issue or permissions or something..
     
  2. ben10023

    ben10023 Regular Member

    Joined:
    Oct 23, 2011
    Messages:
    294
    Likes Received:
    62
    Location:
    UK
    Home Page:
    Still working on this, does anyone what the .htaccess file for a subdomain in this setup should be ?
     
  3. RSS-SPIDER

    RSS-SPIDER Newbie

    Joined:
    Mar 5, 2012
    Messages:
    1
    Likes Received:
    0
    Occupation:
    Head of web development for a company that would f
    Location:
    here and there
    Sounds like a permissions issue. Wordpress dying at the point of making the thumbs. Make sure that the WP directory has the same owner as what ever your web server is running ie: apache.apache or nobody.nobody etc. Also make sure that the directory is +rwx for that user.
     
  4. ben10023

    ben10023 Regular Member

    Joined:
    Oct 23, 2011
    Messages:
    294
    Likes Received:
    62
    Location:
    UK
    Home Page:
    Yeah you were completely correct! All working now, and with a load time of 0.68s and faster than 94% of all websites according to pingdom.com :D
     
  5. TheMidasTouch

    TheMidasTouch Registered Member

    Joined:
    Sep 30, 2011
    Messages:
    99
    Likes Received:
    14
    Occupation:
    A Mythological Greek God
    Location:
    USA
    permission. check the .htaccess or php.ini to change the max upload limit.