Enable plugin installs without FTP with user from same group as Nginx/PHP-fpm

WordPress specifically checks that the fileowner of the files it creates are identical to the value returned by getmyuid. Meaning that if it creates files using a different owner than the owner of the WordPress files themselves, it won’t use the “direct” mode. Same group is not enough. The files WordPress writes must have the … Read more

Private Plugin Updates – Localhost

As it turns out there’s a difference between 127.0.0.1 and localhost. Once I change my requests to: http://localhost/white/check-plugins/plugins/test-plugin.zip and a few other instances of the IP version, the update worked like a charm. Stack Overflow has some good answers on why this could be: What is the difference between 127.0.0.1 and localhost?

Can’t update/install plugins or WordPress

Fixed it. Put in a few commands that helped give wordpress the permissions it needed to auto update: sudo usermod -aG www-data $USER sudo chown -R www-data:www-data /var/www sudo chmod -R 774 /var/www This problem has been plaguing me for months. I feel like a huge weight has been lifted off my chest now haha.

How to debug background/auto update?

Your WP installation must not require FTP credentials on plugins or extensions install. Open wp-content/plugins/unyson/unyson.php and decrease the version Important: Decrease only the last digit (third). /** * … * Version: 2.5.0 * … */ Add in {theme}/functions.php add_filter( ‘auto_update_plugin’, ‘__return_true’, 99999 ); Open phpMyAdmin and delete wp_option named cron. You can run this SQL: … Read more

What is the correct way to update both WP/plugins/themes without breaking the site?

This is the reason I always recommend to use the least amount of plugins. This obviously easier to say then do, but if you are a developer you should strive to eliminate all plugins by incorporating the relevant code into a site specific plugin or theme. Integrators obviously have less ability to achieve this. The … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)