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

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
492 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
313 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
653 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
52 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
973 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
454 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
173 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. ...
19
votes
4answers
3k 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
301 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
667 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
1k 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
663 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
443 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
199 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 ...
2
votes
1answer
373 views

WP Config for FTP credentials

Is there a config in WP that allows you to store your FTP credentials? I'm using the Linux webserver at work to develop and it's really annoying to have to but the credentials in every time I ...
0
votes
1answer
2k views

hide wp-content from urls

Here is what I am thinking of trying to hide wp-content from the urls of files included in page source. defining the following in wp-settings.php define ...
0
votes
1answer
203 views

Best function/method to access wp-config?

I have a developer who is accessing the wp-config file directly to get database information. I would think that WP has a better way to do this. What do you think community?
0
votes
2answers
692 views

Editing wp-config.php

I need to add the line define('WP_POST_REVISIONS', false); to my config.php , so that post revisions are disabled. I don't have access to wp-config.php, I have permission to edit my theme and ...
2
votes
2answers
761 views

hook a functions to change wp-config from functions.php

is there a way to hook / filter or add action that would be printed in the wp-config file? lets say i want to add some simple command like "empty the trash" aka define('EMPTY_TRASH_DAYS', 1 ); ...
3
votes
1answer
1k views

How to define a remote uploads directory?

Using the constant overrides in wp-config I'm able to define a remote FTP server that plugins will be added to when installed using the WP interface. define('FS_METHOD', 'ftpext'); define('FTP_BASE', ...
1
vote
2answers
353 views

Why am I unable to login after converting to www?

So I originally designed the site without the www. I've since realized that it's going to cause more problems than necessary. I created a rewrite rule that converts to www. I then changed the ...
2
votes
2answers
104 views

WP disobeys disabling of the posts revision feature

I disabled the posts revision feature according to this codex by placing this code in the wp-config.php: define('WP_POST_REVISIONS', false ); But revions are still being saved by the WP. Why? I am ...
1
vote
1answer
81 views

How to run WordPress from other location on the same domain

Hi I have a domain running in WordPress, the path to WordPress installation is /subdomain/mywordpress/ and I can access these in mywordpress.mysite.com, Now I wish to load the index page on my main ...
1
vote
2answers
2k views

Character encoding issue after changing servers

I recently moved my WordPress-based site from DreamHost VPS to a Linode VPS running Debian + LEMP. After getting the site up again, I noticed many erroneous characters in posts; characters like " and ...
0
votes
1answer
119 views

Wrong WordPress language?

I'm a bit confused now. I've installed Wordpress for my Polish friend from here: http://pl.wordpress.org/ On my local machine everything works fine and is in Polish, but installing it on the web ...
2
votes
2answers
213 views

How to update WordPress from the latest trunk

I read somewhere that I can set a constant in the wp-config.php to update WordPress from the latest trunk version and not the stable version. Stupid as I am, I can't find the site anymore where it was ...
0
votes
2answers
523 views

What Does this Code Snippet Do?

I got this error message when I was installing a plugin: "Unable to locate WordPress Content directory (wp-content)". I found a solution here: ...
1
vote
1answer
298 views

How to stop fatal error when loading theme template file directly

If one tries to load a theme template file directly, the following error message is displayed: Fatal error: Call to undefined function get_header() in ... and it goes on to list the full directory ...
1
vote
1answer
766 views

Securing wp-config leads to sensitive information leak on wp-settings

I read the following tutorial, which mentions moving your config file out of an HTTP-accessible folder. http://codex.wordpress.org/Hardening_WordPress#Securing_wp-config.php I did this, and it works ...
2
votes
2answers
1k views

Turn Off Automatic Trash Deletion?

I have a client who wants to use the trash feature, but keep items in there indefinitely (I have no idea why, but they insist on it). From reading this codex article on the trash status, I see that ...
1
vote
2answers
113 views

Can you limit the memory usage of a particular plugin?

I know that it is possible to restrict (or extend) the memory usage of the entire WP site using: define('WP_MEMORY_LIMIT', '64M') Is it possible to do the same for only one plugin that the website ...