Moving wp-config.php one level up – 500 error – Nginx [closed]

In this answer, I assume the following, going by your question: Your WordPress site is at /var/www/html Your WordPress sites’s full config file is at /var/www/wp-config.php There is a small file at /var/www/html/wp-config.php that (ideally) will load /var/www/wp-config.php Your /var/www/wp-config.php contains all the necessary content to run your WordPress site (ie, the code from wp-config-sample.php, … Read more

WordPress failing to update plugins

I have WordPress on Unbutu as well. Maybe this will get you started. (I’m assuming you have access with command line through Terminal via SSH. If that assumption is in error, forgive me.) In a typical WordPress install there are likely three users, similar to: root:root www-data:www-data (Apache) user:user sudo lxd (WHERE “user” is some … Read more

Disable globally “Crop thumbnail to exact dimensions (normally thumbnails are proportional)” with Multisite

To disable cropping, insert this below code in disable-automatic-image-crop.php file in your mu-plugins folder: <?php /* Plugin Name: Disable Automatic Image Crop Author: WordPress Community Description: https://gist.github.com/czenzel/0f5888cbbfa4a857e56361dd3bc19b39 */ add_action( ‘init’, ‘czc_disable_extra_image_sizes’ ); add_filter( ‘image_resize_dimensions’, ‘czc_disable_crop’, 10, 6 ); function czc_disable_crop( $enable, $orig_w, $orig_h, $dest_w, $dest_h, $crop ) { // Instantly disable this filter after the … Read more

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