Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Sep 24, 2012 10:18 am 
Offline
Senior Newbie

Joined: Mon Sep 24, 2012 10:06 am
Posts: 10
In Wordpress there are features to update plugin/theme automatically when the new version is released. With one button click, it will download, extract and install automatically.

Now in Linode, when i want to update, it prompts for FTP credentials (refer screenshot in this link):
http://grab.by/ghSc

How to overcome this? Linode only allow SFTP but not FTP. The screenshot would indicate that i can use FTP over SSL. How to configure this?


Top
   
PostPosted: Mon Sep 24, 2012 6:00 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Linode allows whatever you want, including FTP. We (the community) strongly recommend against it, though, since FTP by itself is a security risk (sends passwords in plaintext).


Top
   
PostPosted: Mon Sep 24, 2012 6:51 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
If the ownership/group/file permissions are set right, the auto update works fine.

Code:
       chown -R apache /www/web
       chgrp -R apache /www/web
       chown root /www/web/wp-config.php
       find /www/web/ -type d -exec chmod 755 {} \;
       find /www/web/ -type f -exec chmod 644 {} \;
       chmod 750 /www/web/wp-config.php


Adjust as needed to the owner of Apache files for your distro (this example is for CentOS) as well as the location of your wordpress site.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Mon Sep 24, 2012 9:16 pm 
Offline
Senior Newbie

Joined: Mon Sep 24, 2012 10:06 am
Posts: 10
Guspaz wrote:
Linode allows whatever you want, including FTP. We (the community) strongly recommend against it, though, since FTP by itself is a security risk (sends passwords in plaintext).



But i am not using FTP, i am using SFTP as suggested by Linode. Vonskippy, i am using Nginx, not Apache.


Top
   
PostPosted: Tue Sep 25, 2012 8:33 pm 
Offline
Junior Member

Joined: Sun May 06, 2012 2:30 pm
Posts: 25
Location: San Diego, California
dzulfriday wrote:
Guspaz wrote:
Linode allows whatever you want, including FTP. We (the community) strongly recommend against it, though, since FTP by itself is a security risk (sends passwords in plaintext).



But i am not using FTP, i am using SFTP as suggested by Linode. Vonskippy, i am using Nginx, not Apache.

If you install a PHP ssh library Wordpress will give you the option to use SFTP.

Also just change the user from apache to whatever you run nginx as, it's not rocket science.


Top
   
PostPosted: Tue Sep 25, 2012 9:48 pm 
Offline
Senior Newbie

Joined: Mon Sep 24, 2012 10:06 am
Posts: 10
jerzzp

Do you mean by changing my WP username to same like linode username?


Top
   
PostPosted: Tue Sep 25, 2012 10:14 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
jerzzp wrote:
Also just change the user from apache to whatever you run nginx as, it's not rocket science.


Hey vonskippy, is this one of your sockpuppets?


Top
   
PostPosted: Tue Sep 25, 2012 10:15 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
dzulfriday wrote:
Do you mean by changing my WP username to same like linode username?


Your PHP handlers are running as some user. This would be the username you'd want to change ownership to.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Tue Sep 25, 2012 10:17 pm 
Offline
Senior Newbie

Joined: Mon Sep 24, 2012 10:06 am
Posts: 10
hoopycat wrote:
dzulfriday wrote:
Do you mean by changing my WP username to same like linode username?


Your PHP handlers are running as some user. This would be the username you'd want to change ownership to.



How can i know what user name the php handlers is using. Sorry for this newbie question


Top
   
PostPosted: Tue Sep 25, 2012 10:23 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
hoopycat wrote:
Hey vonskippy, is this one of your sockpuppets?

Naw, he just beat me to the punch.

Besides I posted working code, with a bit of google-grease the OP should be able to adjust as needed for his setup (i.e. apache is the user that the Apache service runs, or at least it is in CentOS, so "x" is the user that Nginx service runs, google for "x" on your distro, adjust posted code as needed for your setup - voila, problem solved - wordpress will autoupdate).

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Wed Sep 26, 2012 3:08 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
dzulfriday wrote:
Guspaz wrote:
Linode allows whatever you want, including FTP. We (the community) strongly recommend against it, though, since FTP by itself is a security risk (sends passwords in plaintext).



But i am not using FTP, i am using SFTP as suggested by Linode. Vonskippy, i am using Nginx, not Apache.


I'm referring to your comment where you said "Linode only allow SFTP but not FTP." This is not correct. Linode recommends against plain FTP, but by no means do they disallow it.


Top
   
PostPosted: Thu Sep 27, 2012 7:50 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
dzulfriday wrote:
How can i know what user name the php handlers is using. Sorry for this newbie question


When you installed/configured PHP, what method did you use? If you used PHP-FPM, it will be in the configuration file for that pool. (I think somewhere under /etc/php/fpm, but I don't have a PHP install in front of me right now.)

_________________
Code:
/* TODO: need to add signature to posts */


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