wp-config.php is the configuration file of WordPress, one of few that is not overridden during upgrades. It is essential for running WordPress, as it contains the information needed to connect to the database

learn more… | top users | synonyms

2
votes
1answer
193 views

Add additional Network constants to wp-config.php dynamically

When starting with a fresh Network install, the first step is a single site install that has one additional line in the wp-config.php file: define( 'WP_ALLOW_MULTISITE', true ); After that we have ...
1
vote
2answers
311 views

Custom port problem with local MU installation

Situation I've just setup a new installation of WordPress (running on XAMPP/Win7). As I had a port conflict on :80/:443, I switched to :187/4430. Error When I'm now trying to access ...
0
votes
1answer
65 views

multisite subdirectory blogs missing slash

New WordPress 3.5.2 multisite (subdirectory) install is missing a slash when creating new blogs. WordPress is installed to server like: blogs.domain.com When a new user registers, the conformation ...
0
votes
2answers
486 views

Publishing Wordpress from stage to production server

I'm having trouble configuring wp-config.php correctly in a staged server environment. I'm being told that I should be working in my stage environment for Wordpress with an example address of ...
2
votes
1answer
1k views

Changing WP_CONTENT_DIR and WP_CONTENT_URL in wp-config.php does not register?

I tried to add this to the end of my wp-config.php define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/somedir'); define('WP_CONTENT_URL', 'http://example.com/somedir'); however, echo ...
1
vote
1answer
623 views

Control verbosity level of WP DEBUG?

I've been at a loss so far and so I thought I'd pose the question: Is there a way to modify the verbosity level of the WP debug.log via wp-config.php or elsewhere? Just an fyi, here is what I have in ...
0
votes
1answer
110 views

Multi language site using only .mo and WPLANG

Hello world/ Bonjour le monde, What technical limitations exist that would prevent the following from working (assume all static content with translations made in .mo file) Pseudo code: For every ...
1
vote
2answers
80 views

Declaratively Configuring Wordpress in XML or JSON or YAML

Couldn't find this on Google... Is there any handy way of fully (or partially) configuring a Wordpress site (plugins and all) using XML/JSON/YAML/etc? In general, I'm looking for a highly-readable, ...
0
votes
1answer
158 views

Custom theme folder

Is anyone aware of an equivalent to WP_PLUGIN_DIR and WP_PLUGIN_URL for themes that I can define in wp-config.php, or am I stuck creating a mu-plugin and registering a new theme dir?
1
vote
1answer
480 views

Bad Request (Invalid Hostname) on working server, database problem

I have a local server up using EasyPHP. I know its working because I have a default wordpress install running and up on my brower. I have a full site which I also know I have working because when I ...
0
votes
1answer
217 views

Conflict with wp_homeurl, wp_siteurl and admin interface settings

I'm starting wordpress development, and learning the platform. Now I'm stuck with a strange issue. I have created a virtual host configuration that works as expected. I'm using xip.io for dns ...
1
vote
1answer
177 views

Accessing two databases

I have two databases on my server, and wanted to know is there a way to access both databases from wordpress? My thought is adding the second set of credentials to the wp-config.php.
0
votes
1answer
171 views

Changing the wp-config.php broke the site

I added the lines define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/wp-content' ); and define( 'WP_CONTENT_URL', 'example/blog/wp-content';); in my wp-config.php and then my site broke. ...
0
votes
2answers
101 views

How secure is a wp-config file?

Considering the information that is in the wp-config file, how secure is this file? I have password salts in place, but can someone view this file? Or to what level of difficulty can some view the ...
3
votes
1answer
262 views

Wordpress PHP error handling and reporting in production environment

I'm trying to find a solution on how to handle the displaying and logging of errors in a PHP (Wordpress) production environment. Is it possible to do the following (alternative suggestions welcome): ...
0
votes
1answer
51 views

Cleared wp-cache and file is still not updated [closed]

I did all the following: Deleted the cache in the WP Super Cache settings Added define('DISABLE_CACHE', true); in my wp-config.php Deleted my 'cache' folder under 'wp-content' However a theme php ...
1
vote
2answers
133 views

Why do I get a WAMP homepage when clicking on specific website's URL on LocalHost?

Using WAMPSERVER for windows 7, smartgit and Safe Search Replace I have pulled a wordpress code from my git, downloaded a database and inserted into my localhost's phpmyadmin. My home page works but ...
0
votes
1answer
76 views

DB access blocked when initializing WP externally

I have an odd problem I'm hoping the group can help with. The problem is this: I have a few situations where I load the Wordpress environment without the overhead of the GUI (details) I am able to ...
3
votes
3answers
1k views

Is it possible to change the log file location for WP_DEBUG_LOG?

I use WP_DEBUG_LOG in my development environment and have no issues with debug.log being in the wp-content directory. Sometimes I turn on WP_DEBUG in production when I need to debug something, and I ...
-1
votes
1answer
166 views

Default installation permissions for wp-config.php

Recently I've noticed that many of the wordpress installations we have on our servers where being attacked and ifected by this thing ...
7
votes
1answer
2k views

Moving a WP Multisite to a subdirectory

Firstly, I've read a number of posts on this process. However, for various reasons, the process remains difficult to implement or troubleshoot for lack of even abstracted examples, or maybe too ...
0
votes
2answers
2k views

How to disable the default WordPress redirect to non-www URLs?

I am trying to redirect all non-www to www URLs in my WordPress MultiSite install. I am using a simple .htaccess rule like this: # Redirect non-www to www: RewriteCond %{HTTP_HOST} !^www\. [NC] ...
4
votes
3answers
3k views

What is the best way to get directory path for wp-config.php?

I am developer of the plugin mapsmarker.com which also offers several APIs which can be accessed directly (eg www.mapsmarker.com/wp-content/plugins/leaflet-maps-marker/leaflet-geojson.php?marker=1) ...
3
votes
3answers
536 views

Is there a way to define wp_blogs domains in wp-config?

In my multisite setup I have multiple environments that I want to share the same database, but use different domains. server1.example.com server2.example.com example.com ... each of those would ...
0
votes
2answers
514 views

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

Installing Wordpress SEO (an a few others but not all plugins) gives the following console error: GET ...
0
votes
2answers
490 views

“There doesn't seem to be a wp-config.php file.” despite wp-config.php in root

I've encountered an odd problem and I'm not at all sure how to go about fixing it.. I have a site that was working fine until I changed a page title from "PRESS" to "BLOG." Now, when you visit the ...
2
votes
2answers
732 views

Renaming wp-content folder dynamically

Is it possible to rename the wp-content folder dynamically? I am building a custom framework to use on themes and it would be nice to set it up where it does everything on its own. I am using this ...
0
votes
4answers
802 views

Can two domains use the same database?

I want to change a current site that already has a fairly robust database. Before I do, I want to test a few different layouts to make a decision. Instead of using the original site, I am thinking ...
6
votes
2answers
2k views

Prevent access or auto-delete readme.html, license.txt, wp-config-sample.php

Just a quick question that might help a tad bit with security. I noticed that the readme.html file has the version number listed. It reappears after each upgrade and so do the licence.txt, and ...
0
votes
1answer
225 views

How to use remote db tables in current config? [duplicate]

Possible Duplicate: Shared Members between two different wordpress installations with different databases For example I have 2 different wordpress installations with different domains and ...
1
vote
5answers
652 views

Moving WP from local server to live, error establishing a db connection

Not sure what's going on here 'cos I've done it already a couple of times and it always worked. Basically I'm moving a testing site from my local machine (MAMP) to a live server by: zipping the ...
0
votes
1answer
89 views

$post->id vs $post->ID problem after using Wordpress config bootstrap

I'm developing with Wordpress in a multi environment scenario. I develop on my local machine, test on a server and so on. I was using the "trick" of having a local-config.php file to have different ...
0
votes
3answers
886 views

Alternatives to DISALLOW_FILE_EDIT wp-config Constant? It Breaks Some Plugins

The Problem I first noticed this with the plugin Quick-Cache, which activates without problem, but doesn't shows up anywhere. Its menu it's simply not there. Found why, and became aware of the ...
1
vote
3answers
135 views

Putting my site live

Can anyone help? I've been building a wordpress site in a sub directory of an umbrella 'development domain' if you will, and am ready to go live with the site. It's a single install of wordpress. ...
0
votes
2answers
1k views

How to decrease the max file upload size without using php.ini or htaccess?

There are a lot of people discussing how to increase the php max upload file size... In my case though I want to shrink it from 8MB to 4MB... In my cpanel configuration, if I change the setting, it ...
2
votes
1answer
418 views

Generate Wordpress salt

I am in need of a function that automatically generates and returns salts for Wordpress wp-config.php (Don't link me to their API, I'm looking for offline solution). Does Wordpress core has this ...
1
vote
1answer
286 views

How to use if condition to change $table_prefix in wp_config.php

I am testing a very big database (perhaps wp_posts contains hundreds of thousands of rows). As such, the query time, especially the searching query, is extremely long. I'm thinking if there is any ...
0
votes
3answers
516 views

Override Current Theme Setting in wp_config.php

I am looking for a way to override the currently selected theme, preferably from within the wp_config.php file. I know you can override some wp_options settings in the config like define('WP_HOME', ...
1
vote
0answers
49 views

How can I make wordpress suppress mysql errors?

Wordpress has two functions related to SQL queries and their errors as mentioned in What Is The Difference Between suppress_errors() And hide_errors() in $wpdb? From what I've read setting WP_DEBUG ...
0
votes
2answers
915 views

Problem with new Multisite Installation

I have installed and converted two wordpress installations to Multisite .It was not first time and I done it before for some of my websites. I was successfully able to use it too.But I could not find ...
7
votes
4answers
385 views

Password in wp-config. Dangerous?

I don't know a lot of Wordpress yet, and I'm just wondering: Before installation you have to fill in the correct data in wp-config-sample.php but this also includes the database password. Isn't that ...
0
votes
2answers
169 views

the_permalink() not working in a root installation

I hope someone can help me. I have a root installation of WP, but not as index.php (it's actually news.php). Consequently the_permalink() doesn't work, as the root of the website is a different page. ...
18
votes
4answers
2k views

Best practice for versioning wp-config.php?

Is there a best practice for including your wp-config.php file in your version control repository? I'm considering creating a new site with this type of configuration, (similar to Alex King and Mark ...
2
votes
1answer
279 views

Redirect one of two domains on one Wordpress installation

I have to domains: mydomain.dk and mydomain.de. Both are showing the same page in danish. I have a plugin that takes care of the languages, but I need to connect the .de domain to the german 'language ...
2
votes
1answer
570 views

integrating external php library into wordpress- the right way

If I were to load a custom library into wordpress, what would be the best place to add it? Since there are a bunch of global vars defined at the top of the library, I would not want that to be done ...
1
vote
1answer
968 views

Accessing WordPress MySQL Database via Data Connection in Visual Studio 2010 using C#

So I've Googled and followed countless tutorials, read documentation on MySQL, Visual Studio, WordPress, and Plesk. I try to leave posting on this site as the final option and it seems it has come to ...
3
votes
1answer
606 views

domain mapping confused about sunrise

When i try to access my domain mapping page it asks me to move the line define('sunrise', 'on') above the last require_once line in the wp-config file. It is already above this line. I tried moving it ...
0
votes
1answer
417 views

Getting WordPress to work inside a rails 3 application

I am migrating an existing WordPress blog into a subdirectory of a new rails 3 app (deployed on Apache2 / Ubuntu 10). I have PHP/MySQL installed, and I have a standard rails app folder structure in ...
1
vote
3answers
1k views

Multiple wp-config.php files in one home directory

It's possible to move wp-config.php up one directory level for security, i.e. into the directory above public_html (sometimes called home or a user name, depending on the web host). "You can move the ...
0
votes
1answer
190 views

What are “best practices” for wp-config.php

Just started reading Professional WordPress®: Design and Development I'm reading the section on "Advanced wp-config Options". I see many options which I think are pretty cool/useful, but before I ...