Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Apr 20, 2012 11:31 pm 
Offline
Newbie

Joined: Fri Apr 20, 2012 11:17 pm
Posts: 3
I followed the Linode Library to setup my firewall rules, and not able to use ftp. The document says "we strongly recommend that you do not use those protocols". I can use sftp to access my dir, but it seems WordPress can't. Then I can't upgrade WordPress in the browser.

I don't have much experiences on using iptables before. Could any please tell me:

1) is the WordPress problem caused by the iptables blocked the ftp ports?
2) how to make WordPress upgrading function work?

Thanks!


Top
   
 Post subject:
PostPosted: Fri Apr 20, 2012 11:44 pm 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
FTP does not come installed on a Linode by default, only SSH File Transfer Protocol (SFTP) is there.

WordPress is asking for your FTP credentials because it does not have the folder/file permissions to write to its own files. That means, the user that your PHP scripts are being executed as (probably www-data), does not have permission to write to the files/folders where WordPress is installed.

-Tim

Edit: So, to make it work you'd need to make it so WordPress can write. There are a few ways to do it, but I'd suggest looking at the WordPress documentation for any best practices.


Top
   
 Post subject:
PostPosted: Sat Apr 21, 2012 12:31 am 
Offline
Newbie

Joined: Fri Apr 20, 2012 11:17 pm
Posts: 3
theckman wrote:
FTP does not come installed on a Linode by default, only SSH File Transfer Protocol (SFTP) is there.

WordPress is asking for your FTP credentials because it does not have the folder/file permissions to write to its own files. That means, the user that your PHP scripts are being executed as (probably www-data), does not have permission to write to the files/folders where WordPress is installed.

-Tim

Edit: So, to make it work you'd need to make it so WordPress can write. There are a few ways to do it, but I'd suggest looking at the WordPress documentation for any best practices.


Yes, you are right. Thanks man.

I did this post after I found its no use to change the owner of wp-content/upgrade to www-data. Now after I change the permission of the upgrade dir to 777 it works. My bad. :S


Top
   
 Post subject:
PostPosted: Sat Apr 21, 2012 10:08 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
Just make sure to change it back to non-writable after you're done with the upgrade.

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
 Post subject:
PostPosted: Sat Apr 21, 2012 10:32 am 
Offline
Newbie

Joined: Fri Apr 20, 2012 11:17 pm
Posts: 3
rsk wrote:
Just make sure to change it back to non-writable after you're done with the upgrade.


Could please explain more. Is it necessary to do that if I'm the only one on this VPS node?


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


Who is online

Users browsing this forum: No registered users and 3 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