RE: How enable ftp to localhost wordpress site?

2020-08-01 Thread jkorchok
I second Cristopher's observations: when the server is locally available, FTP 
isn't necessary. 

That said, I usually install plug-ins from the WP Dashboard, which is available 
from any location.

John Korchok



Re: How enable ftp to localhost wordpress site?

2020-08-01 Thread Christopher Chavez

On 7/31/2020 7:28 PM, Murray Eisenberg wrote:

(WordPress docs don’t deal with this! they just say to use ftp to install the 
plugins.)


I have the impression that the documentation merely accommodates the
common use case where WordPress is being hosted on a remote server by a
third-party web hosting service. Traditionally these web hosting
services provide FTP access as a means of directly uploading content,
etc. to the web server. (File management capability is usually also
offered through a web browser administration portal.) If you're not
using a third-party web hosting service, i.e. are self-hosting, then you
might disregard instructions to use FTP specifically, as it is up to you
to provide yourself file management access to the appropriate
directories on the server (whether remotely through (S)FTP, CIFS/SMB,
etc., or by physically sitting at the server).

Christopher A. Chavez


Re: How enable ftp to localhost wordpress site?

2020-08-01 Thread Jeffrey Walton
On Sat, Aug 1, 2020 at 7:49 PM Bill Cole
 wrote:
>
> ...
> Doing a little research, I found that the reason WP sometimes asks for
> ftp credentials is that it can't directly write to the plugins
> directory. That usually means that it also can't write to any of
> wp-content/, which is a problem that will break WP once you start using
> it. The simplest fix, if your webserver is running as _www (default for
> MacPorts' apache2) and you have WP installed at
> /opt/local/www/apache2/html/wordpress/:
>
> chmod -R _www:admin
> /opt/local/www/apache2/html/wordpress/wp-content

I would consider doing that the other way... chmod -R admin:_www. I
would also chmod 0750. Apache usually needs read access, not
read/write. Other does not need any access.

Jeff


Re: How enable ftp to localhost wordpress site?

2020-08-01 Thread Bill Cole

On 1 Aug 2020, at 10:36, Murray Eisenberg wrote:

(I searched for “openssh” in /opt but find nothing with that name 
there, so I cannot even see any config file for it!)


There is a port for OpenSSH named 'openssh' so you should have found 
something...


But generally you wouldn't want to use the port unless you have some 
need for the features in the latest version or are using an old version 
of MacOS X which has a vulnerable OpenSSH in the base system. Enable 
"Remote Login" in the Sharing preferences pane and you get SFTP along 
with it.


--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not For Hire (currently)


Re: How enable ftp to localhost wordpress site?

2020-08-01 Thread Bill Cole

On 1 Aug 2020, at 17:29, Murray Eisenberg wrote:

I have no plugins directory in my wordpress directory or its 
subdirectories.


Sorry about that, the plugins directory is at [WordPress 
Root]/wp-content/plugins


Clearly wordpress WANTS the user to use ftp or, presumably 
equivalently for its purposes, sftp.


Doing a little research, I found that the reason WP sometimes asks for 
ftp credentials is that it can't directly write to the plugins 
directory. That usually means that it also can't write to any of 
wp-content/, which is a problem that will break WP once you start using 
it. The simplest fix, if your webserver is running as _www (default for 
MacPorts' apache2) and you have WP installed at 
/opt/local/www/apache2/html/wordpress/:


   chmod -R _www:admin  
/opt/local/www/apache2/html/wordpress/wp-content



How do I set that up strictly locally, i.e., server running wordpress 
is localhost; files to be transmitted are on the same local Mac 
housing localhost.


It MAY also work if you enable "Remote login" in System 
Preferences->Sharing, which enables the built-in SSH daemon. You can 
then *maybe* give WP the name and password of a macOS user with admin 
rights.




On 1 Aug2020, at 8:00 AM, macports-users-requ...@lists.macports.org 
wrote:


From: "Bill Cole" >
To: "MacPorts Users" >

Subject: Re: How enable ftp to localhost wordpress site?
Message-ID:

On 31 Jul 2020, at 20:28, Murray Eisenberg wrote:


I?ve installed the MacPorts version of apache2 and have a working
localhost wordpress site running under apache2.

How to I enable ftp with this, so that I can ftp into the wordpress
site? (This is so I can install WordPress plugins.)


If it's running on 'localhost' then you don't need FTP, you can just
copy the plugins' files to the WordPress tree
(/opt/local/www/apache2/html/ or a subdirectory of that, depending on
how you installed WordPress) directly. You may need to adjust 
ownership

and/or permissions on that directory or use 'sudo cp' in a Terminal
session to do the copying. WP plugins typically install in their own
subdirectory trees under the 'plugins' subdirectory of the WordPress
root.

Is there some particular MacPorts port I need to add? and then what 
do

I need to do so it?s available from within the wordpress site?

(WordPress docs don?t deal with this! they just say to use ftp to
install the plugins.)


Which is unfortunate, because FTP is a mess security-wise. While one 
CAN
make it reasonably safe, doing so narrows the range of clients that 
work

with any particular secure setup. If you end up with a WordPress site
running on a remote system where you need a file transfer facility, 
you

are better off using SFTP, which provides a FTP-like client interface
without the backend that has been evolving organically since the 
`70s.

SFTP is a subsystem of OpenSSH, so nearly any modern
Unix/Linux/BSD/MacOS server that allows remote login supports SFTP by
default.

Bill Cole


---
Murray Eisenbergmurrayeisenb...@gmail.com
503 King Farm Blvd #101 Home (240)-246-7240
Rockville, MD 20850-6667Mobile (413)-427-5334



--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not For Hire (currently)


Re: How enable ftp to localhost wordpress site?

2020-08-01 Thread Murray Eisenberg
I have no plugins directory in my wordpress directory or its subdirectories.

Clearly wordpress WANTS the user to use ftp or, presumably equivalently for its 
purposes, sftp.

How do I set that up strictly locally, i.e., server running wordpress is 
localhost; files to be transmitted are on the same local Mac housing localhost.

> On 1 Aug2020, at 8:00 AM, macports-users-requ...@lists.macports.org wrote:
> 
> From: "Bill Cole"  >
> To: "MacPorts Users"  >
> Subject: Re: How enable ftp to localhost wordpress site?
> Message-ID:
> 
> On 31 Jul 2020, at 20:28, Murray Eisenberg wrote:
> 
>> I?ve installed the MacPorts version of apache2 and have a working 
>> localhost wordpress site running under apache2.
>> 
>> How to I enable ftp with this, so that I can ftp into the wordpress 
>> site? (This is so I can install WordPress plugins.)
> 
> If it's running on 'localhost' then you don't need FTP, you can just 
> copy the plugins' files to the WordPress tree 
> (/opt/local/www/apache2/html/ or a subdirectory of that, depending on 
> how you installed WordPress) directly. You may need to adjust ownership 
> and/or permissions on that directory or use 'sudo cp' in a Terminal 
> session to do the copying. WP plugins typically install in their own 
> subdirectory trees under the 'plugins' subdirectory of the WordPress 
> root.
> 
>> Is there some particular MacPorts port I need to add? and then what do 
>> I need to do so it?s available from within the wordpress site?
>> 
>> (WordPress docs don?t deal with this! they just say to use ftp to 
>> install the plugins.)
> 
> Which is unfortunate, because FTP is a mess security-wise. While one CAN 
> make it reasonably safe, doing so narrows the range of clients that work 
> with any particular secure setup. If you end up with a WordPress site 
> running on a remote system where you need a file transfer facility, you 
> are better off using SFTP, which provides a FTP-like client interface 
> without the backend that has been evolving organically since the `70s. 
> SFTP is a subsystem of OpenSSH, so nearly any modern 
> Unix/Linux/BSD/MacOS server that allows remote login supports SFTP by 
> default.
> 
> Bill Cole

---
Murray Eisenbergmurrayeisenb...@gmail.com
503 King Farm Blvd #101 Home (240)-246-7240
Rockville, MD 20850-6667Mobile (413)-427-5334




Re: Command Line Tools for Xcode 11.6

2020-08-01 Thread Murray Eisenberg
Huh?? Step 1 in the MacPorts “Quickstart", or the more detailed “Installing 
MacPorts”, at https://www.macports.org/install.php 
 is to install the Apple Xcode Command 
Line Tools.

> On 1 Aug2020, at 3:09 PM, Chris Jones  wrote:
> 
> Hi,
> 
> Either install the newest available, 11.5, or just remove the CLT (its not 
> really needed).
> 
> https://developer.apple.com/library/archive/technotes/tn2339/_index.html#//apple_ref/doc/uid/DTS40014588-CH1-HOW_CAN_I_UNINSTALL_THE_COMMAND_LINE_TOOLS_
>  
> 
> 
> Chris
> 
>> On 1 Aug 2020, at 5:59 pm, Murray Eisenberg  
>> wrote:
>> 
>> When doing MacPorts 2.6.3 upgrades of ports, I’m seeing message:
>> 
>> Warning: cltversion: The Command Line Tools are installed, but MacPorts 
>> cannot determine the version.
>> Warning: cltversion: For a possible fix, please see: 
>> https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt 
>> 
>> 
>> My Xcode is version 11.6. 
>> 
>> The fix presented in the link above is to reinstall the Xcode command-line 
>> tools.
>> 
>> However, developer.apple.com  lists NO 
>> command-line tools for Xcode 11.6!
>> 
>> What to do?
>> ---
>> Murray Eisenberg murrayeisenb...@gmail.com 
>> 
>> 503 King Farm Blvd #101  Home (240)-246-7240
>> Rockville, MD 20850-6667 Mobile (413)-427-5334
>> 
>> 

---
Murray Eisenbergmurrayeisenb...@gmail.com
503 King Farm Blvd #101 Home (240)-246-7240
Rockville, MD 20850-6667Mobile (413)-427-5334




Re: Command Line Tools for Xcode 11.6

2020-08-01 Thread Chris Jones
Hi,

Either install the newest available, 11.5, or just remove the CLT (its not 
really needed).

https://developer.apple.com/library/archive/technotes/tn2339/_index.html#//apple_ref/doc/uid/DTS40014588-CH1-HOW_CAN_I_UNINSTALL_THE_COMMAND_LINE_TOOLS_

Chris

> On 1 Aug 2020, at 5:59 pm, Murray Eisenberg  wrote:
> 
> When doing MacPorts 2.6.3 upgrades of ports, I’m seeing message:
> 
> Warning: cltversion: The Command Line Tools are installed, but MacPorts 
> cannot determine the version.
> Warning: cltversion: For a possible fix, please see: 
> https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt
> 
> My Xcode is version 11.6. 
> 
> The fix presented in the link above is to reinstall the Xcode command-line 
> tools.
> 
> However, developer.apple.com lists NO command-line tools for Xcode 11.6!
> 
> What to do?
> ---
> Murray Eisenberg  murrayeisenb...@gmail.com
> 503 King Farm Blvd #101   Home (240)-246-7240
> Rockville, MD 20850-6667  Mobile (413)-427-5334
> 
> 


Command Line Tools for Xcode 11.6

2020-08-01 Thread Murray Eisenberg
When doing MacPorts 2.6.3 upgrades of ports, I’m seeing message:

Warning: cltversion: The Command Line Tools are installed, but MacPorts cannot 
determine the version.
Warning: cltversion: For a possible fix, please see: 
https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt 


My Xcode is version 11.6. 

The fix presented in the link above is to reinstall the Xcode command-line 
tools.

However, developer.apple.com  lists NO 
command-line tools for Xcode 11.6!

What to do?
---
Murray Eisenbergmurrayeisenb...@gmail.com
503 King Farm Blvd #101 Home (240)-246-7240
Rockville, MD 20850-6667Mobile (413)-427-5334




Re: How enable ftp to localhost wordpress site?

2020-08-01 Thread Murray Eisenberg
wordpress is asking for my ftp credentials for my web server (hostname, ftp 
username, and ftp password) in order to install a plug-in.

The server is just localhost.

How do I discover or set my ftp username and password with the openssh port so 
as to be able to use sftp with it?

(I searched for “openssh” in /opt but find nothing with that name there, so I 
cannot even see any config file for it!)

> On 31 Jul2020, at 10:17 PM, Daniel J. Luke  wrote:
> 
> I'd strongly recommend you don't use FTP.
> 
> Use 'sftp' instead (if you've got sshd running on the server you can use 
> sftp). Most of the graphical ftp clients support sftp also.
> 
> For anyone out there who actually needs ftp, vsftpd is a pretty good choice 
> (but you probably don't actually need ftp, so just use sftp instead).
> 
>> On Jul 31, 2020, at 8:28 PM, Murray Eisenberg  
>> wrote:
>> 
>> I’ve installed the MacPorts version of apache2 and have a working localhost 
>> wordpress site running under apache2.
>> 
>> How to I enable ftp with this, so that I can ftp into the wordpress site? 
>> (This is so I can install WordPress plugins.)
>> 
>> Is there some particular MacPorts port I need to add? and then what do I 
>> need to do so it’s available from within the wordpress site?
>> 
>> (WordPress docs don’t deal with this! they just say to use ftp to install 
>> the plugins.)
> 
> -- 
> Daniel J. Luke

---
Murray Eisenbergmurrayeisenb...@gmail.com
503 King Farm Blvd #101 Home (240)-246-7240
Rockville, MD 20850-6667Mobile (413)-427-5334