wp-config.php file permissions

Which file and directory permissions should I set on a new WordPress/LAMP installation? There is no definite answer to this. It varies depending on the server setup. The rule of thumb is to use the minimal permission to make WordPress work on a server. This means to start with 400 (or 600) and go from … Read more

Notice: Constant already defined in wp-config.php on (non-existent) line?

tl;dr: Clear your (Comet) Cache! Long answer: I only have 2 words: Comet Cache! Comet Cache was enabled. Checking the source code showed me a note like this, after the closing </html>: <!– *´¨) ¸.•´¸.•*´¨) ¸.•*¨) (¸.•´ (¸.•` ¤ Comet Cache Notes ¤ ´¨) –> <!– Cache File Version Salt: n/a –> <!– Cache File … Read more

How to move theme directory but not plugins/uploads out of WordPress root directory?

http://codex.wordpress.org/Function_Reference/register_theme_directory /** * Register a directory that contains themes. * * @since 2.9.0 * * @param string $directory Either the full filesystem path to a theme folder or a folder within WP_CONTENT_DIR * @return bool */ function register_theme_directory( $directory ) You should be able to call register_theme_directory(‘/full/path/to/directory’) and thus add a new path full of … Read more

Fix 403 error on WordPress multisite network using subdomains

every subdomain has it’s own directory on the server when it’s created, so for example, if in the cPanel I set the mysite.example.com as a subdomain, the relative directory will be created in the root of the server, with the name of mysite.example.com. I’ve read that the subdomains must point to the main wordpress installation … Read more

Some plugins adding full server path after url (with custom wp-content folder)

Given that the js location is determined as follows: $js_location = WPSEO_URL . ‘js/wp-seo-admin-global.js’ where: WPSEO_URL = WP_PLUGIN_URL . “https://wordpress.stackexchange.com/” . <WP_SEO_PLUGIN_PATH> . “https://wordpress.stackexchange.com/” I suspect the problem lies with the derivation of <WP_SEO_PLUGIN_PATH>. This value is determined by the code in the function plugins_url() found in wp-includes\link-template.php If you debug that function, it may … Read more