How enable ftp to localhost wordpress site?

Bill Cole macportsusers-20171215 at billmail.scconsult.com
Mon Aug 3 22:16:35 UTC 2020


On 2 Aug 2020, at 13:13, Murray Eisenberg wrote:

> (1) OK, I already have a plugins subdirectory the wordpress wp-content 
> directory. It’s already populated with an index.php, hello.php, and 
> an aksimet subdirectory.
>
> I put the new plugin I needed, wp-all-import there, too.
>
> Unfortunately, when I open the site and use the Tools > Import tool, 
> that plugin is not shown, just the several that need to be installed 
> (via ftp).
>
> How do I tell wordpress that it’s there and can be used?

I don't know of a way to that, as I was unaware of the apparent fact 
that it takes more than just having the files there. I am sorry tohave 
led you astray...

> (2) How do I tell whether apache2 is running as _www?

Two options:

A: If you're running a modern MacOS (10.8 Mountain Lion or newer) you 
can run this in a Terminal session:

       ps uw -p $( pgrep httpd )

    That will give you a list of all of the httpd processes with 
multiple columns, the first of which is the user each is running as.

B: On any version of MacOS, you can run /Applications/Utilities/Activity 
Monitor.app and search for "httpd." That will also give you a list of 
all of the httpd processes with multiple columns, the first of which is 
the user each one is running as.

Either way you get the process list, there should be one instance of 
httpd running as "root" (the parent Apache process) and a handful of 
others all running as another user, probably "_www." Those child 
processes are where WordPress runs and they need to be able to write to 
much of the WordPress directory tree, because WordPress both manages 
content that lives in the filesystem and administers itself with WP 
core, plugin, and theme updates & installation. See 
https://wordpress.org/support/article/changing-file-permissions/#permission-scheme-for-wordpress 
for details.


> (3) Note that my wordpress site is installed as a “blog” 
> subdirectory of ~/Sites, and I have a virtual host set up so that’s 
> OK for the location. (I NEVER want any actual content for anything to 
> be in /opt; I want it all under my home user directory.

This doesn't change the need for much of that directory tree to be 
writable by the user ID used to run the web server. As outlined at the 
link above, there are multiple ways to do that but they all amount to 
the web server user being able to modify essentially all of WordPress.

-- 
Bill Cole
bill at scconsult.com or billcole at apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not For Hire (currently)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20200803/6a436c72/attachment.htm>


More information about the macports-users mailing list