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
39 views

Config file with no Keys..?

I'm working on a site for someone that doesn't have any keys in the wp-config file. Isn't this a serious issue? I know I can generate these but I wonder if this will have any side-effects..also, is ...
0
votes
1answer
16 views

Editing wp-config.php file asks for another installation

I edited wp-config.php and now I can't access my existing site and I see the Wordpress installation page! Help! How do I get to my existing site?
0
votes
1answer
681 views

Error uploading files bigger than 58 MB

For uploading files bigger than 58meg I get HTTP error. or IO error when using media uploader or 500 Internal Server Error when using browser uploader in WordPress v3.5.1 Multisite . It seems to get ...
3
votes
2answers
6k views

Connect to database using wordpress wp-config file

How can I connect to the database using the wp-config.php file ? I'm trying to make a script more Wordpress friendly, and I need to connect to the database, but without installing the script as a ...
0
votes
1answer
29 views

Can Wordpress Drop-ins be given their own directory?

Drop-in files, like advanced-cache.php or object-cache.php, sit in the root of the wp-content directory. Is it possible to give drop-ins in their own subdirectory of wp-content instead? Looking at ...
1
vote
1answer
41 views

Wordpress multisite subdirectory redirect infinite loop issue

Any time I create a new site on my multisite install, I get an infinite loop redirect when navigating to that site's admin. I'm using the default htaccess supplied by WP for my subdirectory install. ...
1
vote
1answer
25 views

Update wp-config.php and lost pages

I recently made a small change to my wp-config.php by adding a memory limit line on a local version that didn't have the correct db settings. When I uploaded it, the db connection obviously broke. ...
0
votes
1answer
519 views

wp-config.php file permissions

I have installed Wordpress on my local Ubuntu machine, with standard LAMP configuration and phpMyAdmin. The installation directory is localhost:///var/www/blog. At the second step of the ...
1
vote
1answer
386 views

Override the wp_siteurl and wp_home not work

I created a wordpress site and name hostname as x.co.uk, x.com, x.in... In wp-option table the site and home url as x.co.uk. I want dynamically for loading other host name also. So dynamically set ...
0
votes
1answer
34 views

wp_insert_post bulk import 500 server error

I am working on a Wordpress import tool, where I use a custom city table in my database with longitude, latitude which combine with some other text and then import by wp_insert_post(). This works ...
1
vote
1answer
16 views

How to secure files based on format and word in file name with wp-config or htaccess?

I have a wordpress site that I would like to secure specific files in the uploads directory, so that they can only be accessed by logged in users. The files either have the word "oneperson" or ...
9
votes
3answers
1k views

Define WP_DEBUG conditionally / for admins only / log errors (append query arg for all links?)

I'm developing a site on a server that the client has access to as well and what I'd like to do is show WP_DEBUG only for administrators. Referencing Yoast's article on a way around this: if ( ...
0
votes
1answer
57 views

Wordpress constantly running out of memory

My Wordpress installation on a shared hoster is constantly running out of memory: The error pops up at seemingly random, for example when uploading photos or sometimes without doing anything just ...
0
votes
2answers
56 views

error messages in dashboard login

I have included the following into my wp-config.php file: define( 'FORCE_SSL_LOGIN', true ); define( 'FORCE_SSL_ADMIN', true); But getting these error messages at the login screen for my WP ...
0
votes
1answer
23 views

.htaccess and virtual host configuration for WP in its own directory

I've been taking a look at the modern WP development approaches using Composer and so on, for example Bedrock or WordPress-Skeleton. I'd like to adapt these approaches ad create my own WP ...
0
votes
1answer
31 views

Storing FTP details in wp-config.php

I'd like to hear about the security concerns for storing FTP details in wp-config.php on a shared server. It doesn't 'feel' safe to me. I'm using ManageWP to control sites on a shared server and have ...
0
votes
0answers
11 views

Configuration File Safety [duplicate]

I'm new to PHP and WordPress and I've a few questions to ask about database and configuration file security. I hope you answer them. When I try to reach some wp sites config file by typing ...
2
votes
1answer
144 views

Different 'WP_CONTENT_URL' for different subsites in Multisite setup?

I host quite a few blogs on my network (WordPress Multisite) and have their static content served via a common CDN, by simply setting the wp-content directory URL in wp-config.php like so: # ...
0
votes
1answer
23 views

Relative Root Url For Sub domain name

I am really difficulties in using relative root url. I installed my wordpress site /root/mywordpress/tester1 folder and when I installed my wordpress sites with my subdomain like ...
0
votes
0answers
45 views

Multisite domain redirect subdirectory non-www to www without breaking root site

There are a ton of questions asked on Multisite domain mapping but none I can find with an answer that works for me. I am using subdirectories. Here is my configuration: (1) Root non-www: ...
4
votes
1answer
68 views

How to individually set WP_DEBUG on a sub-directory multisite?

According to this question, it's possible to turn on/off WP_DEBUG for specific sites on a multisite. Is it possible to do this with a sub-directory multisite?
47
votes
8answers
13k views

Is moving wp-config outside the web root really beneficial?

One of the most common security best practices these days seems to be moving wp-config.php one directory higher than the vhost's document root. I've never really found a good explanation for that, but ...
0
votes
0answers
21 views

Wordpress Cache not working with some ajax calls

I need to install a plugin for caching my wordpress/buddypress pages or at least add define('WP_CACHE', true); to wp-config.php but when I do this, the button "join this group" that uses Ajax calls ...
0
votes
0answers
13 views

Why I obtain a white page when I import a backup of an old WP blog on my local web server? [duplicate]

I am pretty new with WP (I came from Joomla) and I am finding some problem loading an old WP backup on my local Apache. I have take the directory containint an old blog (named blog) and I have put it ...
0
votes
1answer
42 views

Remove hacked code - out of ideas! [closed]

I've been working on a project which keeps getting some PHP inserted into the config.php file and it's causing a lot of issues with SEO. I'll paste in a sample of it (it's quite long) after this ...
0
votes
0answers
37 views

No input file specified after enabling multi site

I am getting this error after enabling Multisite "No input file specified.", I can't find a solution in the internet, I hope you can help me. I have this in my htacces RewriteEngine On RewriteBase / ...
3
votes
3answers
2k views

Does changing 'WPLANG' in wp-config.php just effect the admin language or does it have other consequences?

I am curious to know if setting 'WPLANG' in wp-config.php just effects the admin language or does it have other consequences? I run a blog in a foreign language but use English in my admin. I ...
0
votes
2answers
127 views

How do I enable Multisite on WP 3.7.1?

(Using Wordpress 3.7.1) Adding the string define(‘WP_ALLOW_MULTISITE’, true); to my wp-config.php file isn't giving me the 'Network' choice in the Tools menu, even after multiple logouts and waiting a ...
0
votes
1answer
114 views

Locked out of WordPress Site Admin after enabling Force SSL on WordPress Https (SSL)

I am in a terrible fix. I have been locked out of Site Admin and the solutions offered by the plug-in team in their documentation aren't working. I've tried both methods using Webmatrix. I have to ...
0
votes
0answers
109 views

Problems with moving wp-content to a subdomain

Got a little problem. I wanted to move wp-content to a subdomain (content.sitename.com) but there's a weird problem when rendering PHP-Content (e.g. style.css.php). Every PHP file in ...
0
votes
2answers
140 views

Conditional config WP_HOME/WP_SITEURL does not update bloginfo('template_url')?

The scenario: This question relates to Wordpress theme development on a local environment via MAMP. In order to enable mobile device testing via xip.io, I have modified my local Wordpress ...
2
votes
1answer
77 views

register_theme_directory somehow “fails” when folder is outside of WP-Folder

This is a simple skeleton for WordPress, that makes it possible to have just "themes" and "plugins" under version control: https://github.com/sourcerer-mike/WordPress-GIT-Skeleton When doing ...
0
votes
1answer
51 views

/var/run/mysqld/mysqld.sock

I'm using Wordpress v.3.4.2 and today I've tried to update to the v.3.7.1 using all possible ways but in all of them I got the following error "Can't estabilish database connection", and since I was ...
1
vote
1answer
4k views

Creating the wp-config.php file manually

Setting up WordPress, I'm getting the following message: "Sorry, but I can't write the wp-config.php file. "You can create the wp-config.php manually and paste the following text into it." Do I ...
0
votes
0answers
71 views

Malware/Permission bug removal?

I'm facing a hell of a problem on a client's WP theme. Whenever I try to 'Activate' it, it gives me the following errors on a blank page: Warning: ...
0
votes
2answers
578 views

error:-Cannot modify header information - headers already sent by

whewn ever i try to login http://affiliatesurge.com.au/wp-admin/ i got "" Warning: Cannot modify header information - headers already sent by (output started at ...
0
votes
0answers
29 views

Wordpress NavXT plugin localization

My situation is as follows: 1) I am using wordpress 3.6.1, and I have the Breadcrumb NavXT plugin installed. 2) I have a custom theme, and the localization file is on the following path: ...
-1
votes
1answer
58 views

Wordpress White Screen Error

So I have encountered the white screen error of Wordpress. I enabled the WP_DEBUG in the wp_config.php and found no errors. I also tried error_reporting(E_ALL); and ini_set('display_errors', 1); and ...
0
votes
1answer
34 views

Is there any reason why using the same wp-config file might not work in MAMP?

I'm not sure why but when i just want to create a copy of a site that i'm working on in MAMP, that say i just downloaded from the web. I just copy the same wp-config file from another local version ...
0
votes
0answers
38 views

Remove Multisite

This is a site I'm working on, but did not build. It is on a multisite network- but I would like to get it back to normal. There are no other sites on the network. All of the instructions tell me to ...
0
votes
4answers
2k views

Permalink Issues by Installing WordPress in Subdirectory / Subfolder

I installed WP in subfolder /cms and it runs live without subfolder. When I use /%postname%/ as permalink I get 404 error on my site. My Server supported mod_rewrite. My Code wp-config.php ...
0
votes
1answer
295 views

Changing from localhost:8888 to localhost

I have just changed ports on MAMP from :8888 to :80 for localhost in order to setup a WordPress multisite for local development. However I have several sites with separate installations that are in my ...
0
votes
2answers
118 views

How is it possible that the function of the test page works, but it does not go live?

I want to load the new entries without reloading the page. I found a great solution for: The ajax script: <script> $(document).ready(function() { var refreshId = setInterval(function() ...
1
vote
1answer
206 views

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

I am trying to set up a few local multisite installs that will share the same themes folder, but have separate upload and plugin folders that will be in the usual places in wp-content. UPDATED: ...
1
vote
1answer
72 views

blog url redirecting

I used to host a word press blog and a forum on a server (srv71) with a domain name. And a few days ago I transferred my whole site to a new server (srv14) but I havn't updated my dns and I've ...
2
votes
2answers
168 views

Set wp-content folder to Dropbox folder

Ideally I would like to do this with both my PC and Mac OSX boxes, but for now I would be thrilled with just the Mac OSX. I am trying to keep my WP Themes & Plugin Local Development synced using ...
10
votes
2answers
943 views

Symbolic Links on dev box with plugins and stylesheets

I'm using mac os x 10.6 with xampp. http://wp3.1/ is the url to where I have WordPress installed. The physical path is /Users/myUserName/Sites/wp3.1/ I do not install plugins or themes in the ...
0
votes
1answer
27 views

Secret keys in SCM

I have a WordPress installation in a Git repository and I'm wondering, if it's safe to have the 8 "secret keys" stored in there, or if I should insert them during deploy.
0
votes
1answer
203 views

How to create custom variables in the wp-config

I would like to add some custom config variable in the wp-config file (not in the functions.php). Then, I need to access to these variable in my templates. What is the way to do it ?
0
votes
1answer
59 views

Pick your brain on wp-config.php if statement for multisite

I am trying to write a if statement into the wp-config.php to only enable define('WP_DEBUG', true); if it's not the main site in a WordPress Multisite install. I just don't know how much of the ...