How enable ftp to localhost wordpress site?
macportsusers-20171215 at billmail.scconsult.com
Mon Aug 3 02:41:41 UTC 2020
On 1 Aug 2020, at 20:09, Jeffrey Walton wrote:
> On Sat, Aug 1, 2020 at 7:49 PM Bill Cole
> <macportsusers-20171215 at billmail.scconsult.com> wrote:
>> Doing a little research, I found that the reason WP sometimes asks
>> 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
>> it. The simplest fix, if your webserver is running as _www (default
>> MacPorts' apache2) and you have WP installed at
>> chmod -R _www:admin
And that's wrong. It should be:
chown -R _www:admin /opt/local/www/apache2/html/wordpress/wp-content
> I would consider doing that the other way... chmod -R admin:_www.
MacOS does not normally have a user named "admin" so even if you meant
to write 'chown' as I did, that won't work.
> would also chmod 0750. Apache usually needs read access, not
> read/write. Other does not need any access.
WordPress requires write access to its wp-content subdirectory. It is a
content management system, and while much of what it manages is in its
database, it has subdirectories under wp-content for uploads, themes,
plugins and its self-upgrade facility that it (i.e. Apache, running
WordPress PHP code) must be able to write to.
WordPress is not the CMS of choice if one is obsessed with structural
bill at scconsult.com or billcole at apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not For Hire (currently)
More information about the macports-users