Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
1answer
30 views

Site lost all formatting when I attempted to migrate to Bluehost

I think I really screwed something up here...I would love some help fixing the problem, or at least some help figuring out what is going on So, I used wordpress.org CMS to create a site locally using ...
1
vote
1answer
27 views

error log cluttered with undefined DB_USER wp-admin/setup-config.php

I have an up and running WordPress site for some time. Lately, I noticed somebody or something is making requests to www.example.com/wp-admin/setup-config.php?step=0. Which is resulting in these ...
0
votes
1answer
32 views

How to disable autosave request going in background

I'm using WordPress with Gutenberg editor as a default editor. I simply want to stop the auto save requests which are going in background. I have tried the following solution but its not working: I ...
0
votes
1answer
31 views

Wordpress failing to update plugins

After cloning my wordpress site and fresh install of it i encountered problem. Plugins won't update. I'm working in Linux environment (Ubuntu). I've tried multiple solutions but still without positive ...
0
votes
1answer
40 views

Moving wp-config.php one level up - 500 error - Nginx [closed]

My wordpress installation is at /var/www/html/ I have moved the wp-config.php file one level up to /var/www/ and deleted the original file. However, I am getting a 500 error. Within the wp-config....
0
votes
2answers
37 views

How can I resolve the php notice “Constant EMPTY_TRASH_DAYS already defined”

With define('WP_DEBUG', true); in wp-config.php, I get the following notice: Constant EMPTY_TRASH_DAYS already defined in /wp-config.php on line 83 I have checked this file, and this constant is ...
0
votes
1answer
11 views

Duplicate database to roll back theme & content changes

I am going to update site to a new custom theme and it will take a few days to get all the work done. Can I duplicate a wp database in phpMYadmin, so i have wp-db1 and wp-db2. Then I can change wp-...
0
votes
0answers
17 views

Incorrect FTP authentication is blocking a plugin install and setting FS_METHOD to 'direct' in wp-config doesn't help

I'm trying to install the plugin "Form Maker by WD" into my WordPress site. Whether trying to install directly or through downloading and then uploading it, it throws an "incorrect ftp username/...
2
votes
2answers
30 views

How to set up gmail SMTP in Wordpress

I'm trying to set up an smtp gmail server to send emails from my wordpress site. This is what I've got in my wp-config.php: define( 'SMTP_USER', 'myaddress@gmail.com' ); // Username to use for ...
0
votes
0answers
22 views

How can I configure an SMTP Server?

I'm trying to follow the instructions here: https://gist.github.com/butlerblog/7e4dbafcbc61b15505ee8ca90510f1e7 But I'm getting confused. I'm not sure what arguments to pass where. Here is what I ...
0
votes
1answer
27 views

Moving my site from localhost to server - too many redirects

I want to move the site I was working on on localhost to a testing server. I have copied the database over as well as all the files. I want to be able to run my site from the testing server with the ...
0
votes
0answers
18 views

Redirection to the WP_HOME

I have several WordPress sites and some of them have a more complex setup where there are multiple application servers running PHP FPM and nginx and a load balancer to cover them all. All sites run ...
0
votes
1answer
25 views

Need help fixing my wp-config file [closed]

I tried to edit my wp-config for a plugin. It didn't work and now my code in my wp-config is all wrong and my site can't read it. Any help with re-coding this correctly would be greatly appreciated.
0
votes
0answers
34 views

What should index.php contain on Synology NAS to get external access to Wordpress to work?

Please note this is my first post here. Not sure if this question fits in the scope of this site. If not, I am happy for it to be closed. I have a Synology NAS and I want to start a personal website ...
0
votes
1answer
28 views

Why was my new Wordpress installation's config page publicly viewable when first installed?

I'm new to Wordpress (I used to do some very Web 1.0 design work when I was a teenager in the 90s) and I just encountered something I'm truly baffled by. I started a new account at Dreamhost with a ...
0
votes
0answers
27 views

Remove trailing slash when WP_CACHE is enabled

I removed the trailing slash via Settings > Permalinks for my WP site. All URLs have been indexed by Google without the trailing slash so I don't want to revert this change. I just wanted to enable ...
0
votes
2answers
46 views

Redirecting connection from IP to localhost

I'm running localhost server on xampp. I 'm connecting properly with my host computer from other devices with IP address but once i go into wordpress directory i got redirected. Every device i was ...
-1
votes
1answer
21 views

Wordpress doesn't recognise my email address and I'm missing the wp-config file in PHPmyadmin cPanel to make alterations

So i apologise as i am a complete newb to wordpress and phpmyadmin. So i tried to authenticate my website with google authentication but inputted the incorrect url address in the wordpress dashboard. ...
1
vote
0answers
8 views

ERR_TOO_MANY_REDIRECTS when i config my subdomains

I use multisite like this 144.1.1.3 and 144.1.1.3/another_site I need to use two subdomains like this mysubdomain.mysite.com.br for 144.1.1.3 and mysubdomain2.mysite.com.br for 144.1.1.3/...
1
vote
1answer
29 views

Should I change wp-config for SSL?

Should I change wp-config for SSL setting to change define('SITE_URL','http://www.example.com/'); to define('SITE_URL','https://www.example.com/');
1
vote
0answers
22 views

How to block access to files without modifying .htaccess or ngnix config? [closed]

I'm trying to prevent access to readme.txt files on a WP site. Normally, this would be easy by just modifying the .htaccess file or the ngnix configuration. However, the host runs ngnix, which ...
2
votes
1answer
41 views

Why can't I swap a DB in a WP install? [closed]

Something I'm confused about, trying to change the database in an existing WP install, for example: I have a local WP site (in XAMPP) working fine off a DB called database-A, however if I change, in ...
0
votes
1answer
31 views

Remote server does not read `WP_HOME` from wp-config.php when local server does

I have a wp-config.php file with these variables: define( 'WP_HOME', $_ENV['WP_HOME'] ); define( 'WP_SITEURL', $_ENV['WP_SITEURL'] ); In my current setup, this uses dotenv to load the values from a ....
0
votes
0answers
12 views

Why can't I use Kanjis on permalink? [duplicate]

I've already read the 'What topics can I ask about here?' section but I'm still not sure if I can ask this type of question here, so here it goes. I'm starting a blog about the Japanese language. I ...
-1
votes
1answer
36 views

No wp-admin, wp-config, or .htaccess folder/file

This all started when I was not able to upload a picture to my site. All media under Media do not have their picture or preview; the pictures would simply be blank. Clicking on View while in list mode ...
0
votes
0answers
32 views

Change default wordpress FS owner

is it possible to change the default fs owner for wordpress? In our shared dev environment, we don't have access to the www-data user. Files created by wordpress under wp-content have the owner www-...
0
votes
0answers
22 views

Working locally with remote DB not working with multisite

My usual set up in my wp-config for working locally with my remote DB is as follows: define('WP_HOME','http://mysite.local'); define('WP_SITEURL','ttp://mysite.local'); define('LIVE_SITEURL', '...
3
votes
1answer
299 views

If I change the salt keys in my wp-config will all passwords break?

If I change all the cookie & salt hashes in wp-config will all currently stored passwords need to be re-set? define('AUTH_KEY', '9YF,b]b:G5,!@Z||G.r*lI`?yl+u_-=2SO@# :Y8f1ZW=qP)U^w+(V=i:...
0
votes
0answers
36 views

Configure WordPress to listen on a port other than 80

Similar to changing localhost parameters, how do I serve web pages externally through a port other than port 80? Also similar to configuring Apache to listen to an alternate port. Of course, the ...
0
votes
1answer
60 views

Wordpress Error establishing a database connection For Admin login only

I am having this strange Error thing happening I can load the wp frontend fine but the wp/wp-login.php gives : Error establishing a database connection Does the wp-config.php is for both frontend and ...
1
vote
1answer
306 views

404 redirect wp-login and wp-admin after changing login url

I've successfully changed the login page to a custom url, using this codes: This one into wp-config.php define('WP_ADMIN_DIR', 'secret-folder'); define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . ...
0
votes
0answers
294 views

Serve cookie free URLs in WordPress without using a CDN

I ran a GTmetrix test on my site (example.com) and got a very low score (50) for "coockie free domains". I gather from this error that the webpage of each URL of my domain is served with cookie ...
1
vote
1answer
666 views

Where to store OAuth 2.0 client id and secret?

I'm building some functionality within one of my WordPress sites that integrates with a third-party API, and that API uses OAuth 2.0. I use both the client ID and secret every time I need a new ...
0
votes
0answers
23 views

Installer (like Duplicator) with custom wp-config location and custom wp-content folder

I have started to set up my Wordpress sites like this (Versioned with Git): project/ |-- public_html/ | |-- wp/ (Wordpress Core, no wp-config.php here) | |-- wp-content/ (Themes, Plugins, user ...
1
vote
1answer
145 views

Enabling WP_USE_EXT_MYSQL to support old plugin

We recently did a major WordPress site upgrade (3.7.25 to 4.9.4 - yes, probably shouldn't have waited this long). I set up a test environment first and thought there would be no issues. However, upon ...
0
votes
1answer
38 views

Is it possible to increase php memory without directives in wp-config.php, .htaccess or php.ini?

I using a plugin that crashes due to lack of memory. But I'm on a host (Pantheon) that uses git for file updates between a Dev server (where I have FTP access) and a Live server (where I have no FTP ...
0
votes
1answer
239 views

WP_MEMORY_LIMIT didn't work in wp-config, only within default-constants.php

i have already searched here and tried a lot of things, but my problem still is "alive" It is possible to set WP_MEMORY_LIMIT within the default-constants.php and this works fine, but every time I ...
0
votes
1answer
256 views

Moving wp-config.php outside root folder where we have multiple wordpress websites for enhanced security [duplicate]

I have moved wp-config.php but my file structure is as given below: public_html --abccom --applecom --wp-config.php abcom and applecom folder has wordpress websites both As advised, I have moved wp-...
0
votes
0answers
52 views

Error: No configuration file found and no installation code available.

My Website Front end displaying error "No configuration file found and no installation code available. Exiting..." I have checked the following link No configuration file found and no installation ...
0
votes
1answer
91 views

If statement in wp-config.php, is it possible?

I already searched here and there but couldn't find anything definitive. I have WordPress multisite and I have a plugin (activated on each site) which requires to set a slug parameter in wp-config....
0
votes
0answers
72 views

SyntaxError: unterminated string literal - if Wordpress Debug in wp-config is set to true

To clear up my notices in my Wordpress Shop (with Woocommerce) i set WP_DEBUG to true in my Wordpress wp-config file define('WP_DEBUG', true); Now im getting the following error in my firebug ...
0
votes
0answers
54 views

What is the meaning of “#@+” in the Authentication Unique Keys and Salts comment?

In wp-config-sample.php, there is this comment /**#@+ * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api....
1
vote
0answers
263 views

Syntax of FS_CHMOD_DIR and FS_CHMOD_FILE

I ran into an issue today with files uploaded through the Wordpress Backend not getting the correct permissions. The permission on the new 2018 folder in the uploads directory as well as the files ...
0
votes
0answers
109 views

Define new constants in wp-config

I have extended my Wordpress with a page that connects to an external Api. I want to define constants for the url, key and secret. Do you think the wp-config.php is a good place to define these ...
0
votes
0answers
146 views

Child theme showing a blank page when activated and causing log-in problems

I'm not sure if that is what is causing the problems. I was redesigning an old blog I never used. I created a child theme and I started to modify things. I worked on that for a few days and suddenly, ...
0
votes
1answer
18 views

sudden changing of host IP result in crash of the site

I have the same problem and the answers which are given above didn't help me, so I explain my situation: My wordpress site is installed on ubuntu 14.04 on vmware This local host IP was 192.168.153.134,...
0
votes
1answer
38 views

Moving wordpress site from localhost to live server using GoDaddy cPanel

I'm using GoDaddy cPanel hosting to move my site from localhost. It's the first time I've done this and I've hit a dead end. I've followed the instructions from these instructions. I've used ...
0
votes
0answers
310 views

Out of memory errors : how best to track them down

I am dealing with a Wordpress site that shows regular out of memory errors when navigating the control panel. I am asking a question about it here because I have tried all the usual options: ...
0
votes
1answer
49 views

Using Windows Server 2012 How to Move Uploads Folder to another hard drive

Using Wordpress as an intranet. The Wordpress installation is on C however this drive is limited and wanting to use another hard drive on the server (Hard Drive E) for my uploads folder. Am I able to ...
1
vote
2answers
1k views

WP_MEMORY_LIMIT didn't work in wp-config

I want to set WP_MEMORY_LIMIT for my WordPress site. I use from shared hosting and CPanel. I have access to change something like max memory limit on my host. I attached related image in the following ...