4 ms·
Use two users, and wp-cli. I've been doing this for years now. Php runs as a less privileged user, without write permission. If they want to install plugins, t
by deckiedan 9y ago
Use two users, and wp-cli.
I've been doing this for years now.
Php runs as a less privileged user, without write permission. If they want to install plugins, they need to enter the FTP name and password of the site dir owner user. Since the FTP connection is localhost, no passwords go over the wire in plaintext.
Next, you install wp-cli, and add a real system cron job to 'wp core update', and 'wp plugins update' every hour.
You can also do things like transient cleaning once a month, or whatever else, and running the WordPress fake cron.
You can then disable wp cron, which saves network resources.
- developer2 9y agoPersonally I find ftp as an unacceptable protocol for this purpose. Doesn't matter that it's localhost. It just goes to show WordPress is truly aimed at the lowest common denominator.