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
1answer
2k views

Cookie set without HttpOnly flag

I try to add cookie information but i have no result. The tool sends me the same information. I trying to displayed the mention HttpOnly after path parameter => "Parameter : PHPSESSID=...
0
votes
1answer
15 views

execute custom function on database connection error

is it possible to execute a function on wordpress db connection error? I mean is there any hook or something in the (error stablishing database connection) thing...? I want to do something when I get ...
4
votes
2answers
37k 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
0answers
15 views

Wordpress path multisite redirect

I'm trying to install a multisite (subdirectory) on http://domain.com. Everything seems to be working fine, but when I'm trying to visit my subsite on http://domain.com/jobs all the links to my ...
7
votes
3answers
3k views

What security concerns should I have when setting FS_METHOD to “direct” in wp-config?

I have recently had an issue where I have been unable to install the WP Smush Pro plugin because I don't have the Manual Install or One-Click Installation options available. I came across this post ...
0
votes
1answer
10 views

Does Wordpress Support Using Named Pipes on the Windows Operating System?

Okay, suppose I wish to disable networking completely on a development machine running MariaDB 10.1.14, and instead use Windows' Named Pipes/Sockets. I'm using a local copy of Apache (2.4.23 x64 VC14),...
1
vote
1answer
1k 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. ...
0
votes
2answers
4k 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 ('WP_CONTENT_URL','http://example.com/...
1
vote
1answer
452 views

Multisite with path, how to change the main site

I have a network installed on my wordpress with 4 websites domain.com --> Old website domain.com/fr --> New website in French domain.com/en --> new website in english domain.com/es --> New website ...
-1
votes
0answers
22 views

possible to set WP_POST_REVISIONS in wp_config.php, on theme Activation? or Plugin API/Filter WP_REVISIONS_TO_KEEP my option?

I'm trying to reduce DB clutter, and looking to limit the number of Revisions saved for all posts to 3. setting WP_POST_REVISIONS to 3, in wp_config.php would be my preferred option, but I haven't ...
0
votes
0answers
17 views

Wordpress on nginx permissions issue

I purchased VPS last night and have been trying to resolve permission issue regarding folder/file creation while installing new plugin or updating existing on stock wordpress CMS. Ubuntu 16.04 Error ...
2
votes
1answer
1k views

Can I configure WordPress to use postfix without a plugin?

I am developing a WordPress site on a vagrant box and have installed postfix in order to test email notifications. At this guest OS (Ubuntu) level, I am able to end a test email: echo "Test mail ...
1
vote
0answers
32 views

Localhost to Staging to Development Dynamic WP-CONFIG

I am trying to setup 3 environments: Localhost, Staging and Development. The issue is that each environment has its own db. We want to have ONE config file which will dynamically change the Db ...
0
votes
2answers
75 views

WordPress still requires FTP information

I've ran into this issue where WordPress requests my FTP login credentials. So far I've tried: chown change user change file permissions edited wp-config.php None of it seems to work. The server ...
3
votes
4answers
5k 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 -...
1
vote
1answer
717 views

Admin-Ajax.php, SSL, Non-SSL

I have a WordPress site behind a reverse proxy. The site is over http, except the wp-admin area, which is under https. We don't have BasicAuth or anything running on top of the admin area. One of our ...
0
votes
2answers
57 views

What is the difference in the WP memory limits?

I have seen this question PHP Memory Limit vs. WP Memory Limit and it has a really poor answer and the question isn't that good either. I am on a dedicated server and can do whatever I want. I want ...
1
vote
0answers
13 views

Redefine cookie domain for subdomains

I have done all the research on this question but none of it is working. I have an application consisting of a Wordpress site at "domain.com", and a CakePHP/Angular application at "sub.domain.com". ...
8
votes
3answers
733 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 ...
2
votes
6answers
5k views

Login page ERROR: Cookies are blocked due to unexpected output

I have a WordPress website that I recently discovered had this error on the login page: ERROR: Cookies are blocked due to unexpected output. For help, please see this documentation or try the ...
0
votes
2answers
39 views

Issues copying site into local machine

I am working on a Wordpress site that is stored on a goDaddy server. I want to migrate a copy (backup) of the site on my local machine so that I could edit the php files without changing with the ...
2
votes
1answer
20 views

What should be disabled to run on an internal network with no access to the Internet?

I am setting up a site on an airgapped (no connection to the Internet) internal network. It is quite slow in loading pages. I have already added define('WP_HTTP_BLOCK_EXTERNAL', true); and define('...
3
votes
1answer
30 views

multisite custom directory

I have a multisite installation with domain mapping at the original site I was changed the wp directories to a custom wp-content changed to {root} themes moved to {root/themes} plugins moved to {...
0
votes
1answer
70 views

Multisite on localhost using xampp

I'm having some trouble getting Multisite to work on my localhost using xampp. I have the main site in a subfolder so the path would be http://localhost/my_site/. I'm getting two different errors, ...
2
votes
1answer
29 views

What is this file: wp-config-wpe.php?

I just have been given access to an unmaintained Wordpress site. I have access to the Wordpress admin site, and also to the filesystem tree and PhpMyAdmin site through the host admin site. I'm trying ...
0
votes
3answers
53 views

moving wordpres from one VPS to another - Error establishing a database connection

I had a wordpress site on VPS server and decided to move to faster one - with the same host provider. I had VPS on CentOS with Plesk and moved my domain to another one with the same OS. I have ...
14
votes
4answers
5k 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 ( isset($...
-2
votes
3answers
3k views

Why would changing ports from 80 to 8080 cause wordpress to act unexpectedly?

I am trying to setup Varnish, which requires Apache to listen on another port that's not 80, so I chose 8080. However, Wordpress is working very unexpectedly. The index page shows, but it's broken, ...
0
votes
1answer
13 views

Autosave interval remains default despite wp-config.php defines

On site which I maintain there are writers that spend a lot of time editing single posts, and autosave every minute is very painful for them. So they asked me to set it to at least 10 minutes. I ...
0
votes
3answers
65 views

wp-config dynamic hostname in WP_HOME and WP_SITEURL

Are there any disadvantages to using the following code to setup WP_HOME and WP_SITEURL in wp.config for both singlesite installs and multisite installs: /** * Site Host URLs */ $hostname = $_SERVER[...
0
votes
2answers
40 views

Google Page Speed Insights not recognising WP-Cofig settings?

I have been using Google Page Speed to help try speed up my site, which it rates pretty poorly. Google suggest I Enable Compression and Minify. Well, these are defined in my WP-Config file. So either ...
0
votes
1answer
261 views

ERROR: “Table Prefix” must not be empty

I'm having trouble trying to setup WordPress for local development, I tried to install it, but even though I fill up the form to setup config file I still get the same error, I can connect to database,...
0
votes
1answer
45 views

Login failed after cloning live wordpress site to local wampserver

This is what I did: Copy all files in public_html to C:\wamp\www\mylocalsite.com Export my database and rename all http://mylivesite.com to http://localhost/mylocalsite.com of exported .sql file ...
0
votes
1answer
41 views

I have include wp-config, should I add global $wpdb also?

Usually, In my wordpress website, when I modify template page file, it is done by only add global $wpdb for databse operation without including wp-config file. Now, I create my own php file in ...
0
votes
0answers
34 views

How would you connect to 100 different databases in wp-config.php

We have a setup where we have 100 sites using exactly the same code base, and all files are stored on Amazon S3. But right now we are running 100 different WordPress installations. Now I was thinking ...
0
votes
0answers
69 views

Make Wordpress upload directory outside wordpress root with custom url

I want to change the upload directory for Wordpress from project.dev/wp-content/uploads to cdn.project.dev Where subdomain cdn has DocumentRoot: HostPath/project.dev/cdn while Wordpress is located at ...
0
votes
2answers
35 views

Site broken after using URL Change in Admin

I wanted to use the site URL change in the general settings page of the admin panel to remove the trailing /wp from my privately hosted wordpress site. After submitting these changes, I am locked out ...
1
vote
0answers
29 views

HTTP Error after finishing uploading a video that is bigger than 64 MB -> After raising the upload limit manually in the wp-config file

I use dreamhost as my webhost. Previously my wordpress upload limit was 64 MB. I asked the tech from dreamhost to boost to 400MB. He told me I had to change a setting in my wp-config.php. That's what ...
1
vote
1answer
110 views

COOKIE_DOMAIN setting confusion

I'm upgrading my website and it's using WordPress. I'm using sub-domain cdn for CDN and it needs to be cookieless. Currently my website is a multi-network of multisites (both are subdirectory ...
0
votes
0answers
155 views

Automatically updated Wordpress to a later version but site now website giving error message: The file 'wp-config.php' already exists

Recently I upgraded wordpress to a later version automatically. I did not anticipate problems but soon after I cannot access the site nor can anyone who visits. It is now giving this error option: ...
1
vote
1answer
57 views

Multisite Create Site not working

I've followed multiple Questions, but can't seem be to be able to find a solution. I'm looking to be able to have a local install multisite, (XAMPP), and succeeded in making multisite available. ...
0
votes
1answer
1k views

multisite 404 error for subdirectory

I am attempting to create a multisite as a subdirectory and I have followed the network instructions to the 'T'. The multisite seems to be set up correctly, the .htaccess and wp-config.php files seem ...
0
votes
0answers
67 views

Can't Install WordPress (local) Failed to open file wp-includes/wp-db.php

Title kinda says it all. Trying to install WP locally and I get the following error when trying to use the wp-config.php generator UI: Warning: mysqli_real_connect(): (HY000/2002): No such file or ...
1
vote
0answers
17 views

multiple language directories

I keep wp-content and wp-config.php outside the wordpress tree and store everything in a git repository. This should make the update of the core very simple. I just need to remove the wordpress ...
0
votes
1answer
22 views

Adding Security Keys?

I read the paragraph at the codex on Security Keys. It offers the example - define( 'AUTH_KEY', 't`DK%X:>xy|e-Z(BXb/f(Ur`8#~UzUQG-^_Cs_GHs5U-&Wb?pgn^p8(2@}IcnCa|' ); define( '...
3
votes
3answers
86 views

How can I change Wordpress domain from remote to localhost?

I recently had a system crash and had to reinstall WordPress with my backup files. In the JavaScript log I began throwing errors pertaining to the domain and realized I was still using the remote ...
0
votes
1answer
259 views

PressPi (Wordpress) Broken Layout

We have a Raspberry Pi running PressPi which is a wordpress server. Our goal is to setup a Captive Portal using dnsmasq where users who connect to the Pi using a USB WiFi adapter see the PressPi home ...
4
votes
2answers
55 views

Turn revisions off in plugin instead of config.php?

Is there a function to set WP_POST_REVISIONS from a plugin instead of having to do it in config.php? I was thinking of doing this: runkit_constant_redefine( 'WP_POST_REVISIONS', 0 ); but that puts ...
13
votes
3answers
11k 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 ...
1
vote
3answers
6k 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 ...