Difference in sites-available vs sites-enabled vs conf.d directories (Nginx)?

The sites-* folders are managed by nginx_ensite and nginx_dissite. For Apache httpd users who find this with a search, the equivalents is a2ensite/a2dissite. The sites-available folder is for storing all of your vhost configurations, whether or not they’re currently enabled. The sites-enabled folder contains symlinks to files in the sites-available folder. This allows you to … Read more

403 forbidden when changing settings on WP Multisite non-main sites

I had the same problem – I found the rules in Apache modsecurity that include a set of exclusions for WordPress didn’t cover /network/site-settings.php, so I could do everything except edit sites in my multisite setup. In the file /usr/share/modsecurity-crs/rules/REQUEST-903.9002-WORDPRESS-EXCLUSION-RULES.conf I added the following lines: SecRule REQUEST_FILENAME “@endsWith /wp-admin/network/site-settings.php” \ “id:9009999,\ phase:1,\ pass,\ t:none,\ nolog,\ … Read more

Default plugin config to override wp_options?

You could check which options they add (look at the source code) and then simply write a function like this: /* Plugin Name: Mother of all plugins Plugin URI: http://wordpress.org/extend/plugins/ Description: Offers the <code>$all_plugin_options;</code> var to access all predefined plugin options Author: Franz Josef Kaiser Author URI: http://say-hello-code.com Version: 0.1 License: GPL v2 – http://www.gnu.org/licenses/old-licenses/gpl-2.0.html … Read more

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