Jump to content

Recommended Posts

Posted

Hi Fellow WP Bloggers....

 

I am trying to sort out a blog and all is looking good but the file upload option is giving me the following error message.....

 

Warning: copy(/home/wwwcape/public_html/img/cape_front.jpg): failed to open stream: Permission denied in /home/wwwcape/public_html/wp-admin/upload.php on line 170

Couldn't upload your file to /home/wwwcape/public_html/img/cape_front.jpg.

 

I have double checked my CHMOD settings and all is in order there. i had a look at the Wordpress support forums and its a bit of mixture some saying cosde error some saying host error....

 

ANy help would be appreciated

 

Many Thanks for excellent forums !

Posted

Make sure the "img" folder in "public_html" is CHMOD 777

 

Do not make "public_html" 777 just "img"

 

In Wordpress make sure you have set the Maximum size of images to upload on the Options --> Miscellaneous tab and that you have set a minimum level to upload. Oh and make sure the check box is checked to allow uploads.

  • 1 month later...
Posted

i made my images folder in public_html to 777 and i get the following error:

 

Unable to create directory /home/XXXXX/public_html/wp-content/uploads. Is its parent directory writable by the server?

Back to Image Uploading

Posted (edited)
i made my images folder in public_html to 777 and i get the following error:

 

i even tried manually generating the wp-content/uploads folder and ones that WP keeps asking for on subsequent tries. finally i get this error:

 

Warning: move_uploaded_file(/home/XXXXXX/public_html/wp-content/uploads/2006/01/downtimer1.jpg): failed to open stream: Permission denied in /home/XXXXXX/public_html/wp-admin/admin-functions.php on line 1757

 

Warning: move_uploaded_file(): Unable to move '/tmp/phpjsNdU7' to '/home/XXXXXX/public_html/wp-content/uploads/2006/01/downtimer1.jpg' in /home/XXXXXX/public_html/wp-admin/admin-functions.php on line 1757

The uploaded file could not be moved to .

Edited by sk4sk4
Posted

Your concern is correct...it's not a good idea! I would suggest to drop a note to the help desk and have them change the folders that are set to 777 to 775 and have the ownership changed to 'nobody'. (I remember seeing that elsewhere in the forums but couldn't find it at the moment!) I've done that on several folders of one of my sites as, like you, I just couldn't live with a folder being wide open like that!

Posted

This is the thing in Wordpress 2.0 that has kept me from upgrading. Why didn't they just leave the upload script alone? It used to be you specified where your upload directory was and were able to set the permissions and be done with it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...