Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Sep 21, 2012 3:50 am 
Offline
Junior Member
User avatar

Joined: Mon Sep 17, 2012 4:33 am
Posts: 43
Website: http://www.bonsoni.com
Hi all,

I installed a wordpress site on my newly installed Linode. It's ubuntu 10.4 LTS, Apache2.

When I was testing the wordpress posting, the editor didn't allow me to upload and embed an image. I checked the file permission of the wp-content/uploads folder. It's 755. Just to test, I changed that to 777 to allow WP to create ~/uploads/x folders then changed back the permission to 755. After this it is uploading images from the editor.

But I have a feeling that it may not be the permanent solution. As, when this month will end, WP will try to create a new ~uploads/10 and sever will not allow WP to do that(currently it's ~uploads/9 because I selected "Organize my uploads into month- and year-based folders" on WP options)

So I would really appreciate if anyone could tell me the permanent solution without compromising the security issue?

Thanks!

_________________
Ubuntu 10.4 LTS, Apache2, LAMP, n00b

Online Shopping


Top
   
PostPosted: Fri Sep 21, 2012 5:01 am 
Offline
Junior Member
User avatar

Joined: Mon Sep 17, 2012 4:33 am
Posts: 43
Website: http://www.bonsoni.com
Update:

Got the solution from the Linode IRC.

Run this command from ssh

Quote:
sudo chown -R www-data:www-data /home/user/public/mysite.com/public_html/wp-content/uploads


or where ever your image folder is

_________________
Ubuntu 10.4 LTS, Apache2, LAMP, n00b

Online Shopping


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group